aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd')
-rw-r--r--game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd b/game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd
index ba72a01..6a3a3ea 100644
--- a/game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd
+++ b/game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd
@@ -1,6 +1,7 @@
extends Button
-var Pan = load("res://src/Game/GameSession/MainManagamentPanel/PopupPanel.tscn")
+var PopPanel = load("res://src/Game/GameSession/MainManagamentPanel/PopupPanel.tscn")
func _on_pressed():
- var spawn = Pan.instantiate()
+ var spawn = PopPanel.instantiate()
+ spawn.PanelName = "EXAMPLE_POPUP_BUDGET"
$"../../..".add_child(spawn) # Spawning window on MainManagamentPanel