aboutsummaryrefslogtreecommitdiff
path: root/scripts/gui_turret_detail.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui_turret_detail.gd')
-rw-r--r--scripts/gui_turret_detail.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gui_turret_detail.gd b/scripts/gui_turret_detail.gd
index f895a6e..74e382e 100644
--- a/scripts/gui_turret_detail.gd
+++ b/scripts/gui_turret_detail.gd
@@ -5,6 +5,7 @@ var hbox_global
var _turret_holder : Node
var _turret_values : Resource = load("res://scenes/gui/gui_turret_values.tscn")
var load_turrets : Node
+var resources : Node
var gui : Control
@@ -18,6 +19,8 @@ func _fetch ():
hbox_labels = $"hbox_global/hbox_labels"
hbox_global = $"hbox_global"
+ resources = root.get_node("player").get_node("resources")
+
load_turrets = root.get_node("saveload").get_node("load_turrets")
if !load_turrets.loaded: yield(load_turrets, "done_loading")