ChooseYourSeeds menu
This commit is contained in:
parent
91d85199a7
commit
c9dd4cf175
23 changed files with 471 additions and 95 deletions
158
scenes/gui/choose_your_seeds.tscn
Normal file
158
scenes/gui/choose_your_seeds.tscn
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://dpxxjfd5lv5sv"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://e8n88g31w7x7" path="res://resources/themes/ChooseYourSeeds.tres" id="1_bfo8i"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="2_so2bw"]
|
||||
[ext_resource type="Texture2D" uid="uid://dycdvvgmgmfu6" path="res://assets/sprites/gui/ChooseYourSeeds/FrameField.tres" id="3_rn5vx"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/choose_your_seeds/GridLoader.cs" id="4_i7sou"]
|
||||
[ext_resource type="PackedScene" uid="uid://10b1egek6upx" path="res://scenes/gui/level_run_button.tscn" id="5_n80ic"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/choose_your_seeds/LevelRunButton.cs" id="7_k6b6g"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0rps3"]
|
||||
resource_name = "Hide"
|
||||
length = 0.75
|
||||
step = 0.1
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..:position:y")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0),
|
||||
"points": PackedFloat32Array(64, -0.25, 0, 0.5, 7.5, 402, -0.55, -95.5, 0.25, 0),
|
||||
"times": PackedFloat32Array(0, 0.75)
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_omiwq"]
|
||||
resource_name = "Show"
|
||||
length = 1.5
|
||||
step = 0.25
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..:position:y")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0, 0),
|
||||
"points": PackedFloat32Array(402, -0.25, 0, 1, -336.5, 64, -1, 338.5, 0, 66.5, 64, -0.0571204, 1, 0.19288, 1.5),
|
||||
"times": PackedFloat32Array(0, 1, 1.5)
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8he0w"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..:position:y")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(402, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tguwa"]
|
||||
_data = {
|
||||
"Hide": SubResource("Animation_0rps3"),
|
||||
"RESET": SubResource("Animation_8he0w"),
|
||||
"Show": SubResource("Animation_omiwq")
|
||||
}
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_rmoaa"]
|
||||
viewport_path = NodePath("Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/SubViewport")
|
||||
|
||||
[node name="ChooseYourSeeds" 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
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("1_bfo8i")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
root_node = NodePath("../Panel/LevelRunButton")
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_tguwa")
|
||||
}
|
||||
autoplay = "Show"
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 2.005
|
||||
anchor_right = 0.6
|
||||
anchor_bottom = 2.845
|
||||
offset_top = -400.0
|
||||
offset_bottom = -400.0
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Panel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 8
|
||||
theme_override_constants/margin_top = 6
|
||||
theme_override_constants/margin_right = 8
|
||||
theme_override_constants/margin_bottom = 6
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_so2bw")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame"]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(65, 65)
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/SubViewport"]
|
||||
texture = ExtResource("3_rn5vx")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/SubViewport"]
|
||||
|
||||
[node name="Render" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame"]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("ViewportTexture_rmoaa")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
columns = 7
|
||||
script = ExtResource("4_i7sou")
|
||||
|
||||
[node name="LevelRunButton" parent="Panel" node_paths=PackedStringArray("_player") instance=ExtResource("5_n80ic")]
|
||||
layout_mode = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.181
|
||||
anchor_bottom = 0.131
|
||||
offset_right = -16.16
|
||||
offset_bottom = -16.016
|
||||
script = ExtResource("7_k6b6g")
|
||||
_player = NodePath("../../AnimationPlayer")
|
||||
14
scenes/gui/level_run_button.tscn
Normal file
14
scenes/gui/level_run_button.tscn
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://10b1egek6upx"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://resources/themes/GameStyle.tres" id="1_05u5f"]
|
||||
[ext_resource type="Texture2D" uid="uid://rpnw5lxm3ksb" path="res://assets/sprites/gui/ChooseYourSeeds/LevelRun.tres" id="1_qftep"]
|
||||
|
||||
[node name="LevelRunButton" type="Button"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.108333
|
||||
anchor_bottom = 0.11
|
||||
offset_right = -57.0
|
||||
offset_bottom = -36.0
|
||||
theme = ExtResource("1_05u5f")
|
||||
icon = ExtResource("1_qftep")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
|
@ -1,35 +1,32 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://c8qru1yhnbbkl"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://e7vutg71l6f2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="2_5mpv8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxlr34yh0bqch" path="res://assets/sprites/gui/DisabledEmptyCard.png" id="2_odd6g"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/PlantSlot.cs" id="3_eer7n"]
|
||||
[ext_resource type="Shader" path="res://assets/shaders/gui_masking.gdshader" id="4_bryew"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="5_2k0xq"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1afy0ga6h1ic" path="res://assets/sprites/white_box.png" id="5_7xerl"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/VeilResizer.cs" id="5_d6igb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="1_77bw1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxlr34yh0bqch" path="res://assets/sprites/gui/DisabledEmptyCard.png" id="2_2gojx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="3_q0tvq"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/seedpackets/Seedpacket.cs" id="4_c6epd"]
|
||||
[ext_resource type="Shader" path="res://assets/shaders/gui_masking.gdshader" id="5_s5861"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1afy0ga6h1ic" path="res://assets/sprites/white_box.png" id="6_lp42h"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/VeilResizer.cs" id="7_tv07f"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_js4li"]
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_qxf0q"]
|
||||
shader = ExtResource("4_bryew")
|
||||
shader_parameter/mask = ExtResource("5_2k0xq")
|
||||
shader = ExtResource("5_s5861")
|
||||
shader_parameter/mask = ExtResource("1_77bw1")
|
||||
|
||||
[node name="PlantSlot" type="TextureButton" node_paths=PackedStringArray("_cost", "_icon", "_timer")]
|
||||
[node name="Seedpacket" type="TextureButton"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.137
|
||||
anchor_bottom = 0.28
|
||||
offset_right = -0.200005
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource("5_2k0xq")
|
||||
texture_disabled = ExtResource("2_odd6g")
|
||||
texture_focused = ExtResource("2_5mpv8")
|
||||
texture_normal = ExtResource("1_77bw1")
|
||||
texture_disabled = ExtResource("2_2gojx")
|
||||
texture_focused = ExtResource("3_q0tvq")
|
||||
stretch_mode = 0
|
||||
script = ExtResource("3_eer7n")
|
||||
_cost = NodePath("Cost")
|
||||
_icon = NodePath("PlantPreviewContainer/Preview")
|
||||
_timer = NodePath("RechargeTimer")
|
||||
script = ExtResource("4_c6epd")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Cost" type="Label" parent="."]
|
||||
|
|
@ -92,14 +89,12 @@ max_value = 1.0
|
|||
step = 0.001
|
||||
fill_mode = 3
|
||||
nine_patch_stretch = true
|
||||
texture_progress = ExtResource("5_7xerl")
|
||||
texture_progress = ExtResource("6_lp42h")
|
||||
tint_progress = Color(0, 0, 0, 0.843137)
|
||||
script = ExtResource("5_d6igb")
|
||||
script = ExtResource("7_tv07f")
|
||||
_referenceTimer = NodePath("../RechargeTimer")
|
||||
|
||||
[node name="RechargeTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="focus_exited" from="." to="." method="OnFocusExited"]
|
||||
[connection signal="pressed" from="." to="." method="OnPressed"]
|
||||
[connection signal="timeout" from="RechargeTimer" to="." method="Timeout"]
|
||||
[connection signal="focus_exited" from="." to="." method="OnUnfocused"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue