Skip to content

Commit

Permalink
fix: eliminates intermittent flicker with UI; NO_UI shouldn't be allo…
Browse files Browse the repository at this point in the history
…wed for :setup events
  • Loading branch information
BHSDuncan authored and StraToN committed Apr 30, 2022
1 parent eeb7042 commit f69b29d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions addons/escoria-core/game/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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"))


Expand Down
1 change: 1 addition & 0 deletions addons/escoria-ui-keyboard-9verbs/game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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="."]

Expand Down
1 change: 1 addition & 0 deletions addons/escoria-ui-simplemouse/game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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 )]

Expand Down
2 changes: 1 addition & 1 deletion game/rooms/intro/esc/intro.esc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:setup | NO_UI
:setup
anim_block intro_animation_player RESET

:ready | NO_UI
Expand Down

0 comments on commit f69b29d

Please sign in to comment.