[gd_scene load_steps=18 format=3 uid="uid://da5qhyxbn7ij0"] [ext_resource type="Script" path="res://assets/scenes/victory.gd" id="1_xdx2i"] [ext_resource type="Texture2D" uid="uid://cpefd3ejowpm1" path="res://assets/textures/game_over/failure_2.png" id="2_3td6g"] [ext_resource type="Texture2D" uid="uid://boluxlomkwh4g" path="res://assets/textures/success/success_10.png" id="3_npwom"] [ext_resource type="Texture2D" uid="uid://bkos3wlwe2ljg" path="res://assets/textures/success/success_9.png" id="4_spnva"] [ext_resource type="Texture2D" uid="uid://ce1xgup6kidgi" path="res://assets/textures/success/success_8.png" id="5_uwqyk"] [ext_resource type="Texture2D" uid="uid://dv2xp2p6rr31v" path="res://assets/textures/success/success_7.png" id="6_mvx43"] [ext_resource type="Texture2D" uid="uid://bpmn5m2xlsra2" path="res://assets/textures/success/success_6.png" id="7_2u4aw"] [ext_resource type="Texture2D" uid="uid://cuin5sdi000tk" path="res://assets/textures/success/success_5.png" id="8_ptg32"] [ext_resource type="Texture2D" uid="uid://fxrvurwm10nu" path="res://assets/textures/success/success_4.png" id="9_5be4b"] [ext_resource type="Texture2D" uid="uid://ccexxcp3ekaw0" path="res://assets/textures/success/success_3.png" id="10_cr7ah"] [ext_resource type="Texture2D" uid="uid://d4lskgsgq0ug0" path="res://assets/textures/success/success_2.png" id="11_qdgok"] [ext_resource type="Texture2D" uid="uid://ba2ko85pm1oge" path="res://assets/textures/success/success_1.png" id="12_wbybd"] [ext_resource type="AudioStream" uid="uid://b74te21vx8th" path="res://assets/audio/Success_V2.wav" id="13_kn5eg"] [sub_resource type="Animation" id="Animation_bfgqb"] length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Background:texture") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [ExtResource("2_3td6g")] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("VBoxContainer/Loot1Button:visible") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [true] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("VBoxContainer/Loot3Button:visible") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("VBoxContainer/Loot2Button:visible") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } [sub_resource type="Animation" id="Animation_yytoc"] resource_name = "close" length = 0.45 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Background:texture") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [ExtResource("3_npwom"), ExtResource("4_spnva"), ExtResource("5_uwqyk"), ExtResource("6_mvx43"), ExtResource("7_2u4aw"), ExtResource("8_ptg32"), ExtResource("9_5be4b"), ExtResource("10_cr7ah"), ExtResource("11_qdgok"), ExtResource("12_wbybd")] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("VBoxContainer/Loot1Button:visible") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("VBoxContainer/Loot2Button:visible") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("VBoxContainer/Loot3Button:visible") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } [sub_resource type="Animation" id="Animation_a40w7"] resource_name = "open" length = 0.45 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Background:texture") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [ExtResource("12_wbybd"), ExtResource("11_qdgok"), ExtResource("10_cr7ah"), ExtResource("9_5be4b"), ExtResource("8_ptg32"), ExtResource("7_2u4aw"), ExtResource("6_mvx43"), ExtResource("5_uwqyk"), ExtResource("4_spnva"), ExtResource("3_npwom")] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("VBoxContainer/Loot1Button:visible") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.45), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [false, true] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("VBoxContainer/Loot2Button:visible") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0, 0.45), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [false, true] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("VBoxContainer/Loot3Button:visible") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0, 0.45), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [false, true] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_fmmxf"] _data = { "RESET": SubResource("Animation_bfgqb"), "close": SubResource("Animation_yytoc"), "open": SubResource("Animation_a40w7") } [node name="Victory" type="Control"] process_mode = 3 layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_xdx2i") [node name="Background" type="TextureRect" parent="."] 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 = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("2_3td6g") [node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -180.0 offset_top = -64.0 offset_right = 180.0 offset_bottom = 176.0 grow_horizontal = 2 grow_vertical = 2 [node name="Loot1Button" type="Button" parent="VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 42 text = "LOOT 1" [node name="Loot2Button" type="Button" parent="VBoxContainer"] visible = false layout_mode = 2 theme_override_font_sizes/font_size = 42 text = "LOOT 2" [node name="Loot3Button" type="Button" parent="VBoxContainer"] visible = false layout_mode = 2 theme_override_font_sizes/font_size = 42 text = "LOOT 3" [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_fmmxf") } [node name="VoiceOver" type="AudioStreamPlayer" parent="."] stream = ExtResource("13_kn5eg") autoplay = true [connection signal="pressed" from="VBoxContainer/Loot1Button" to="." method="_on_loot_1_button_pressed"] [connection signal="pressed" from="VBoxContainer/Loot2Button" to="." method="_on_loot_2_button_pressed"] [connection signal="pressed" from="VBoxContainer/Loot3Button" to="." method="_on_loot_3_button_pressed"]