fix: adds control node to ESCGame for UI that must be populated, along with Escoria-only UI methods; this helps to avoid display issues on startup

This commit is contained in:
Duncan Brown
2022-04-23 16:25:16 -04:00
committed by Julian Murgia
parent 6afff99e7c
commit eeb7042d11
4 changed files with 30 additions and 10 deletions

View File

@@ -172,6 +172,9 @@ func _notification(what):
# Usually you'll want to show some logos animations before spawning the main
# menu in the escoria/main/game_start_script 's :init event
func init():
# Don't show the UI until we're ready in order to avoid a sometimes-noticeable
# blink. The UI will be "shown" later via a visibility update to the first room.
escoria.game_scene.escoria_hide_ui()
run_event_from_script(start_script, self.event_manager.EVENT_INIT)