180 lines
5.3 KiB
Plaintext
180 lines
5.3 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://cetov1c7e36bf"]
|
|
|
|
[ext_resource type="Script" uid="uid://dlc5nmf2nugla" path="res://scripts/game.gd" id="1_uwrxv"]
|
|
[ext_resource type="AudioStream" uid="uid://msfckci5lndd" path="res://audios/instrucctions.mp3" id="2_lnu2h"]
|
|
[ext_resource type="Texture2D" uid="uid://bvmqrpye8v4qk" path="res://images/menu_logo.png" id="2_yqjtg"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uwrxv"]
|
|
bg_color = Color(0.588235, 0.654902, 0.686275, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yqjtg"]
|
|
bg_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lnu2h"]
|
|
bg_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lbhrr"]
|
|
bg_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
|
|
[node name="Game" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_uwrxv")
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("2_lnu2h")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="MenuButton" type="MenuButton" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 4
|
|
icon = ExtResource("2_yqjtg")
|
|
|
|
[node name="WinnerSelector" type="Window" parent="."]
|
|
initial_position = 1
|
|
size = Vector2i(500, 230)
|
|
visible = false
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="WinnerSelector"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.8, 0.8, 0.8, 1)
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="WinnerSelector"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -225.0
|
|
offset_top = -62.0
|
|
offset_right = 225.0
|
|
offset_bottom = 62.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 30
|
|
|
|
[node name="Label" type="Label" parent="WinnerSelector/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 6
|
|
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
text = "¿Quien a ganado?"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="MenuPlayers" type="MenuButton" parent="WinnerSelector/VBoxContainer"]
|
|
custom_minimum_size = Vector2(450, 30)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_uwrxv")
|
|
text = "Jugadores 🡣"
|
|
flat = false
|
|
|
|
[node name="Button" type="Button" parent="WinnerSelector/VBoxContainer"]
|
|
custom_minimum_size = Vector2(250, 50)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_yqjtg")
|
|
text = "Finalizar partida"
|
|
|
|
[node name="ExitButtonWindow" type="Window" parent="."]
|
|
title = "Advertencia ⚠️"
|
|
initial_position = 1
|
|
size = Vector2i(600, 200)
|
|
visible = false
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="ExitButtonWindow"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.8, 0.8, 0.8, 1)
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="ExitButtonWindow"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="ExitButtonWindow/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
theme_override_font_sizes/font_size = 30
|
|
text = "No se guardaran los datos de la partida"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="ExitButtonWindow/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="ConfirmExitButton" type="Button" parent="ExitButtonWindow/VBoxContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 80)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_lnu2h")
|
|
text = "Aceptar"
|
|
|
|
[node name="CancelExitButton" type="Button" parent="ExitButtonWindow/VBoxContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 80)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_lbhrr")
|
|
text = "Cancelar"
|
|
|
|
[node name="Blocker" type="ColorRect" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.196078, 0.309804, 0.368627, 0.784314)
|
|
|
|
[node name="Countdown" type="Label" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -11.5
|
|
offset_right = 20.0
|
|
offset_bottom = 11.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 200
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[connection signal="pressed" from="WinnerSelector/VBoxContainer/Button" to="." method="_on_winner_button_pressed"]
|