aboutsummaryrefslogtreecommitdiff
path: root/game/addons/keychain/ShortcutSelectorDialog.tscn
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2024-05-04 23:56:36 +0200
committer GitHub <noreply@github.com>2024-05-04 23:56:36 +0200
commit8c8ee1524f51d44acd1d1894eda5984956cba9a6 (patch)
tree4952dc83ebdf9f3bfffbdc9240eead87b8eac70e /game/addons/keychain/ShortcutSelectorDialog.tscn
parentbf3df0ee900f406a5a2aa56609ecb89c67055351 (diff)
parent6bc32dc48c775223310e757072beab2a4bb0e9b4 (diff)
Merge pull request #225 from Spartan322/update/keychain
Update Keychain to Orama-Interactive/Keychain@5031af5
Diffstat (limited to 'game/addons/keychain/ShortcutSelectorDialog.tscn')
-rw-r--r--game/addons/keychain/ShortcutSelectorDialog.tscn49
1 files changed, 36 insertions, 13 deletions
diff --git a/game/addons/keychain/ShortcutSelectorDialog.tscn b/game/addons/keychain/ShortcutSelectorDialog.tscn
index d8f528f..65250e3 100644
--- a/game/addons/keychain/ShortcutSelectorDialog.tscn
+++ b/game/addons/keychain/ShortcutSelectorDialog.tscn
@@ -3,44 +3,67 @@
[ext_resource type="Script" path="res://addons/keychain/ShortcutSelectorDialog.gd" id="1"]
[node name="ShortcutSelectorDialog" type="ConfirmationDialog"]
+size = Vector2i(417, 169)
script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
offset_left = 8.0
offset_top = 8.0
-offset_right = 341.0
-offset_bottom = 64.0
+offset_right = 409.0
+offset_bottom = 120.0
[node name="InputTypeLabel" type="Label" parent="VBoxContainer"]
layout_mode = 2
-offset_right = 333.0
-offset_bottom = 14.0
text = "Press a key or a key combination to set the shortcut"
[node name="EnteredShortcut" type="LineEdit" parent="VBoxContainer"]
visible = false
layout_mode = 2
-offset_top = 18.0
-offset_right = 333.0
-offset_bottom = 32.0
editable = false
virtual_keyboard_enabled = false
[node name="OptionButton" type="OptionButton" parent="VBoxContainer"]
layout_mode = 2
-offset_top = 18.0
-offset_right = 333.0
-offset_bottom = 38.0
mouse_default_cursor_shape = 2
+[node name="ModifierButtons" type="HBoxContainer" parent="VBoxContainer"]
+layout_mode = 2
+
+[node name="Alt" type="CheckBox" parent="VBoxContainer/ModifierButtons"]
+layout_mode = 2
+mouse_default_cursor_shape = 2
+text = "Alt"
+
+[node name="Shift" type="CheckBox" parent="VBoxContainer/ModifierButtons"]
+layout_mode = 2
+mouse_default_cursor_shape = 2
+text = "Shift"
+
+[node name="Control" type="CheckBox" parent="VBoxContainer/ModifierButtons"]
+layout_mode = 2
+mouse_default_cursor_shape = 2
+text = "Control"
+
+[node name="Meta" type="CheckBox" parent="VBoxContainer/ModifierButtons"]
+layout_mode = 2
+mouse_default_cursor_shape = 2
+text = "Meta"
+
+[node name="CommandOrControl" type="CheckBox" parent="VBoxContainer/ModifierButtons"]
+layout_mode = 2
+mouse_default_cursor_shape = 2
+text = "Command / Control (auto)"
+
[node name="AlreadyExistsLabel" type="Label" parent="VBoxContainer"]
layout_mode = 2
-offset_top = 42.0
-offset_right = 333.0
-offset_bottom = 56.0
[connection signal="about_to_popup" from="." to="." method="_on_ShortcutSelectorDialog_about_to_show"]
[connection signal="confirmed" from="." to="." method="_on_ShortcutSelectorDialog_confirmed"]
[connection signal="focus_entered" from="VBoxContainer/EnteredShortcut" to="." method="_on_EnteredShortcut_focus_entered"]
[connection signal="focus_exited" from="VBoxContainer/EnteredShortcut" to="." method="_on_EnteredShortcut_focus_exited"]
[connection signal="item_selected" from="VBoxContainer/OptionButton" to="." method="_on_OptionButton_item_selected"]
+[connection signal="toggled" from="VBoxContainer/ModifierButtons/Alt" to="." method="_on_alt_toggled"]
+[connection signal="toggled" from="VBoxContainer/ModifierButtons/Shift" to="." method="_on_shift_toggled"]
+[connection signal="toggled" from="VBoxContainer/ModifierButtons/Control" to="." method="_on_control_toggled"]
+[connection signal="toggled" from="VBoxContainer/ModifierButtons/Meta" to="." method="_on_meta_toggled"]
+[connection signal="toggled" from="VBoxContainer/ModifierButtons/CommandOrControl" to="." method="_on_command_or_control_toggled"]