aboutsummaryrefslogtreecommitdiff
path: root/game/addons/keychain/ShortcutSelectorDialog.tscn
blob: 65250e3063f84b8fc62232e52e113a56fd6e143d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[gd_scene load_steps=2 format=3 uid="uid://bfjcafe2kvx7n"]

[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 = 409.0
offset_bottom = 120.0

[node name="InputTypeLabel" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "Press a key or a key combination to set the shortcut"

[node name="EnteredShortcut" type="LineEdit" parent="VBoxContainer"]
visible = false
layout_mode = 2
editable = false
virtual_keyboard_enabled = false

[node name="OptionButton" type="OptionButton" parent="VBoxContainer"]
layout_mode = 2
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

[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"]