aboutsummaryrefslogtreecommitdiff
path: root/scripts/gui_picker.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui_picker.gd')
-rw-r--r--scripts/gui_picker.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gui_picker.gd b/scripts/gui_picker.gd
index b888572..85909ec 100644
--- a/scripts/gui_picker.gd
+++ b/scripts/gui_picker.gd
@@ -52,11 +52,13 @@ func build (options : Array = []):
if opt.type == "turret buy":
var tinfo = load_turrets.info[opt.name]
button.get_node("name").text = tinfo.name
+ button.get_node("panel_cash").visible = true
button.get_node("cash").text = resources.dict_to_str(tinfo.cost)
button.get_node("texture").texture = load_turrets.thumbnails[tinfo.thumbnail_name]
if opt.type == "turret upg":
var tinfo = load_turrets.info[opt.name]
button.get_node("name").text = tinfo.name
+ button.get_node("panel_cash").visible = true
button.get_node("cash").text = resources.dict_to_str(tinfo.cost)
button.get_node("texture").texture = load_turrets.thumbnails[tinfo.thumbnail_name]
tback.texture = thumbs_generic["upgrade.svg"]