aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd
diff options
context:
space:
mode:
author Gone2Daly <71726742+Gone2Daly@users.noreply.github.com>2023-09-04 20:16:22 +0200
committer Gone2Daly <71726742+Gone2Daly@users.noreply.github.com>2023-09-04 20:16:22 +0200
commitfd1202ada5cece7e3298cce7c778bef7271321b3 (patch)
tree0ca4aa8d3350b0cb646d1616276e7ae6daf8d1b3 /game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd
parent8a8ae125a5606a0ceeb4171419176f09d86dad04 (diff)
Labels and localisation
Diffstat (limited to 'game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd')
-rw-r--r--game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd b/game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd
new file mode 100644
index 0000000..c4e3eb6
--- /dev/null
+++ b/game/src/Game/GameSession/MainManagamentPanel/MilitaryPanel.gd
@@ -0,0 +1,7 @@
+extends Button
+var PopPanel = load("res://src/Game/GameSession/MainManagamentPanel/PopupPanel.tscn")
+
+func _on_pressed():
+ var spawn = PopPanel.instantiate()
+ spawn.PanelName = "EXAMPLE_POPUP"
+ $"../../..".add_child(spawn) # Spawning window on MainManagamentPanel