Merge pull request #204 from novhack/switch-colors-shortcut

Switch colors shortcut
This commit is contained in:
Manolis Papadeas 2020-04-16 18:25:11 +03:00 committed by GitHub
commit 42dbd31c7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 13 deletions

View file

@ -363,6 +363,9 @@ func set_action_shortcut(action : String, old_input : InputEventKey, new_input :
InputMap.action_erase_event(action, old_input)
InputMap.action_add_event(action, new_input)
Global.update_hint_tooltips()
# Set shortcut to switch colors button
if action == "switch_colors":
Global.color_switch_button.shortcut.shortcut = InputMap.get_action_list("switch_colors")[0]
func _on_GridWidthValue_value_changed(value : float) -> void: