mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-15 10:13:07 +00:00
formatting
This commit is contained in:
parent
7b6530021f
commit
c6b3adceb4
1 changed files with 2 additions and 6 deletions
|
@ -639,17 +639,13 @@ func handle_draw(position: Vector2i, event: InputEvent) -> void:
|
||||||
and active_button == -1
|
and active_button == -1
|
||||||
and not pen_inverted
|
and not pen_inverted
|
||||||
)
|
)
|
||||||
or (
|
or event.is_action_pressed(&"activate_left_tool") and active_button == -1 and pen_inverted
|
||||||
event.is_action_pressed(&"activate_left_tool") and active_button == -1 and pen_inverted
|
|
||||||
)
|
|
||||||
):
|
):
|
||||||
active_button = MOUSE_BUTTON_RIGHT
|
active_button = MOUSE_BUTTON_RIGHT
|
||||||
_slots[active_button].tool_node.draw_start(draw_pos)
|
_slots[active_button].tool_node.draw_start(draw_pos)
|
||||||
elif (
|
elif (
|
||||||
(event.is_action_released(&"activate_right_tool") and active_button == MOUSE_BUTTON_RIGHT)
|
(event.is_action_released(&"activate_right_tool") and active_button == MOUSE_BUTTON_RIGHT)
|
||||||
or (
|
or event.is_action_released(&"activate_left_tool") and active_button == MOUSE_BUTTON_RIGHT
|
||||||
event.is_action_released(&"activate_left_tool") and active_button == MOUSE_BUTTON_RIGHT
|
|
||||||
)
|
|
||||||
):
|
):
|
||||||
_slots[active_button].tool_node.draw_end(draw_pos)
|
_slots[active_button].tool_node.draw_end(draw_pos)
|
||||||
active_button = -1
|
active_button = -1
|
||||||
|
|
Loading…
Add table
Reference in a new issue