diff options
Diffstat (limited to 'game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd')
-rw-r--r-- | game/src/Game/GameSession/MainManagamentPanel/TradePanel.gd | 7 |
1 files changed, 7 insertions, 0 deletions
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 |