diff --git a/project.godot b/project.godot index 046002eef..853f723ff 100644 --- a/project.godot +++ b/project.godot @@ -875,6 +875,10 @@ right_curvetool_tool={ "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":true,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":74,"physical_keycode":0,"key_label":0,"unicode":106,"echo":false,"script":null) ] } +alpha_lock={ +"deadzone": 0.5, +"events": [] +} [input_devices] diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index a611e3d2f..82e09f220 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -786,6 +786,7 @@ func _initialize_keychain() -> void: "horizontal_mirror": Keychain.InputAction.new("", "Buttons"), "vertical_mirror": Keychain.InputAction.new("", "Buttons"), "pixel_perfect": Keychain.InputAction.new("", "Buttons"), + "alpha_lock": Keychain.InputAction.new("", "Buttons"), "new_layer": Keychain.InputAction.new("", "Buttons"), "remove_layer": Keychain.InputAction.new("", "Buttons"), "move_layer_up": Keychain.InputAction.new("", "Buttons"), diff --git a/src/UI/GlobalToolOptions/GlobalToolOptions.tscn b/src/UI/GlobalToolOptions/GlobalToolOptions.tscn index cc03f0188..d2ed234ab 100644 --- a/src/UI/GlobalToolOptions/GlobalToolOptions.tscn +++ b/src/UI/GlobalToolOptions/GlobalToolOptions.tscn @@ -23,7 +23,7 @@ action = &"vertical_mirror" events = [SubResource("InputEventAction_24etr")] [sub_resource type="InputEventAction" id="InputEventAction_ebgk6"] -action = &"pixel_perfect" +action = &"alpha_lock" [sub_resource type="Shortcut" id="Shortcut_vcyug"] events = [SubResource("InputEventAction_ebgk6")]