generated from krampus/template-godot4
191 lines
6.4 KiB
Plaintext
191 lines
6.4 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://5soelwtn4v34"]
|
|
|
|
[ext_resource type="Script" path="res://src/ui/menus/title_screen/practice_setup/practice_setup.gd" id="1_jgggo"]
|
|
[ext_resource type="Resource" uid="uid://c1pnqsddvey3m" path="res://src/equipment/clubs/drivers/debug_driver.tres" id="2_47376"]
|
|
[ext_resource type="Resource" uid="uid://ck17u5yn6k0bi" path="res://src/equipment/clubs/irons/debug_iron.tres" id="3_veaoo"]
|
|
[ext_resource type="Resource" uid="uid://dagld0q5krapu" path="res://src/equipment/clubs/putters/debug_putter.tres" id="4_mixgr"]
|
|
[ext_resource type="Script" path="res://src/player/world_player.gd" id="5_btf7p"]
|
|
[ext_resource type="Resource" uid="uid://dthtc1no2c4wy" path="res://src/equipment/clubs/wedges/debug_wedge.tres" id="6_8yfm7"]
|
|
|
|
[sub_resource type="Resource" id="Resource_4ls7o"]
|
|
script = ExtResource("5_btf7p")
|
|
life = 100.0
|
|
name = "Practice Gfolfer"
|
|
color = Color(0.955, 0.7, 1, 1)
|
|
driver = ExtResource("2_47376")
|
|
iron = ExtResource("3_veaoo")
|
|
wedge = ExtResource("6_8yfm7")
|
|
putter = ExtResource("4_mixgr")
|
|
_balls = {
|
|
1: -1,
|
|
2: -1,
|
|
3: -1,
|
|
4: -1,
|
|
5: -1
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_x4wqc"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:disabled")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:modulate")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_560ro"]
|
|
resource_name = "fade_out"
|
|
length = 0.6
|
|
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.0666667, 0.133333, 0.2, 0.266667, 0.333333, 0.4, 0.466667, 0.533333, 0.6),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 0.5), Color(1, 1, 1, 0), Color(1, 1, 1, 0.25), Color(1, 1, 1, 0), Color(1, 1, 1, 0.125), Color(1, 1, 1, 0)]
|
|
}
|
|
tracks/1/type = "method"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("../../../..")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.6),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"play_chime"
|
|
}, {
|
|
"args": [],
|
|
"method": &"start"
|
|
}]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".:disabled")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s1eyj"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_x4wqc"),
|
|
"fade_out": SubResource("Animation_560ro")
|
|
}
|
|
|
|
[node name="PracticeSetup" type="PanelContainer"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_jgggo")
|
|
practice_player = SubResource("Resource_4ls7o")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 32
|
|
theme_override_constants/margin_top = 32
|
|
theme_override_constants/margin_right = 32
|
|
theme_override_constants/margin_bottom = 32
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_type_variation = &"HeaderXLarge"
|
|
text = "PRACTICE_HEADING"
|
|
|
|
[node name="MapSelectContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/MapSelectContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 16
|
|
theme_override_constants/margin_top = 16
|
|
theme_override_constants/margin_right = 16
|
|
theme_override_constants/margin_bottom = 16
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/MapSelectContainer/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/MapSelectContainer/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/MapSelectContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
theme_type_variation = &"HeaderLarge"
|
|
text = "PRACTICE_MAP"
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer/MapSelectContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="MapSelect" type="ItemList" parent="MarginContainer/VBoxContainer/MapSelectContainer/MarginContainer/VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 130)
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/v_separation = 32
|
|
theme_override_constants/h_separation = 32
|
|
max_columns = 8
|
|
icon_mode = 0
|
|
fixed_icon_size = Vector2i(64, 64)
|
|
|
|
[node name="Buttons" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 16
|
|
alignment = 2
|
|
|
|
[node name="Cancel" type="Button" parent="MarginContainer/VBoxContainer/Buttons"]
|
|
layout_mode = 2
|
|
theme_type_variation = &"CancelButton"
|
|
text = "UI_CANCEL"
|
|
|
|
[node name="Start" type="Button" parent="MarginContainer/VBoxContainer/Buttons"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_type_variation = &"AlertButton"
|
|
text = "UI_START"
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="MarginContainer/VBoxContainer/Buttons/Start"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_s1eyj")
|
|
}
|
|
|
|
[connection signal="item_selected" from="MarginContainer/VBoxContainer/MapSelectContainer/MarginContainer/VBoxContainer/MapSelect" to="." method="check_start_conditions" unbinds=1]
|
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/Buttons/Cancel" to="." method="cancel"]
|
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/Buttons/Start" to="MarginContainer/VBoxContainer/Buttons/Start/AnimationPlayer" method="play" binds= ["fade_out"]]
|