From 6360c7a2faeb21d797e8b6feae4db79908399534 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sat, 29 Jan 2022 11:21:18 +0100 Subject: dict add --- scripts/gui_turret_detail.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/gui_turret_detail.gd') diff --git a/scripts/gui_turret_detail.gd b/scripts/gui_turret_detail.gd index 74e382e..ec5d9a1 100644 --- a/scripts/gui_turret_detail.gd +++ b/scripts/gui_turret_detail.gd @@ -61,7 +61,9 @@ func _process(delta): var highlight = null if gui.control.state == Globals.PlayerState.EDIT and \ - gui.control.statetype == Globals.StateType.TURRET: + (gui.control.statetype == Globals.StateType.TURRET or \ + gui.control.statetype == Globals.StateType.MODULES or \ + gui.control.statetype == Globals.StateType.MODULES_PICK): var turret_name = gui.control.editing_turret highlight = _turret_holder.get_node(turret_name) @@ -72,7 +74,7 @@ func _process(delta): placing = gui.control.selected if highlight != null: - info = highlight.info + info = highlight.info_mod elif placing != null: info = load_turrets.info[placing] elif hovering != null: -- cgit v1.2.3-54-g00ecf