alai/godot/monitor/GUI.tscn

250 lines
9.0 KiB
Plaintext

[gd_scene load_steps=18 format=2]
[ext_resource path="res://assets/fonts/data/PixelOperator.tres" type="DynamicFontData" id=1]
[ext_resource path="res://assets/fonts/data/PixelOperator-Bold.tres" type="DynamicFontData" id=2]
[ext_resource path="res://monitor/Rut.gd" type="Script" id=3]
[ext_resource path="res://monitor/UISounds.gd" type="Script" id=4]
[ext_resource path="res://monitor/EnterButton.gd" type="Script" id=5]
[ext_resource path="res://assets/sounds/ui_popup.wav" type="AudioStream" id=6]
[ext_resource path="res://assets/sounds/ui_select.wav" type="AudioStream" id=7]
[ext_resource path="res://monitor/MonitorGUI.gd" type="Script" id=8]
[sub_resource type="DynamicFont" id=1]
font_data = ExtResource( 1 )
[sub_resource type="DynamicFont" id=14]
size = 8
extra_spacing_top = 4
font_data = ExtResource( 1 )
[sub_resource type="StyleBoxFlat" id=13]
content_margin_left = 5.0
content_margin_right = 5.0
content_margin_top = 2.0
content_margin_bottom = 2.0
bg_color = Color( 0.313726, 0.290196, 0.290196, 0.752941 )
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="DynamicFont" id=11]
size = 12
extra_spacing_top = 2
extra_spacing_bottom = 2
extra_spacing_char = 2
extra_spacing_space = 2
font_data = ExtResource( 2 )
[sub_resource type="StyleBoxFlat" id=12]
content_margin_left = 5.0
content_margin_right = 5.0
content_margin_top = 5.0
content_margin_bottom = 5.0
bg_color = Color( 0.313726, 0.290196, 0.290196, 0.752941 )
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="InputEventAction" id=17]
action = "ui_accept"
pressed = true
[sub_resource type="ShortCut" id=18]
shortcut = SubResource( 17 )
[sub_resource type="StyleBoxFlat" id=15]
bg_color = Color( 0.239216, 0.239216, 0.239216, 1 )
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
expand_margin_left = 5.0
expand_margin_right = 5.0
expand_margin_top = 5.0
expand_margin_bottom = 5.0
[sub_resource type="DynamicFont" id=16]
font_data = ExtResource( 2 )
[node name="MonitorGUI" type="CanvasLayer"]
pause_mode = 2
script = ExtResource( 8 )
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 40.0
margin_bottom = 40.0
rect_min_size = Vector2( 512, 288 )
color = Color( 0.0117647, 0.00784314, 0.00784314, 0.376471 )
[node name="GUI" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
rect_min_size = Vector2( 512, 0 )
[node name="Sounds" type="Node" parent="GUI"]
script = ExtResource( 4 )
[node name="Popup" type="AudioStreamPlayer" parent="GUI/Sounds"]
stream = ExtResource( 6 )
[node name="Menu" type="AudioStreamPlayer" parent="GUI/Sounds"]
stream = ExtResource( 7 )
[node name="VBoxContainer" type="VBoxContainer" parent="GUI"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 0
[node name="CenterContainer" type="CenterContainer" parent="GUI/VBoxContainer"]
margin_right = 512.0
margin_bottom = 96.0
rect_min_size = Vector2( 0, 96 )
size_flags_horizontal = 3
[node name="Label" type="Label" parent="GUI/VBoxContainer/CenterContainer"]
margin_top = 30.0
margin_right = 512.0
margin_bottom = 65.0
rect_min_size = Vector2( 512, 0 )
custom_fonts/font = SubResource( 1 )
text = "Ingresa su nombre completo, RUT y email por favor!"
align = 1
autowrap = true
[node name="CenterContainer2" type="CenterContainer" parent="GUI/VBoxContainer"]
margin_top = 96.0
margin_right = 512.0
margin_bottom = 192.0
rect_min_size = Vector2( 0, 96 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="VBoxContainer2" type="VBoxContainer" parent="GUI/VBoxContainer/CenterContainer2"]
margin_left = 16.0
margin_top = 14.0
margin_right = 496.0
margin_bottom = 82.0
rect_min_size = Vector2( 480, 0 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Name" type="LineEdit" parent="GUI/VBoxContainer/CenterContainer2/VBoxContainer2"]
unique_name_in_owner = true
margin_right = 480.0
margin_bottom = 20.0
focus_neighbour_left = NodePath("../../../CenterContainer3/Button")
focus_neighbour_top = NodePath("../../../CenterContainer3/Button")
focus_neighbour_right = NodePath("../Rut")
focus_neighbour_bottom = NodePath("../Rut")
focus_next = NodePath("../Rut")
focus_previous = NodePath("../../../CenterContainer3/Button")
custom_fonts/font = SubResource( 14 )
custom_styles/normal = SubResource( 13 )
max_length = 256
context_menu_enabled = false
clear_button_enabled = true
placeholder_text = "Nombre Completo"
caret_blink = true
[node name="Rut" type="LineEdit" parent="GUI/VBoxContainer/CenterContainer2/VBoxContainer2"]
unique_name_in_owner = true
margin_top = 24.0
margin_right = 480.0
margin_bottom = 44.0
focus_neighbour_left = NodePath("../Name")
focus_neighbour_top = NodePath("../Name")
focus_neighbour_right = NodePath("../Email")
focus_neighbour_bottom = NodePath("../Email")
focus_next = NodePath("../Email")
focus_previous = NodePath("../Name")
custom_fonts/font = SubResource( 14 )
custom_styles/normal = SubResource( 13 )
max_length = 12
context_menu_enabled = false
clear_button_enabled = true
placeholder_text = "RUT"
caret_blink = true
script = ExtResource( 3 )
[node name="Email" type="LineEdit" parent="GUI/VBoxContainer/CenterContainer2/VBoxContainer2"]
unique_name_in_owner = true
margin_top = 48.0
margin_right = 480.0
margin_bottom = 68.0
focus_neighbour_left = NodePath("../Rut")
focus_neighbour_top = NodePath("../Rut")
focus_neighbour_right = NodePath("../../../CenterContainer3/Button")
focus_neighbour_bottom = NodePath("../../../CenterContainer3/Button")
focus_next = NodePath("../../../CenterContainer3/Button")
focus_previous = NodePath("../Rut")
custom_fonts/font = SubResource( 14 )
custom_styles/normal = SubResource( 13 )
max_length = 256
context_menu_enabled = false
clear_button_enabled = true
placeholder_text = "Email"
caret_blink = true
[node name="CenterContainer3" type="CenterContainer" parent="GUI/VBoxContainer"]
margin_top = 192.0
margin_right = 512.0
margin_bottom = 288.0
rect_min_size = Vector2( 0, 96 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Button" type="Button" parent="GUI/VBoxContainer/CenterContainer3"]
margin_left = 197.0
margin_top = 34.0
margin_right = 314.0
margin_bottom = 61.0
focus_neighbour_left = NodePath("../../CenterContainer2/VBoxContainer2/Email")
focus_neighbour_top = NodePath("../../CenterContainer2/VBoxContainer2/Email")
focus_neighbour_right = NodePath("../../CenterContainer2/VBoxContainer2/Name")
focus_neighbour_bottom = NodePath("../../CenterContainer2/VBoxContainer2/Name")
focus_next = NodePath("../../CenterContainer2/VBoxContainer2/Name")
focus_previous = NodePath("../../CenterContainer2/VBoxContainer2/Email")
custom_fonts/font = SubResource( 11 )
custom_styles/normal = SubResource( 12 )
shortcut_in_tooltip = false
shortcut = SubResource( 18 )
text = "Ingresar"
script = ExtResource( 5 )
[node name="PopupDialog" type="PopupDialog" parent="."]
unique_name_in_owner = true
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 96.0
margin_top = 96.0
margin_right = -96.0
margin_bottom = -96.0
custom_styles/panel = SubResource( 15 )
[node name="ErrorMessage" type="Label" parent="PopupDialog"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 7
custom_fonts/font = SubResource( 16 )
text = "Error Message"
align = 1
valign = 1
autowrap = true
[connection signal="focus_entered" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Name" to="GUI/Sounds" method="_play_ui_select_sound"]
[connection signal="text_entered" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Name" to="GUI/VBoxContainer/CenterContainer3/Button" method="_on_text_entered"]
[connection signal="focus_entered" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Rut" to="GUI/Sounds" method="_play_ui_select_sound"]
[connection signal="text_changed" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Rut" to="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Rut" method="_on_Rut_text_changed"]
[connection signal="text_entered" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Rut" to="GUI/VBoxContainer/CenterContainer3/Button" method="_on_text_entered"]
[connection signal="focus_entered" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Email" to="GUI/Sounds" method="_play_ui_select_sound"]
[connection signal="text_entered" from="GUI/VBoxContainer/CenterContainer2/VBoxContainer2/Email" to="GUI/VBoxContainer/CenterContainer3/Button" method="_on_text_entered"]
[connection signal="focus_entered" from="GUI/VBoxContainer/CenterContainer3/Button" to="GUI/Sounds" method="_play_ui_select_sound"]
[connection signal="pressed" from="GUI/VBoxContainer/CenterContainer3/Button" to="GUI/VBoxContainer/CenterContainer3/Button" method="_on_Button_pressed"]
[connection signal="focus_entered" from="PopupDialog" to="GUI/Sounds" method="_play_popup_sound"]
[connection signal="gui_input" from="PopupDialog" to="GUI/VBoxContainer/CenterContainer3/Button" method="_on_PopupDialog_gui_input"]