UI and other changes
This commit is contained in:
parent
87b5c11fcf
commit
215e24e246
79 changed files with 70023 additions and 2201 deletions
|
|
@ -20,13 +20,15 @@ extends SceneTree
|
|||
## | toggle_mic | M | - | Co-op |
|
||||
## | sprint (hold)| Shift | L3 (stick) | Sprint |
|
||||
## | weapon_next | Tab | D-pad down | Weapons |
|
||||
## | weapon_1..2 | 1, 2 | - | Weapons |
|
||||
## | weapon_1..6 | 1 - 6 | - | Weapons |
|
||||
## | offhand | Right mouse | LT | Off-hand |
|
||||
## The weapon keys are build mode's (build_next, build_1..2): outside build mode they pick the
|
||||
## main weapon. offhand shares the right mouse button with cancel: in build mode it dismantles.
|
||||
## STALE actions, from earlier versions of this table, are removed.
|
||||
## | pouch | I | R3 (stick) | HUD |
|
||||
## The weapon keys share build mode's (build_next, build_1..4): outside build mode they pick the
|
||||
## main weapon (the k-th owned, ScarecrowCombat.owned_main). offhand shares the right mouse button
|
||||
## with cancel: in build mode it dismantles. STALE actions, from earlier versions of this table,
|
||||
## are removed.
|
||||
|
||||
const STALE: Array[String] = ["weapon_3"]
|
||||
const STALE: Array[String] = []
|
||||
|
||||
|
||||
func _initialize() -> void:
|
||||
|
|
@ -37,7 +39,7 @@ func _initialize() -> void:
|
|||
_action("rotate_left", [_key(KEY_Z), _joy(JOY_BUTTON_DPAD_LEFT)])
|
||||
_action("rotate_right", [_key(KEY_C), _joy(JOY_BUTTON_DPAD_RIGHT)])
|
||||
_action("build_next", [_key(KEY_TAB), _joy(JOY_BUTTON_DPAD_DOWN)])
|
||||
var number_keys: Array[Key] = [KEY_1, KEY_2, KEY_3, KEY_4]
|
||||
var number_keys: Array[Key] = [KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6]
|
||||
for i in 4:
|
||||
_action("build_%d" % (i + 1), [_key(number_keys[i])])
|
||||
_action("cancel", [_mouse(MOUSE_BUTTON_RIGHT), _joy(JOY_BUTTON_B)])
|
||||
|
|
@ -46,9 +48,10 @@ func _initialize() -> void:
|
|||
_action("toggle_mic", [_key(KEY_M)])
|
||||
_action("sprint", [_key(KEY_SHIFT), _joy(JOY_BUTTON_LEFT_STICK)])
|
||||
_action("weapon_next", [_key(KEY_TAB), _joy(JOY_BUTTON_DPAD_DOWN)])
|
||||
for i in 2:
|
||||
for i in 6:
|
||||
_action("weapon_%d" % (i + 1), [_key(number_keys[i])])
|
||||
_action("offhand", [_mouse(MOUSE_BUTTON_RIGHT), _axis(JOY_AXIS_TRIGGER_LEFT)])
|
||||
_action("pouch", [_key(KEY_I), _joy(JOY_BUTTON_RIGHT_STICK)])
|
||||
for a in STALE:
|
||||
ProjectSettings.clear("input/" + a)
|
||||
var err := ProjectSettings.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue