ArkSol/scenes/menu.tscn

558 lines
16 KiB
Plaintext

[gd_scene load_steps=31 format=3 uid="uid://sxae8i12io4y"]
[ext_resource type="Script" uid="uid://ol6efor868gk" path="res://scripts/menu.gd" id="1_vjb58"]
[ext_resource type="Texture2D" uid="uid://c2bmun1bugix" path="res://assets/background/menubg2.jpg" id="2_70i5f"]
[ext_resource type="AudioStream" uid="uid://dc3bsqg4ltuet" path="res://assets/sounds/music/menu_music.mp3" id="3_con2f"]
[ext_resource type="PackedScene" uid="uid://gvx2ukt1why" path="res://scenes/option_popup.tscn" id="3_mhnvy"]
[ext_resource type="Texture2D" uid="uid://da6hb1mill5yn" path="res://assets/icons/buttons/button_blue.png" id="3_v86rl"]
[ext_resource type="Texture2D" uid="uid://t2pwtja7yfa4" path="res://assets/icons/buttons/button_red.png" id="4_13sgg"]
[ext_resource type="Texture2D" uid="uid://dssoa5bxs2h4r" path="res://assets/icons/logo_game.png" id="5_4ytvr"]
[ext_resource type="FontFile" uid="uid://chk8jrn2ighpx" path="res://assets/fonts/main_font.ttf" id="6_i6lef"]
[ext_resource type="Texture2D" uid="uid://cm376wgq8l0n4" path="res://assets/stars/small_star.png" id="7_i6lef"]
[ext_resource type="Texture2D" uid="uid://bnltmrot4rttt" path="res://assets/planets/moon.png" id="8_70i5f"]
[ext_resource type="Texture2D" uid="uid://bgoyvfis21f64" path="res://assets/ships/ship.png" id="9_mj5lg"]
[ext_resource type="Texture2D" uid="uid://dey802py7bdmi" path="res://assets/ships/ship2.png" id="10_ufwb2"]
[sub_resource type="Animation" id="Animation_mj5lg"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0.5058824)]
}
[sub_resource type="Animation" id="Animation_70i5f"]
resource_name = "blink"
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.46, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0.5058824), Color(1, 1, 1, 1), Color(1, 1, 1, 0.5058824)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ufwb2"]
_data = {
&"RESET": SubResource("Animation_mj5lg"),
&"blink": SubResource("Animation_70i5f")
}
[sub_resource type="Animation" id="Animation_i6lef"]
length = 0.001
[sub_resource type="Animation" id="Animation_13sgg"]
resource_name = "anim_logo"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_70i5f"]
_data = {
&"RESET": SubResource("Animation_i6lef"),
&"anim_logo": SubResource("Animation_13sgg")
}
[sub_resource type="Animation" id="Animation_6cdou"]
length = 360.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1604, 727)]
}
[sub_resource type="Animation" id="Animation_ufwb2"]
resource_name = "move_moon"
length = 360.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 360),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1604, 727), Vector2(2708, 727)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_i42df"]
_data = {
&"RESET": SubResource("Animation_6cdou"),
&"move_moon": SubResource("Animation_ufwb2")
}
[sub_resource type="Animation" id="Animation_7jp70"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../moon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1609, 712)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(159, 559)]
}
[sub_resource type="Animation" id="Animation_i42df"]
resource_name = "ship_move"
length = 400.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 400),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(334, 276), Vector2(627.99994, 274)]
}
[sub_resource type="Animation" id="Animation_3dmrc"]
resource_name = "moon_move"
length = 360.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../moon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 360),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1609, 712), Vector2(2700, 712)]
}
[sub_resource type="Animation" id="Animation_mxgkd"]
resource_name = "ship1"
length = 200.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 200),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(159, 559), Vector2(1580, 544)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mxgkd"]
_data = {
&"RESET": SubResource("Animation_7jp70"),
&"moon_move": SubResource("Animation_3dmrc"),
&"ship1": SubResource("Animation_mxgkd"),
&"ship_move": SubResource("Animation_i42df")
}
[sub_resource type="Animation" id="Animation_g6gyw"]
length = 200.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(267, 282)]
}
[sub_resource type="Animation" id="Animation_81l6r"]
resource_name = "ship2"
length = 400.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 400),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(284.99997, 485.00003), Vector2(1700, 485)]
}
[sub_resource type="Animation" id="Animation_rsfmq"]
resource_name = "ship3"
length = 200.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 200),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(267, 282), Vector2(2287, 282)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3dmrc"]
_data = {
&"RESET": SubResource("Animation_g6gyw"),
&"ship2": SubResource("Animation_81l6r"),
&"ship3": SubResource("Animation_rsfmq")
}
[node name="MainMenu" type="Control"]
process_mode = 3
top_level = true
z_index = 100
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_vjb58")
[node name="TextureRect" type="TextureRect" parent="."]
z_index = 10
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_bottom = -1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_70i5f")
expand_mode = 1
[node name="star" type="Sprite2D" parent="TextureRect"]
modulate = Color(1, 1, 1, 0.5058824)
position = Vector2(453.20316, 332.95313)
scale = Vector2(0.5312264, 0.69791925)
texture = ExtResource("7_i6lef")
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/star"]
libraries = {
&"": SubResource("AnimationLibrary_ufwb2")
}
autoplay = "blink"
[node name="exit" type="TextureButton" parent="TextureRect"]
layout_mode = 0
offset_left = 39.0
offset_top = 1329.0
offset_right = 2039.0
offset_bottom = 1629.0
scale = Vector2(0.15, 0.15)
texture_normal = ExtResource("3_v86rl")
texture_hover = ExtResource("4_13sgg")
stretch_mode = 0
[node name="Label" type="Label" parent="TextureRect/exit"]
layout_mode = 0
offset_left = 6.6666603
offset_top = 6.6665955
offset_right = 1986.6665
offset_bottom = 293.3331
theme_override_colors/font_color = Color(0.073123895, 0.0037705752, 0.025873708, 1)
theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0)
theme_override_colors/font_outline_color = Color(0.02877314, 0.7656168, 0.72319645, 0.53333336)
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("6_i6lef")
theme_override_font_sizes/font_size = 200
text = "menu_exit"
horizontal_alignment = 1
vertical_alignment = 1
[node name="option" type="TextureButton" parent="TextureRect"]
layout_mode = 0
offset_left = 39.0
offset_top = 1272.0
offset_right = 2039.0
offset_bottom = 1572.0
scale = Vector2(0.15, 0.15)
texture_normal = ExtResource("3_v86rl")
texture_hover = ExtResource("4_13sgg")
stretch_mode = 0
[node name="Label" type="Label" parent="TextureRect/option"]
layout_mode = 0
offset_left = 6.6666718
offset_top = 6.6664734
offset_right = 1999.9999
offset_bottom = 293.33298
theme_override_colors/font_color = Color(0.073123895, 0.0037705752, 0.025873708, 1)
theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0)
theme_override_colors/font_outline_color = Color(0.02877314, 0.7656168, 0.72319645, 0.53333336)
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("6_i6lef")
theme_override_font_sizes/font_size = 200
text = "menu_options"
horizontal_alignment = 1
vertical_alignment = 1
[node name="start" type="TextureButton" parent="TextureRect"]
layout_mode = 0
offset_left = 39.0
offset_top = 1153.0
offset_right = 2039.0
offset_bottom = 1453.0
scale = Vector2(0.15, 0.15)
texture_normal = ExtResource("3_v86rl")
texture_hover = ExtResource("4_13sgg")
stretch_mode = 0
[node name="Label" type="Label" parent="TextureRect/start"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -993.33325
offset_top = -136.66663
offset_right = 993.33325
offset_bottom = 143.33337
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0.073123895, 0.0037705752, 0.025873708, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0)
theme_override_colors/font_outline_color = Color(0.02877314, 0.7656168, 0.72319645, 0.53333336)
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("6_i6lef")
theme_override_font_sizes/font_size = 200
text = "menu_start"
horizontal_alignment = 1
vertical_alignment = 1
[node name="back" type="TextureButton" parent="TextureRect"]
layout_mode = 0
offset_left = 39.0
offset_top = 975.00006
offset_right = 2039.0
offset_bottom = 1275.0
scale = Vector2(0.15, 0.15)
texture_normal = ExtResource("3_v86rl")
texture_hover = ExtResource("4_13sgg")
stretch_mode = 0
[node name="Label" type="Label" parent="TextureRect/back"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -1000.0
offset_top = -150.00012
offset_right = 986.6666
offset_bottom = 143.33337
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0.073123895, 0.0037705752, 0.025873708, 1)
theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0)
theme_override_colors/font_outline_color = Color(0.02877314, 0.7656168, 0.72319645, 0.53333336)
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("6_i6lef")
theme_override_font_sizes/font_size = 200
text = "menu_back"
horizontal_alignment = 1
vertical_alignment = 1
[node name="save" type="TextureButton" parent="TextureRect"]
layout_mode = 0
offset_left = 39.0
offset_top = 1035.0
offset_right = 2039.0
offset_bottom = 1335.0
scale = Vector2(0.15, 0.15)
texture_normal = ExtResource("3_v86rl")
texture_hover = ExtResource("4_13sgg")
stretch_mode = 0
[node name="Label" type="Label" parent="TextureRect/save"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -993.3333
offset_top = -150.00012
offset_right = 993.33325
offset_bottom = 143.33337
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0.073123895, 0.0037705752, 0.025873708, 1)
theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0)
theme_override_colors/font_outline_color = Color(0.02877314, 0.7656168, 0.72319645, 0.53333336)
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("6_i6lef")
theme_override_font_sizes/font_size = 200
text = "menu_save"
horizontal_alignment = 1
vertical_alignment = 1
[node name="load" type="TextureButton" parent="TextureRect"]
layout_mode = 0
offset_left = 39.0
offset_top = 1210.0
offset_right = 2039.0
offset_bottom = 1510.0
scale = Vector2(0.15, 0.15)
texture_normal = ExtResource("3_v86rl")
texture_hover = ExtResource("4_13sgg")
stretch_mode = 0
[node name="Label" type="Label" parent="TextureRect/load"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -993.3333
offset_top = -143.33328
offset_right = 993.33325
offset_bottom = 156.66672
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0.073123895, 0.0037705752, 0.025873708, 1)
theme_override_colors/font_shadow_color = Color(0.7570387, 0.75415635, 0.7885611, 0)
theme_override_colors/font_outline_color = Color(0.02877314, 0.7656168, 0.72319645, 0.53333336)
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("6_i6lef")
theme_override_font_sizes/font_size = 200
text = "menu_load"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Sprite2D" type="Sprite2D" parent="TextureRect"]
modulate = Color(1, 1, 1, 0)
position = Vector2(1206.1, 1019.35)
scale = Vector2(0.66823107, 0.5971381)
texture = ExtResource("5_4ytvr")
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/Sprite2D"]
libraries = {
&"": SubResource("AnimationLibrary_70i5f")
}
autoplay = "anim_logo"
[node name="moon" type="Sprite2D" parent="TextureRect"]
position = Vector2(1609, 712)
scale = Vector2(0.31873378, 0.30559945)
texture = ExtResource("8_70i5f")
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/moon"]
libraries = {
&"": SubResource("AnimationLibrary_i42df")
}
autoplay = "move_moon"
[node name="ship" type="Sprite2D" parent="TextureRect"]
position = Vector2(159, 559)
scale = Vector2(0.30121145, 0.32456148)
texture = ExtResource("9_mj5lg")
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/ship"]
libraries = {
&"": SubResource("AnimationLibrary_mxgkd")
}
autoplay = "ship1"
[node name="Sprite2D2" type="Sprite2D" parent="TextureRect"]
position = Vector2(267, 282)
scale = Vector2(0.16519824, 0.20175439)
texture = ExtResource("9_mj5lg")
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/Sprite2D2"]
libraries = {
&"": SubResource("AnimationLibrary_3dmrc")
}
autoplay = "ship2"
[node name="Sprite2D3" type="Sprite2D" parent="TextureRect"]
position = Vector2(267, 282)
scale = Vector2(0.70308614, 0.82761735)
texture = ExtResource("10_ufwb2")
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextureRect/Sprite2D3"]
libraries = {
&"": SubResource("AnimationLibrary_3dmrc")
}
autoplay = "ship3"
[node name="VBoxContainer" type="GridContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 345.0
offset_top = -488.0
offset_right = 1365.0
offset_bottom = 862.0
grow_vertical = 0
scale = Vector2(0.3, 0.3)
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_con2f")
autoplay = true
[node name="OptionPopup" parent="." instance=ExtResource("3_mhnvy")]
visible = false