From fd1202ada5cece7e3298cce7c778bef7271321b3 Mon Sep 17 00:00:00 2001 From: Gone2Daly <71726742+Gone2Daly@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:16:22 +0200 Subject: Labels and localisation --- game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd (limited to 'game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd') diff --git a/game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd b/game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd new file mode 100644 index 0000000..c4e3eb6 --- /dev/null +++ b/game/src/Game/GameSession/MainManagamentPanel/TradePanel.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 -- cgit v1.2.3-56-ga3b1