1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Use Control + Wheel to change shape thickness

This commit is contained in:
Emmanouil Papadeas 2022-11-30 00:29:44 +02:00
parent 0db574c769
commit 60e58952a5
3 changed files with 3 additions and 2 deletions

View file

@ -15,6 +15,7 @@ min_value = 1.0
value = 1.0 value = 1.0
prefix = "Size:" prefix = "Size:"
suffix = "px" suffix = "px"
is_global = true
[node name="Brush" parent="." index="3"] [node name="Brush" parent="." index="3"]
visible = false visible = false

View file

@ -15,6 +15,7 @@ min_value = 1.0
value = 1.0 value = 1.0
prefix = "Size:" prefix = "Size:"
suffix = "px" suffix = "px"
is_global = true
[node name="FillCheckbox" type="CheckBox" parent="." index="3"] [node name="FillCheckbox" type="CheckBox" parent="." index="3"]
margin_top = 54.0 margin_top = 54.0

View file

@ -50,8 +50,7 @@ func _input(event: InputEvent) -> void:
if not editable: if not editable:
return return
# Hardcode Control + Wheel as a global shortcut, if is_global is true # Hardcode Control + Wheel as a global shortcut, if is_global is true
# In Godot 4.x this will change into two is_action() checks for incrementing # In Godot 4.x this will change into two is_action() checks for incrementing and decrementing
# and decrementing
if not event is InputEventMouseButton: if not event is InputEventMouseButton:
return return
if not event.pressed: if not event.pressed: