From 60e58952a5c967cd11fb9b0250f1e26e2d63c8b7 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Wed, 30 Nov 2022 00:29:44 +0200 Subject: [PATCH] Use Control + Wheel to change shape thickness --- src/Tools/LineTool.tscn | 1 + src/Tools/ShapeDrawer.tscn | 1 + src/UI/Nodes/ValueSlider.gd | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Tools/LineTool.tscn b/src/Tools/LineTool.tscn index 80bc01ba4..c62b68710 100644 --- a/src/Tools/LineTool.tscn +++ b/src/Tools/LineTool.tscn @@ -15,6 +15,7 @@ min_value = 1.0 value = 1.0 prefix = "Size:" suffix = "px" +is_global = true [node name="Brush" parent="." index="3"] visible = false diff --git a/src/Tools/ShapeDrawer.tscn b/src/Tools/ShapeDrawer.tscn index e034cb568..f75a7e35e 100644 --- a/src/Tools/ShapeDrawer.tscn +++ b/src/Tools/ShapeDrawer.tscn @@ -15,6 +15,7 @@ min_value = 1.0 value = 1.0 prefix = "Size:" suffix = "px" +is_global = true [node name="FillCheckbox" type="CheckBox" parent="." index="3"] margin_top = 54.0 diff --git a/src/UI/Nodes/ValueSlider.gd b/src/UI/Nodes/ValueSlider.gd index 104921407..93d07b0d8 100644 --- a/src/UI/Nodes/ValueSlider.gd +++ b/src/UI/Nodes/ValueSlider.gd @@ -50,8 +50,7 @@ func _input(event: InputEvent) -> void: if not editable: return # 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 - # and decrementing + # In Godot 4.x this will change into two is_action() checks for incrementing and decrementing if not event is InputEventMouseButton: return if not event.pressed: