diff options
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 |
commit | fd1202ada5cece7e3298cce7c778bef7271321b3 (patch) | |
tree | 0ca4aa8d3350b0cb646d1616276e7ae6daf8d1b3 /game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd | |
parent | 8a8ae125a5606a0ceeb4171419176f09d86dad04 (diff) |
Labels and localisation
Diffstat (limited to 'game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd')
-rw-r--r-- | game/src/Game/GameSession/MainManagamentPanel/DiplomacyPanel.gd | 7 |
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 |