[gd_scene load_steps=8 format=3 uid="uid://b585eksgmfnit"] [ext_resource type="Script" uid="uid://c03j7kms107t6" path="res://scenes/game.gd" id="1_lbhrr"] [ext_resource type="Texture2D" uid="uid://dxiteu5obkxg4" path="res://images/menu_logo.png" id="1_uwrxv"] [ext_resource type="Texture2D" uid="uid://hprydbmbkkc3" path="res://images/play-button.png" id="2_yqjtg"] [ext_resource type="AudioStream" uid="uid://bf16kwp1ccwh4" path="res://audios/instrucciones.mp3" id="5_iywne"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_p57ef"] 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) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_iywne"] 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_lbhrr") [node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 autoplay = true expand = true loop = true [node name="HBoxContainer" type="HBoxContainer" parent="."] layout_mode = 1 anchors_preset = 10 anchor_right = 1.0 grow_horizontal = 2 [node name="MenuButton" type="MenuButton" parent="HBoxContainer"] layout_mode = 2 icon = ExtResource("1_uwrxv") [node name="Control" type="Control" parent="HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 [node name="NextVideoButton" type="TextureButton" parent="HBoxContainer"] layout_mode = 2 texture_normal = ExtResource("2_yqjtg") [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] stream = ExtResource("5_iywne") [node name="EndOfVideosWindow" type="Window" parent="."] initial_position = 1 size = Vector2i(600, 200) visible = false [node name="ColorRect" type="ColorRect" parent="EndOfVideosWindow"] 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="EndOfVideosWindow"] anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -160.5 offset_top = -17.5 offset_right = 160.5 offset_bottom = 17.5 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/separation = 30 [node name="Label" type="Label" parent="EndOfVideosWindow/VBoxContainer"] layout_mode = 2 theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1) theme_override_font_sizes/font_size = 25 text = "¡Enorabuena, has finalizado todos los ejercicios!" [node name="EndOfVideosButton" type="Button" parent="EndOfVideosWindow/VBoxContainer"] custom_minimum_size = Vector2(250, 80) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 6 theme_override_styles/normal = SubResource("StyleBoxFlat_p57ef") text = "Aceptar" [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 = -151.5 offset_top = -20.0 offset_right = 151.5 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/separation = 30 [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_font_sizes/font_size = 25 theme_override_styles/normal = SubResource("StyleBoxFlat_lbhrr") text = "Aceptar" [node name="DontExitButton" 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_font_sizes/font_size = 25 theme_override_styles/normal = SubResource("StyleBoxFlat_iywne") 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 [connection signal="pressed" from="HBoxContainer/NextVideoButton" to="." method="_on_next_video_button_pressed"] [connection signal="pressed" from="EndOfVideosWindow/VBoxContainer/EndOfVideosButton" to="." method="_on_end_of_videos_button_pressed"]