aboutsummaryrefslogtreecommitdiff
path: root/scripts/control.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-02-01 15:19:36 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-02-01 15:19:36 +0100
commite8b2ea6b2bf789b7942d86faebbcc4d810741f25 (patch)
tree042004ea555859cd33c3069f88593a35f5e09a3c /scripts/control.gd
parentff51a1e6f7bfa7e005a6894cd22e7bce4971b963 (diff)
targeting
Diffstat (limited to 'scripts/control.gd')
-rw-r--r--scripts/control.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/control.gd b/scripts/control.gd
index ff2d8da..fafd3d8 100644
--- a/scripts/control.gd
+++ b/scripts/control.gd
@@ -79,6 +79,14 @@ func build_option (st, sttype):
opts += [ { "type": "text", "name": "back" } ]
Globals.StateType.TARGETING:
+ opts += [ { "type": "text", "name": "first" } ]
+ opts += [ { "type": "text", "name": "last" } ]
+ opts += [ { "type": "text", "name": "strongest" } ]
+ opts += [ { "type": "text", "name": "weakest" } ]
+ opts += [ { "type": "text", "name": "closest" } ]
+ opts += [ { "type": "text", "name": "furthest" } ]
+ opts += [ { "type": "text", "name": "least turning" } ]
+ opts += [ { "type": "text", "name": "most turning" } ]
opts += [ { "type": "text", "name": "back" } ]
Globals.StateType.MODULES:
@@ -225,6 +233,11 @@ func do (action, par = {}):
"back":
statetype = Globals.StateType.TURRET
build_option(state, statetype)
+ _:
+ statetype = Globals.StateType.TURRET
+ var turr = turret_holder.get_node(editing_turret)
+ turr.aim_mode = par.name
+ build_option(state, statetype)
Globals.StateType.MODULES:
selected = par.name