57 lines
1.7 KiB
Text
57 lines
1.7 KiB
Text
[gd_scene load_steps=2 format=3 uid="uid://cvmel2sx7qfvy"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/controls/option_define_input.gd" id="1_pgm2r"]
|
|
|
|
[node name="Control" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource( "1_pgm2r" )
|
|
|
|
[node name="Window" type="Window" parent="."]
|
|
title = "OPTION_DEFINE_INPUT/TITLE"
|
|
position = Vector2i(30, 70)
|
|
size = Vector2i(300, 100)
|
|
visible = false
|
|
|
|
[node name="v" type="VBoxContainer" parent="Window"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="label" type="Label" parent="Window/v"]
|
|
offset_right = 1024.0
|
|
offset_bottom = 26.0
|
|
text = "OPTION_DEFINE_INPUT/MESSAGE_KEY"
|
|
|
|
[node name="result" type="Label" parent="Window/v"]
|
|
offset_top = 30.0
|
|
offset_right = 1024.0
|
|
offset_bottom = 53.0
|
|
size_flags_vertical = 6
|
|
|
|
[node name="h" type="HBoxContainer" parent="Window/v"]
|
|
offset_top = 57.0
|
|
offset_right = 1024.0
|
|
offset_bottom = 88.0
|
|
|
|
[node name="Cancel" type="Button" parent="Window/v/h"]
|
|
offset_right = 255.0
|
|
offset_bottom = 31.0
|
|
size_flags_horizontal = 6
|
|
text = "OPTION_DEFINE_INPUT/CANCEL"
|
|
|
|
[node name="Ok" type="Button" parent="Window/v/h"]
|
|
offset_left = 259.0
|
|
offset_right = 476.0
|
|
offset_bottom = 31.0
|
|
size_flags_horizontal = 6
|
|
text = "OPTION_DEFINE_INPUT/OK"
|
|
|
|
[connection signal="window_input" from="Window" to="." method="_on_window_window_input"]
|
|
[connection signal="pressed" from="Window/v/h/Cancel" to="." method="_on_cancel_pressed"]
|
|
[connection signal="mouse_entered" from="Window/v/h/Ok" to="." method="_on_ok_mouse_entered"]
|
|
[connection signal="mouse_exited" from="Window/v/h/Ok" to="." method="_on_ok_mouse_exited"]
|
|
[connection signal="pressed" from="Window/v/h/Ok" to="." method="_on_ok_pressed"]
|