Uses for every material (clay jar, bedroll, pelt rug, fang necklace, bear cloak, pemmican, bait), Q to drop, K/M bag rows on 1-8, help pages; protocol 14
This commit is contained in:
@@ -237,13 +237,22 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||
return
|
||||
for i in range(8):
|
||||
if event.is_action_pressed("hotbar_%d" % (i + 1)):
|
||||
player.select(i)
|
||||
player.select_in_row(i)
|
||||
return
|
||||
if event.is_action_pressed("row_up"):
|
||||
player.change_row(-1)
|
||||
return
|
||||
if event.is_action_pressed("row_down"):
|
||||
player.change_row(1)
|
||||
return
|
||||
if event.is_action_pressed("drop"):
|
||||
Actions.drop(player, player.selected, 1 if Input.is_key_pressed(KEY_SHIFT) else 0)
|
||||
return
|
||||
if event is InputEventMouseButton and event.pressed and Input.mouse_mode == Input.MOUSE_MODE_CAPTURED:
|
||||
if event.button_index == MOUSE_BUTTON_WHEEL_UP:
|
||||
player.select(player.selected - 1)
|
||||
player.select_in_row(player.selected % player.HOTBAR - 1)
|
||||
elif event.button_index == MOUSE_BUTTON_WHEEL_DOWN:
|
||||
player.select(player.selected + 1)
|
||||
player.select_in_row(player.selected % player.HOTBAR + 1)
|
||||
if event.is_action_released("attack") and _drawing:
|
||||
_release_bow()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user