aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/GameSession.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-17 21:17:55 +0100
committer GitHub <noreply@github.com>2023-11-17 21:17:55 +0100
commit9165f5980c5cfe75b3bad4303a5822340f6adcfc (patch)
tree79a69cb7601bf1367e4ee4f10ebf61b698319bf3 /game/src/Game/GameSession/GameSession.gd
parent72d893d55d26ae9dc6739a853d1773b3cb286123 (diff)
parentaefc61a1aff091e31436c60d004531b5905cecba (diff)
Merge pull request #166 from OpenVicProject/gui
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()