Deleted non-CC0 assets
Managed room7 camera pushes
This commit is contained in:
@@ -17,6 +17,8 @@ Implement methods to react to inputs.
|
||||
- left_click_on_item(item_global_id : String, event : InputEvent)
|
||||
- right_click_on_item(item_global_id : String, event : InputEvent)
|
||||
- left_double_click_on_item(item_global_id : String, event : InputEvent)
|
||||
|
||||
- mousewheel_action(direction : int)
|
||||
"""
|
||||
|
||||
signal element_focused(element_global_id)
|
||||
@@ -25,9 +27,10 @@ signal element_focused(element_global_id)
|
||||
func _input(event):
|
||||
if event.is_action_pressed("switch_action_verb"):
|
||||
if event.button_index == BUTTON_WHEEL_UP:
|
||||
$ui/verbs_layer/verbs_menu.iterate_actions_cursor(-1)
|
||||
escoria.inputs_manager._on_mousewheel_action(-1)
|
||||
elif event.button_index == BUTTON_WHEEL_DOWN:
|
||||
$ui/verbs_layer/verbs_menu.iterate_actions_cursor(1)
|
||||
escoria.inputs_manager._on_mousewheel_action(1)
|
||||
|
||||
|
||||
## BACKGROUND ##
|
||||
|
||||
@@ -112,3 +115,6 @@ func open_inventory():
|
||||
|
||||
func close_inventory():
|
||||
$ui/inventory_layer/inventory_ui/inventory_button.close_inventory()
|
||||
|
||||
func mousewheel_action(direction : int):
|
||||
pass
|
||||
|
||||
@@ -22,12 +22,12 @@ Implement methods to react to inputs.
|
||||
signal element_focused(element_global_id)
|
||||
|
||||
|
||||
func _input(event):
|
||||
if event.is_action_pressed("switch_action_verb"):
|
||||
if event.button_index == BUTTON_WHEEL_UP:
|
||||
$ui/verbs_layer/verbs_menu.iterate_actions_cursor(-1)
|
||||
elif event.button_index == BUTTON_WHEEL_DOWN:
|
||||
$ui/verbs_layer/verbs_menu.iterate_actions_cursor(1)
|
||||
#func _input(event):
|
||||
# if event.is_action_pressed("switch_action_verb"):
|
||||
# if event.button_index == BUTTON_WHEEL_UP:
|
||||
# $ui/verbs_layer/verbs_menu.iterate_actions_cursor(-1)
|
||||
# elif event.button_index == BUTTON_WHEEL_DOWN:
|
||||
# $ui/verbs_layer/verbs_menu.iterate_actions_cursor(1)
|
||||
|
||||
## BACKGROUND ##
|
||||
|
||||
@@ -110,3 +110,6 @@ func open_inventory():
|
||||
|
||||
func close_inventory():
|
||||
$ui/inventory_layer/inventory_ui/inventory_button.close_inventory()
|
||||
|
||||
func mousewheel_action(direction : int):
|
||||
$ui/verbs_layer/verbs_menu.iterate_actions_cursor(direction)
|
||||
|
||||
Reference in New Issue
Block a user