aboutsummaryrefslogtreecommitdiff
path: root/scripts/gui_turret_detail.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-29 11:21:18 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-29 11:21:18 +0100
commit6360c7a2faeb21d797e8b6feae4db79908399534 (patch)
tree690864fed62c005195b22bf81d016bbdda082d55 /scripts/gui_turret_detail.gd
parent7b09cbabdf0461e7b15d161206f643e3ce73af9c (diff)
dict add
Diffstat (limited to 'scripts/gui_turret_detail.gd')
-rw-r--r--scripts/gui_turret_detail.gd6
1 files changed, 4 insertions, 2 deletions
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: