From f73ef06b502aa36dca73a173bbee089ae91729ab Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Mon, 17 Jan 2022 13:50:22 +0100 Subject: thumbnails --- scripts/gui_turret_detail.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/gui_turret_detail.gd') 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") -- cgit v1.2.3-54-g00ecf