mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
|
[gd_scene load_steps=2 format=2]
|
||
|
|
||
|
[ext_resource path="res://addons/keychain/ShortcutSelectorDialog.gd" type="Script" id=1]
|
||
|
|
||
|
[node name="ShortcutSelectorDialog" type="ConfirmationDialog"]
|
||
|
margin_right = 200.0
|
||
|
margin_bottom = 70.0
|
||
|
popup_exclusive = true
|
||
|
window_title = "Set the shortcut"
|
||
|
script = ExtResource( 1 )
|
||
|
|
||
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||
|
margin_left = 8.0
|
||
|
margin_top = 8.0
|
||
|
margin_right = 341.0
|
||
|
margin_bottom = 64.0
|
||
|
|
||
|
[node name="InputTypeLabel" type="Label" parent="VBoxContainer"]
|
||
|
margin_right = 333.0
|
||
|
margin_bottom = 14.0
|
||
|
text = "Press a key or a key combination to set the shortcut"
|
||
|
|
||
|
[node name="EnteredShortcut" type="LineEdit" parent="VBoxContainer"]
|
||
|
visible = false
|
||
|
margin_top = 18.0
|
||
|
margin_right = 333.0
|
||
|
margin_bottom = 32.0
|
||
|
align = 1
|
||
|
editable = false
|
||
|
virtual_keyboard_enabled = false
|
||
|
|
||
|
[node name="OptionButton" type="OptionButton" parent="VBoxContainer"]
|
||
|
margin_top = 18.0
|
||
|
margin_right = 333.0
|
||
|
margin_bottom = 38.0
|
||
|
mouse_default_cursor_shape = 2
|
||
|
|
||
|
[node name="AlreadyExistsLabel" type="Label" parent="VBoxContainer"]
|
||
|
margin_top = 42.0
|
||
|
margin_right = 333.0
|
||
|
margin_bottom = 56.0
|
||
|
align = 1
|
||
|
|
||
|
[connection signal="about_to_show" from="." to="." method="_on_ShortcutSelectorDialog_about_to_show"]
|
||
|
[connection signal="confirmed" from="." to="." method="_on_ShortcutSelectorDialog_confirmed"]
|
||
|
[connection signal="popup_hide" from="." to="." method="_on_ShortcutSelectorDialog_popup_hide"]
|
||
|
[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"]
|