aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/GameSession.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-11-08 23:24:21 +0100
committer hop311 <hop3114@gmail.com>2023-11-16 00:24:28 +0100
commitbc0b3c61ae0b742da304cada451fba1df72bb0ad (patch)
tree047968e7ea8189ad8391dcabbd09fee1d8cdc30c /game/src/Game/GameSession/GameSession.gd
parent72d893d55d26ae9dc6739a853d1773b3cb286123 (diff)
GUI elements -> Godot UI nodes generator
Diffstat (limited to 'game/src/Game/GameSession/GameSession.gd')
-rw-r--r--game/src/Game/GameSession/GameSession.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/GameSession.gd b/game/src/Game/GameSession/GameSession.gd
index 2a27e3d..afff820 100644
--- a/game/src/Game/GameSession/GameSession.gd
+++ b/game/src/Game/GameSession/GameSession.gd
@@ -7,6 +7,12 @@ func _ready():
if GameSingleton.setup_game() != OK:
push_error("Failed to setup game")
+ # Temporarily here for cosmetic reasons, will be moved to its
+ # own child node later, similar to ProvinceOverviewPanel
+ add_child(GameSingleton.generate_gui("topbar.gui", "topbar"))
+ $topbar/topbar_outlinerbutton_bg.visible = false
+ $topbar/topbar_outlinerbutton.visible = false
+
func _process(_delta : float):
GameSingleton.try_tick()