aboutsummaryrefslogtreecommitdiff
path: root/game/addons/keychain/ShortcutSelectorDialog.tscn
blob: d8f528f7f3a6fbec42491671330a7bca97d1e8ac (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
[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"]
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

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