godot-xterm/addons/gut/gui/ShortcutButton.tscn

81 lines
2 KiB
Text
Raw Normal View History

2023-01-20 22:12:47 +01:00
[gd_scene load_steps=2 format=2]
2023-01-20 22:12:47 +01:00
[ext_resource path="res://addons/gut/gui/ShortcutButton.gd" type="Script" id=1]
[node name="ShortcutButton" type="Control"]
anchor_right = 0.123
anchor_bottom = 0.04
offset_right = 33.048
offset_bottom = 1.0
2023-01-20 22:12:47 +01:00
custom_minimum_size = Vector2( 125, 25 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Layout" type="HBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
2023-01-20 22:12:47 +01:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="lblShortcut" type="Label" parent="Layout"]
2023-01-20 22:12:47 +01:00
offset_right = 50.0
offset_bottom = 25.0
size_flags_horizontal = 3
size_flags_vertical = 7
text = "<None>"
2023-01-20 22:12:47 +01:00
align = 2
valign = 1
[node name="CenterContainer" type="CenterContainer" parent="Layout"]
2023-01-20 22:12:47 +01:00
offset_left = 54.0
offset_right = 64.0
offset_bottom = 25.0
custom_minimum_size = Vector2( 10, 0 )
[node name="SetButton" type="Button" parent="Layout"]
2023-01-20 22:12:47 +01:00
offset_left = 68.0
offset_right = 128.0
offset_bottom = 25.0
custom_minimum_size = Vector2( 60, 0 )
text = "Set"
2023-01-20 22:12:47 +01:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SaveButton" type="Button" parent="Layout"]
visible = false
2023-01-20 22:12:47 +01:00
offset_left = 82.0
offset_right = 142.0
offset_bottom = 25.0
custom_minimum_size = Vector2( 60, 0 )
text = "Save"
2023-01-20 22:12:47 +01:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CancelButton" type="Button" parent="Layout"]
visible = false
2023-01-20 22:12:47 +01:00
offset_left = 82.0
offset_right = 142.0
offset_bottom = 25.0
custom_minimum_size = Vector2( 60, 0 )
text = "Cancel"
2023-01-20 22:12:47 +01:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ClearButton" type="Button" parent="Layout"]
2023-01-20 22:12:47 +01:00
offset_left = 132.0
offset_right = 192.0
offset_bottom = 25.0
custom_minimum_size = Vector2( 60, 0 )
text = "Clear"
[connection signal="pressed" from="Layout/SetButton" to="." method="_on_SetButton_pressed"]
[connection signal="pressed" from="Layout/SaveButton" to="." method="_on_SaveButton_pressed"]
[connection signal="pressed" from="Layout/CancelButton" to="." method="_on_CancelButton_pressed"]
[connection signal="pressed" from="Layout/ClearButton" to="." method="_on_ClearButton_pressed"]