aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd
diff options
context:
space:
mode:
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
commitfd1202ada5cece7e3298cce7c778bef7271321b3 (patch)
tree0ca4aa8d3350b0cb646d1616276e7ae6daf8d1b3 /game/src/Game/GameSession/MainManagamentPanel/BudgetPanel.gd
parent8a8ae125a5606a0ceeb4171419176f09d86dad04 (diff)
Labels and localisation
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