Hide top action HUD and creator pill when world editor is active
checkpoint / checkpoint (push) Successful in 6m9s
checkpoint / checkpoint (push) Successful in 6m9s
This commit is contained in:
@@ -122,18 +122,28 @@ func _run() -> void:
|
||||
await process_frame
|
||||
|
||||
var pill = game.find_child("ControlsPill", true, false) as Control
|
||||
var hud_layer = game.find_child("InGameHUD", true, false) as CanvasLayer
|
||||
var hud_panel = game.find_child("HUDPanel", true, false) as Control
|
||||
_check("ControlsPill exists in game HUD", pill != null)
|
||||
_check("InGameHUD CanvasLayer exists", hud_layer != null)
|
||||
_check("HUDPanel exists in game HUD", hud_panel != null)
|
||||
_check("ControlsPill starts visible during regular play", pill != null and pill.visible)
|
||||
_check("InGameHUD starts visible during regular play", hud_layer != null and hud_layer.visible)
|
||||
_check("HUDPanel starts visible during regular play", hud_panel != null and hud_panel.visible)
|
||||
|
||||
# Open build mode
|
||||
game._open_build_mode()
|
||||
await process_frame
|
||||
_check("ControlsPill is HIDDEN when in build mode", pill != null and not pill.visible)
|
||||
_check("InGameHUD is HIDDEN when in build mode", hud_layer != null and not hud_layer.visible)
|
||||
_check("HUDPanel is HIDDEN when in build mode", hud_panel != null and not hud_panel.visible)
|
||||
|
||||
# Close build mode
|
||||
game._close_build_mode()
|
||||
await process_frame
|
||||
_check("ControlsPill is RESTORED when exiting build mode", pill != null and pill.visible)
|
||||
_check("InGameHUD is RESTORED when exiting build mode", hud_layer != null and hud_layer.visible)
|
||||
_check("HUDPanel is RESTORED when exiting build mode", hud_panel != null and hud_panel.visible)
|
||||
|
||||
game.queue_free()
|
||||
await process_frame
|
||||
|
||||
Reference in New Issue
Block a user