aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd')
-rw-r--r--game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd b/game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd
new file mode 100644
index 0000000..c4e3eb6
--- /dev/null
+++ b/game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.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