fix: eliminates intermittent flicker with UI; NO_UI shouldn't be allowed for :setup events

This commit is contained in:
Duncan Brown authored and Julian Murgia committed 2022-04-30 20:06:13 +02:00
1 parent eeb7042d11
commit f69b29da29
4 files changed
+5 -1

No files matched your search

+2
View File
@@ -222,6 +222,8 @@ func check_game_scene_methods():
assert(current_scene.game.has_method("hide_ui"))
assert(current_scene.game.has_method("show_ui"))
assert(current_scene.game.has_method("escoria_hide_ui"))
assert(current_scene.game.has_method("escoria_show_ui"))
assert(current_scene.game.has_method("_on_event_done"))
@@ -17,6 +17,7 @@ bg_color = Color( 0.6, 0.6, 0.6, 0.5 )
script = ExtResource( 5 )
main_menu = NodePath("ui/main_menu")
pause_menu = NodePath("ui/pause_menu")
ui_parent_control_node = NodePath("ui/Control")
[node name="dialog_layer" type="CanvasLayer" parent="."]
+1
View File
@@ -15,6 +15,7 @@ script = ExtResource( 5 )
main_menu = NodePath("CanvasLayer/main_menu")
pause_menu = NodePath("CanvasLayer/pause_menu")
editor_debug_mode = 1
ui_parent_control_node = NodePath("CanvasLayer/ui")
[node name="camera" parent="." instance=ExtResource( 3 )]
+1 -1
View File
@@ -1,4 +1,4 @@
:setup | NO_UI
:setup
anim_block intro_animation_player RESET
:ready | NO_UI