brand new start
This commit is contained in:
parent
a41ca5669b
commit
f15f38bfc4
464 changed files with 5 additions and 20007 deletions
|
|
@ -1,24 +0,0 @@
|
|||
extends TabContainer
|
||||
|
||||
var stolen_focus : Control
|
||||
|
||||
func _ready() -> void:
|
||||
get_viewport().gui_focus_changed.connect(on_focus_changed)
|
||||
visibility_changed.connect(on_visibility_changed)
|
||||
func _exit_tree() -> void:
|
||||
get_viewport().gui_focus_changed.disconnect(on_focus_changed)
|
||||
|
||||
func _on_quit_button_pressed() -> void:
|
||||
visible = false
|
||||
$ChannelPlayer.call("Play")
|
||||
|
||||
func on_visibility_changed():
|
||||
if visible:
|
||||
await get_tree().process_frame
|
||||
$plants/SeedpacketsContainer/GridContainer.get_child(0).grab_focus()
|
||||
else:
|
||||
stolen_focus.grab_focus()
|
||||
|
||||
func on_focus_changed(to : Control):
|
||||
if visible: return
|
||||
stolen_focus = to
|
||||
|
|
@ -1 +0,0 @@
|
|||
uid://bs1qywtqijyd2
|
||||
|
|
@ -1,217 +0,0 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://bvpt0q4j6nx18"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="1_1hnxi"]
|
||||
[ext_resource type="Script" uid="uid://bs1qywtqijyd2" path="res://scenes/gui/almanach.gd" id="1_oy57w"]
|
||||
[ext_resource type="Script" uid="uid://0mvmfvwe1bc7" path="res://scripts/gui/almanach/AlmanachGrid.cs" id="1_ru62c"]
|
||||
[ext_resource type="Script" uid="uid://covbig00p22di" path="res://scripts/gui/choose_your_seeds/Previewport.cs" id="2_ru62c"]
|
||||
[ext_resource type="Texture2D" uid="uid://dycdvvgmgmfu6" path="res://assets/sprites/gui/ChooseYourSeeds/FrameField.tres" id="3_oy57w"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="6_7vo1l"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="6_vvhxq"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="7_vvhxq"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ru62c"]
|
||||
viewport_path = NodePath("plants/Infobox/FrameAndTitle/VboxContainer/Frame/Previewport")
|
||||
|
||||
[sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_vvhxq"]
|
||||
button_index = 1
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_lmmwe"]
|
||||
events = [SubResource("InputEventJoypadButton_vvhxq")]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_7yl8g"]
|
||||
viewport_path = NodePath("zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport")
|
||||
|
||||
[node name="Almanach" type="TabContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
tab_alignment = 1
|
||||
current_tab = 0
|
||||
script = ExtResource("1_oy57w")
|
||||
|
||||
[node name="plants" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
|
||||
[node name="SeedpacketsContainer" type="ScrollContainer" parent="plants"]
|
||||
layout_mode = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="plants/SeedpacketsContainer"]
|
||||
layout_mode = 2
|
||||
columns = 8
|
||||
script = ExtResource("1_ru62c")
|
||||
|
||||
[node name="Infobox" type="VBoxContainer" parent="plants"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="FrameAndTitle" type="HBoxContainer" parent="plants/Infobox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VboxContainer" type="VBoxContainer" parent="plants/Infobox/FrameAndTitle"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="plants/Infobox/FrameAndTitle/VboxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_1hnxi")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="plants/Infobox/FrameAndTitle/VboxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(65, 65)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../../Label")
|
||||
description = NodePath("../../../../Description/ScrollContainer/RichTextLabel")
|
||||
_frameField = NodePath("FrameField")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="plants/Infobox/FrameAndTitle/VboxContainer/Frame/Previewport"]
|
||||
texture = ExtResource("3_oy57w")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="plants/Infobox/FrameAndTitle/VboxContainer/Frame/Previewport"]
|
||||
|
||||
[node name="Render" type="TextureRect" parent="plants/Infobox/FrameAndTitle/VboxContainer/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_ru62c")
|
||||
|
||||
[node name="QuitButton" type="Button" parent="plants/Infobox/FrameAndTitle/VboxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
shortcut = SubResource("Shortcut_lmmwe")
|
||||
text = "exit"
|
||||
|
||||
[node name="Label" type="Label" parent="plants/Infobox/FrameAndTitle"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Description" type="PanelContainer" parent="plants/Infobox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"description_panel_container"
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="plants/Infobox/Description"]
|
||||
layout_mode = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="plants/Infobox/Description/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_selected_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="zombies" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 1
|
||||
|
||||
[node name="SeedpacketsContainer" type="ScrollContainer" parent="zombies"]
|
||||
layout_mode = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="zombies/SeedpacketsContainer"]
|
||||
layout_mode = 2
|
||||
columns = 8
|
||||
script = ExtResource("1_ru62c")
|
||||
_zombies = true
|
||||
|
||||
[node name="Infobox" type="VBoxContainer" parent="zombies"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="FrameAndTitle" type="HBoxContainer" parent="zombies/Infobox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="zombies/Infobox/FrameAndTitle"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="zombies/Infobox/FrameAndTitle/VBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_1hnxi")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../../Label")
|
||||
description = NodePath("../../../../Description/ScrollContainer/RichTextLabel")
|
||||
_frameField = NodePath("CanvasLayer/Field")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport"]
|
||||
layer = -10
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport/CanvasLayer"]
|
||||
position = Vector2(0, 30)
|
||||
texture = ExtResource("6_vvhxq")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport"]
|
||||
position = Vector2(0, -45)
|
||||
|
||||
[node name="Render" type="TextureRect" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/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_7yl8g")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="QuitButton" type="Button" parent="zombies/Infobox/FrameAndTitle/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
shortcut = SubResource("Shortcut_lmmwe")
|
||||
text = "exit"
|
||||
|
||||
[node name="Label" type="Label" parent="zombies/Infobox/FrameAndTitle"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Description" type="PanelContainer" parent="zombies/Infobox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"description_panel_container"
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="zombies/Infobox/Description"]
|
||||
layout_mode = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="zombies/Infobox/Description/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_selected_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="."]
|
||||
script = ExtResource("6_7vo1l")
|
||||
audioStream = ExtResource("7_vvhxq")
|
||||
channel = "button"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[connection signal="pressed" from="plants/Infobox/FrameAndTitle/VboxContainer/QuitButton" to="." method="_on_quit_button_pressed"]
|
||||
[connection signal="pressed" from="zombies/Infobox/FrameAndTitle/VBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"]
|
||||
|
|
@ -1,216 +0,0 @@
|
|||
[gd_scene load_steps=26 format=3 uid="uid://dpxxjfd5lv5sv"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://e8n88g31w7x7" path="res://assets/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="Script" uid="uid://covbig00p22di" path="res://scripts/gui/choose_your_seeds/Previewport.cs" id="3_fmc0y"]
|
||||
[ext_resource type="Texture2D" uid="uid://dycdvvgmgmfu6" path="res://assets/sprites/gui/ChooseYourSeeds/FrameField.tres" id="3_rn5vx"]
|
||||
[ext_resource type="Script" uid="uid://eq3ecja30mlj" path="res://scripts/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" uid="uid://d26waisd3v488" path="res://scripts/gui/choose_your_seeds/LevelRunButton.cs" id="7_k6b6g"]
|
||||
[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="8_f8xw6"]
|
||||
[ext_resource type="Texture2D" uid="uid://drydueofrb448" path="res://assets/sprites/gui/almanach/book.tres" id="8_hmdmm"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="8_v7xff"]
|
||||
[ext_resource type="Script" uid="uid://diwjgekhvn017" path="res://scripts/gui/choose_your_seeds/CYSResetButton.cs" id="9_kwnqh"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="9_v7xff"]
|
||||
[ext_resource type="Script" uid="uid://c1x4n4nqyq72f" path="res://scripts/audio/ChannelSettings.cs" id="10_nlh6x"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvpt0q4j6nx18" path="res://scenes/gui/almanach.tscn" id="11_nlh6x"]
|
||||
[ext_resource type="AudioStream" uid="uid://mu86q1r1dvgo" path="res://assets/audio/music/03. Choose Your Seeds.mp3" id="13_y65t1"]
|
||||
[ext_resource type="Script" uid="uid://b4ysi1iutmju3" path="res://scripts/audio/ChooseYourSeedsMusic.cs" id="14_rptyw"]
|
||||
[ext_resource type="Script" uid="uid://bksslrqq5vhm3" path="res://scripts/gui/choose_your_seeds/CYSFocusSetup.cs" id="15_rptyw"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_rmoaa"]
|
||||
viewport_path = NodePath("Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/Previewport")
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_fmc0y"]
|
||||
font_size = 24
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_f8xw6"]
|
||||
button_index = 2
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_kwnqh"]
|
||||
events = [SubResource("InputEventJoypadButton_f8xw6")]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kwnqh"]
|
||||
atlas = ExtResource("8_f8xw6")
|
||||
region = Rect2(626, 210, 31, 31)
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_hmdmm"]
|
||||
resource_name = "Almanach"
|
||||
script/source = "extends Button
|
||||
|
||||
|
||||
func _pressed() -> void:
|
||||
$\"../../../Independer/Almanach\".visible = true
|
||||
$\"../../../ChannelPlayer\".call(\"Play\")
|
||||
"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_l66rp"]
|
||||
script = ExtResource("10_nlh6x")
|
||||
restartTreshold = -1.0
|
||||
metadata/_custom_type_script = "uid://c1x4n4nqyq72f"
|
||||
|
||||
[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_lkvg0"]
|
||||
stream_count = 1
|
||||
stream_0 = ExtResource("13_y65t1")
|
||||
|
||||
[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="Panel" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 2.005
|
||||
anchor_right = 0.6
|
||||
anchor_bottom = 2.845
|
||||
offset_top = -738.0
|
||||
offset_bottom = -738.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="Previewport" type="SubViewport" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(65, 65)
|
||||
script = ExtResource("3_fmc0y")
|
||||
title = NodePath("../../PanelContainer/ScrollContainer/VBoxContainer/Title")
|
||||
description = NodePath("../../PanelContainer/ScrollContainer/VBoxContainer/Description")
|
||||
_frameField = NodePath("FrameField")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/Previewport"]
|
||||
texture = ExtResource("3_rn5vx")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/Previewport"]
|
||||
|
||||
[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/HBoxContainer/PanelContainer"]
|
||||
layout_mode = 2
|
||||
focus_mode = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Title" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
label_settings = SubResource("LabelSettings_fmc0y")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
fit_content = true
|
||||
|
||||
[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="ButtonContainer" type="VBoxContainer" parent="Panel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.18889
|
||||
anchor_bottom = 0.997024
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="LevelRunButton" parent="Panel/ButtonContainer" instance=ExtResource("5_n80ic")]
|
||||
layout_mode = 2
|
||||
focus_neighbor_left = NodePath("../../MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer")
|
||||
focus_neighbor_bottom = NodePath("../Button")
|
||||
script = ExtResource("7_k6b6g")
|
||||
|
||||
[node name="Button" type="Button" parent="Panel/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../LevelRunButton")
|
||||
focus_neighbor_bottom = NodePath("../AlmanachButton")
|
||||
shortcut = SubResource("Shortcut_kwnqh")
|
||||
icon = SubResource("AtlasTexture_kwnqh")
|
||||
icon_alignment = 1
|
||||
script = ExtResource("9_kwnqh")
|
||||
|
||||
[node name="AlmanachButton" type="Button" parent="Panel/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_left = NodePath("../../MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer")
|
||||
focus_neighbor_top = NodePath("../Button")
|
||||
icon = ExtResource("8_hmdmm")
|
||||
icon_alignment = 1
|
||||
script = SubResource("GDScript_hmdmm")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="."]
|
||||
script = ExtResource("8_v7xff")
|
||||
settings = SubResource("Resource_l66rp")
|
||||
audioStream = ExtResource("9_v7xff")
|
||||
channel = "button"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="Independer" type="Node" parent="."]
|
||||
|
||||
[node name="Almanach" parent="Independer" instance=ExtResource("11_nlh6x")]
|
||||
visible = false
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = SubResource("AudioStreamPlaylist_lkvg0")
|
||||
autoplay = true
|
||||
bus = &"MusicBus"
|
||||
script = ExtResource("14_rptyw")
|
||||
|
||||
[node name="FocusSetup" type="Node" parent="." node_paths=PackedStringArray("grid", "button", "textContainer")]
|
||||
script = ExtResource("15_rptyw")
|
||||
grid = NodePath("../Panel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer")
|
||||
button = NodePath("../Panel/ButtonContainer/LevelRunButton")
|
||||
textContainer = NodePath("../Panel/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/ScrollContainer")
|
||||
|
||||
[connection signal="pressed" from="Panel/ButtonContainer/LevelRunButton" to="ChannelPlayer" method="Play"]
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://djfsa0pxqeoq1"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c20dwjohaljdk" path="res://assets/sprites/atlases/cursor/default_arrow.png" id="1_0pqw0"]
|
||||
[ext_resource type="Script" uid="uid://c6ucy48qwaxuc" path="res://scripts/Cursor.cs" id="2_yv0fr"]
|
||||
|
||||
[node name="CursorCanvasLayer" type="CanvasLayer"]
|
||||
process_mode = 3
|
||||
layer = 11
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Cursor" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_0pqw0")
|
||||
script = ExtResource("2_yv0fr")
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cgm7td1hgs0rr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjsar1x67xk1t" path="res://assets/sprites/gui/FastForward1.tres" id="1_ta3h7"]
|
||||
[ext_resource type="Script" uid="uid://cwn3bd2k7mdq6" path="res://scripts/gui/FastForwardButton.cs" id="2_wle4k"]
|
||||
[ext_resource type="Texture2D" uid="uid://dfr5ofieigu5j" path="res://assets/sprites/gui/FastForward2.tres" id="3_fj838"]
|
||||
[ext_resource type="Texture2D" uid="uid://qgmsoocd4p1o" path="res://assets/sprites/gui/FastForward3.tres" id="4_2wmv1"]
|
||||
|
||||
[node name="FastForwardButton" type="Button"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.043
|
||||
anchor_bottom = 0.07
|
||||
offset_right = 0.199999
|
||||
size_flags_vertical = 4
|
||||
mouse_default_cursor_shape = 2
|
||||
icon = ExtResource("1_ta3h7")
|
||||
script = ExtResource("2_wle4k")
|
||||
firstSpeed = ExtResource("1_ta3h7")
|
||||
secondSpeed = ExtResource("3_fj838")
|
||||
thirdSpeed = ExtResource("4_2wmv1")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[connection signal="pressed" from="." to="." method="OnPressed"]
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://drobbh5x1v7mi"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://6didix2twcty" path="res://assets/sprites/wave-progress/Flag.tres" id="1_ebgak"]
|
||||
[ext_resource type="Script" uid="uid://06ns8r18dalm" path="res://scripts/gui/WaveFlag.cs" id="2_fj7o6"]
|
||||
|
||||
[node name="Flag" type="TextureRect"]
|
||||
show_behind_parent = true
|
||||
offset_left = -7.0
|
||||
offset_top = -22.0
|
||||
offset_right = 13.0
|
||||
texture = ExtResource("1_ebgak")
|
||||
stretch_mode = 5
|
||||
script = ExtResource("2_fj7o6")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://disdegexxmcro"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="1_hc23v"]
|
||||
[ext_resource type="Script" uid="uid://covbig00p22di" path="res://scripts/gui/choose_your_seeds/Previewport.cs" id="2_cf55k"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="3_7j5d4"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_7yl8g"]
|
||||
viewport_path = NodePath("zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport")
|
||||
|
||||
[node name="Frame" type="TextureRect"]
|
||||
clip_contents = true
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_hc23v")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="." node_paths=PackedStringArray("_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_cf55k")
|
||||
_frameField = NodePath("CanvasLayer/Field")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="Previewport"]
|
||||
layer = -10
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="Previewport/CanvasLayer"]
|
||||
position = Vector2(0, 30)
|
||||
texture = ExtResource("3_7j5d4")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Previewport"]
|
||||
position = Vector2(0, -45)
|
||||
|
||||
[node name="Render" type="TextureRect" parent="."]
|
||||
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_7yl8g")
|
||||
expand_mode = 1
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://10b1egek6upx"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://assets/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,14 +0,0 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://u5l3jd00s8vd"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dm0hjd67a6mva" path="res://assets/sprites/gui/Pause.tres" id="1_7k3tg"]
|
||||
[ext_resource type="Script" uid="uid://cmfhiun6yrlr6" path="res://scripts/gui/pause_menu/PauseButton.cs" id="2_01o3l"]
|
||||
|
||||
[node name="PauseButton" type="Button"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.043
|
||||
anchor_bottom = 0.07
|
||||
offset_right = 0.199999
|
||||
size_flags_vertical = 4
|
||||
mouse_default_cursor_shape = 2
|
||||
icon = ExtResource("1_7k3tg")
|
||||
script = ExtResource("2_01o3l")
|
||||
|
|
@ -1,137 +0,0 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://fm471x22n8kr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="1_loim0"]
|
||||
[ext_resource type="Script" uid="uid://gvwhpjoame6m" path="res://scripts/gui/pause_menu/PauseMenu.cs" id="2_4vp8g"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="3_4vp8g"]
|
||||
[ext_resource type="Script" uid="uid://ciccaxqo70s13" path="res://scripts/audio/AudioSlider.cs" id="3_e3p60"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="4_e3p60"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tifvb"]
|
||||
atlas = ExtResource("1_loim0")
|
||||
region = Rect2(0, 0, 177, 174)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_or0he"]
|
||||
font_size = 32
|
||||
outline_size = 2
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4k24j"]
|
||||
atlas = ExtResource("1_loim0")
|
||||
region = Rect2(0, 221, 127, 20)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_or0he"]
|
||||
atlas = ExtResource("1_loim0")
|
||||
region = Rect2(255, 221, 118, 20)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y3stn"]
|
||||
atlas = ExtResource("1_loim0")
|
||||
region = Rect2(194, 221, 61, 20)
|
||||
|
||||
[node name="PauseMenu" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 0
|
||||
theme_override_constants/margin_left = 150
|
||||
theme_override_constants/margin_top = 40
|
||||
theme_override_constants/margin_right = 150
|
||||
theme_override_constants/margin_bottom = 60
|
||||
|
||||
[node name="Pause" type="NinePatchRect" parent="."]
|
||||
process_mode = 3
|
||||
z_index = 1
|
||||
layout_mode = 2
|
||||
texture = SubResource("AtlasTexture_tifvb")
|
||||
patch_margin_left = 73
|
||||
patch_margin_top = 98
|
||||
patch_margin_right = 73
|
||||
patch_margin_bottom = 52
|
||||
script = ExtResource("2_4vp8g")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Pause"]
|
||||
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 = 30
|
||||
theme_override_constants/margin_top = 55
|
||||
theme_override_constants/margin_right = 30
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="Buttons" type="VBoxContainer" parent="Pause/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PAUSED" type="Label" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
text = "paused"
|
||||
label_settings = SubResource("LabelSettings_or0he")
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Volumes" type="HBoxContainer" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Labels" type="VBoxContainer" parent="Pause/MarginContainer/Buttons/Volumes"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="SFX" type="Label" parent="Pause/MarginContainer/Buttons/Volumes/Labels"]
|
||||
layout_mode = 2
|
||||
text = "sfx"
|
||||
|
||||
[node name="Music" type="Label" parent="Pause/MarginContainer/Buttons/Volumes/Labels"]
|
||||
layout_mode = 2
|
||||
text = "music"
|
||||
|
||||
[node name="Sliders" type="VBoxContainer" parent="Pause/MarginContainer/Buttons/Volumes"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="SFX" type="HSlider" parent="Pause/MarginContainer/Buttons/Volumes/Sliders"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
script = ExtResource("3_e3p60")
|
||||
|
||||
[node name="Music" type="HSlider" parent="Pause/MarginContainer/Buttons/Volumes/Sliders"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
script = ExtResource("3_e3p60")
|
||||
affects = 1
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="Pause/MarginContainer/Buttons"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
icon = SubResource("AtlasTexture_4k24j")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="RestartButton" type="Button" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
icon = SubResource("AtlasTexture_or0he")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="ExitButton" type="Button" parent="Pause/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
icon = SubResource("AtlasTexture_y3stn")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="ButtonPlayer" type="Node" parent="Pause/MarginContainer/Buttons"]
|
||||
script = ExtResource("3_4vp8g")
|
||||
audioStream = ExtResource("4_e3p60")
|
||||
channel = "button"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ContinueButton" to="Pause" method="Continue"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ContinueButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/RestartButton" to="Pause" method="Restart"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/RestartButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ExitButton" to="Pause" method="Exit"]
|
||||
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ExitButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
|
||||
|
|
@ -1,145 +0,0 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cwck7e1tt057k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cqlghusry0hej" path="res://scripts/gui/RewardScene.cs" id="1_rclqa"]
|
||||
[ext_resource type="Texture2D" uid="uid://nc6t245565lu" path="res://assets/sprites/leafy_background.png" id="1_uwg38"]
|
||||
[ext_resource type="Texture2D" uid="uid://bq8n778sk4qnv" path="res://assets/sprites/gui/almanach/frame.tres" id="2_hbmdt"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="3_mbhdb"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_rclqa"]
|
||||
viewport_path = NodePath("PanelContainer/VBoxContainer/Frame/SubViewport")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_rclqa"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:color")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 0.921569, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_mbhdb"]
|
||||
resource_name = "main"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:color")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 0.921569, 1), Color(1, 1, 0.92, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rfkmu"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_rclqa"),
|
||||
&"main": SubResource("Animation_mbhdb")
|
||||
}
|
||||
|
||||
[node name="RewardScene" 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_rclqa")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_uwg38")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.285
|
||||
anchor_top = 0.105
|
||||
anchor_right = 0.713333
|
||||
anchor_bottom = 0.895
|
||||
offset_right = -3.05176e-05
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="PanelContainer/VBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
texture = ExtResource("2_hbmdt")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="PanelContainer/VBoxContainer/Frame"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="PanelContainer/VBoxContainer/Frame/SubViewport"]
|
||||
unique_name_in_owner = true
|
||||
texture = ExtResource("3_mbhdb")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="PanelContainer/VBoxContainer/Frame/SubViewport"]
|
||||
zoom = Vector2(0.75, 0.75)
|
||||
|
||||
[node name="ViewportTexture" type="TextureRect" parent="PanelContainer/VBoxContainer/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_rclqa")
|
||||
|
||||
[node name="NameLabel" type="Label" parent="PanelContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DescriptionPanel" type="PanelContainer" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_type_variation = &"description_panel_container"
|
||||
|
||||
[node name="DescriptionLabel" type="RichTextLabel" parent="PanelContainer/VBoxContainer/DescriptionPanel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="PanelContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "continue"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(1, 1, 0.921569, 1)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_rfkmu")
|
||||
}
|
||||
autoplay = "main"
|
||||
|
|
@ -1,299 +0,0 @@
|
|||
[gd_scene load_steps=49 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ky35veswaytr" path="res://scenes/gui/sun_counter.tscn" id="1_le3od"]
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://assets/themes/GameStyle.tres" id="1_xf6ra"]
|
||||
[ext_resource type="Script" uid="uid://cwa1eydeiy3y4" path="res://scripts/gui/LevelGUIElements.cs" id="2_5fonq"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbh0uwloi87tn" path="res://assets/sprites/gui/PlantPanel.png" id="2_eg3hk"]
|
||||
[ext_resource type="PackedScene" uid="uid://t0vpmycj6c8j" path="res://scenes/gui/shovel_button.tscn" id="3_bheea"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgm7td1hgs0rr" path="res://scenes/gui/fast_forward_button.tscn" id="4_66uy4"]
|
||||
[ext_resource type="Script" uid="uid://di45o67gxmiql" path="res://scripts/gui/seedpackets/HotbarShortcutSetter.cs" id="5_5kkbf"]
|
||||
[ext_resource type="PackedScene" uid="uid://u5l3jd00s8vd" path="res://scenes/gui/pause_button.tscn" id="5_jyq78"]
|
||||
[ext_resource type="Script" uid="uid://bygqu13os20wi" path="res://scripts/gui/PlantHotbarSize.cs" id="5_xq48m"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4lx8adw6rbqs" path="res://scenes/particles/dirt_explosion.tscn" id="6_5jtun"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="7_5kkbf"]
|
||||
[ext_resource type="AudioStream" uid="uid://dfbg6dxg4actb" path="res://assets/audio/sfx/shovel.mp3" id="8_xq48m"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ps2iw"]
|
||||
texture = ExtResource("2_eg3hk")
|
||||
texture_margin_left = 4.0
|
||||
texture_margin_top = 4.0
|
||||
texture_margin_right = 4.0
|
||||
texture_margin_bottom = 4.0
|
||||
axis_stretch_horizontal = 1
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_xq48m"]
|
||||
device = -1
|
||||
keycode = 49
|
||||
unicode = 49
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_hmpwl"]
|
||||
events = [SubResource("InputEventKey_xq48m")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_kqrbi"]
|
||||
device = -1
|
||||
keycode = 50
|
||||
unicode = 50
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_s6pj4"]
|
||||
events = [SubResource("InputEventKey_kqrbi")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_ar74i"]
|
||||
device = -1
|
||||
keycode = 51
|
||||
unicode = 51
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_k8sc7"]
|
||||
events = [SubResource("InputEventKey_ar74i")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_6klug"]
|
||||
device = -1
|
||||
keycode = 52
|
||||
unicode = 52
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_lxteg"]
|
||||
events = [SubResource("InputEventKey_6klug")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_vbeir"]
|
||||
device = -1
|
||||
keycode = 53
|
||||
unicode = 53
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_7hbdx"]
|
||||
device = -1
|
||||
keycode = 81
|
||||
unicode = 1081
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_q5vyg"]
|
||||
events = [SubResource("InputEventKey_vbeir"), SubResource("InputEventKey_7hbdx")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_6l5gn"]
|
||||
device = -1
|
||||
keycode = 54
|
||||
unicode = 54
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_2abg0"]
|
||||
device = -1
|
||||
keycode = 87
|
||||
unicode = 1094
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_6awm7"]
|
||||
events = [SubResource("InputEventKey_6l5gn"), SubResource("InputEventKey_2abg0")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_mu0ut"]
|
||||
device = -1
|
||||
keycode = 55
|
||||
unicode = 55
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_o6p06"]
|
||||
device = -1
|
||||
keycode = 69
|
||||
unicode = 1091
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_dsi7v"]
|
||||
events = [SubResource("InputEventKey_mu0ut"), SubResource("InputEventKey_o6p06")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_iruld"]
|
||||
device = -1
|
||||
keycode = 56
|
||||
unicode = 56
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_hr1by"]
|
||||
device = -1
|
||||
keycode = 82
|
||||
unicode = 1082
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_d5mmq"]
|
||||
events = [SubResource("InputEventKey_iruld"), SubResource("InputEventKey_hr1by")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_h2jfj"]
|
||||
device = -1
|
||||
keycode = 57
|
||||
unicode = 57
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_xrhoa"]
|
||||
device = -1
|
||||
keycode = 84
|
||||
unicode = 1077
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_yda1n"]
|
||||
events = [SubResource("InputEventKey_h2jfj"), SubResource("InputEventKey_xrhoa")]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_iupjv"]
|
||||
device = -1
|
||||
keycode = 48
|
||||
unicode = 48
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_icels"]
|
||||
device = -1
|
||||
keycode = 89
|
||||
unicode = 1085
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_lnrbg"]
|
||||
events = [SubResource("InputEventKey_iupjv"), SubResource("InputEventKey_icels")]
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_xq48m"]
|
||||
action = &"short_shovel"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_cti1a"]
|
||||
events = [SubResource("InputEventAction_xq48m")]
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_5kkbf"]
|
||||
action = &"short_ff"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_xq48m"]
|
||||
events = [SubResource("InputEventAction_5kkbf")]
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_cti1a"]
|
||||
action = &"short_pause"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_s07y0"]
|
||||
events = [SubResource("InputEventAction_cti1a")]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_c8fnk"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:color:a")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ffxdv"]
|
||||
resource_name = "flash"
|
||||
length = 0.3
|
||||
step = 0.1
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:color:a")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0),
|
||||
"points": PackedFloat32Array(0.25, -0.25, 0, 0, 0.00399721, 0, -0.2, 0.0038315, 0.25, 0),
|
||||
"times": PackedFloat32Array(0, 0.3)
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_myv2j"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_c8fnk"),
|
||||
&"flash": SubResource("Animation_ffxdv")
|
||||
}
|
||||
|
||||
[node name="RuntimeGUI" type="Control" node_paths=PackedStringArray("SeedpacketsHotbar", "SunCounter")]
|
||||
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_xf6ra")
|
||||
script = ExtResource("2_5fonq")
|
||||
SeedpacketsHotbar = NodePath("MarginContainer/Control/Hotbar/PanelContainer/Seedpackets")
|
||||
SunCounter = NodePath("MarginContainer/Control/Hotbar/SunCounter")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_constants/margin_left = 8
|
||||
theme_override_constants/margin_top = 0
|
||||
theme_override_constants/margin_right = 8
|
||||
theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="Control" type="Control" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Hotbar" type="HBoxContainer" parent="MarginContainer/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.16
|
||||
grow_horizontal = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="SunCounter" parent="MarginContainer/Control/Hotbar" instance=ExtResource("1_le3od")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/Control/Hotbar"]
|
||||
custom_minimum_size = Vector2(377, 64)
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_ps2iw")
|
||||
script = ExtResource("5_xq48m")
|
||||
|
||||
[node name="Seedpackets" type="HBoxContainer" parent="MarginContainer/Control/Hotbar/PanelContainer"]
|
||||
process_mode = 3
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="ShortcutSetter" type="Node" parent="MarginContainer/Control/Hotbar/PanelContainer" node_paths=PackedStringArray("hotbar")]
|
||||
process_mode = 1
|
||||
script = ExtResource("5_5kkbf")
|
||||
shortcuts = Array[Shortcut]([SubResource("Shortcut_hmpwl"), SubResource("Shortcut_s6pj4"), SubResource("Shortcut_k8sc7"), SubResource("Shortcut_lxteg"), SubResource("Shortcut_q5vyg"), SubResource("Shortcut_6awm7"), SubResource("Shortcut_dsi7v"), SubResource("Shortcut_d5mmq"), SubResource("Shortcut_yda1n"), SubResource("Shortcut_lnrbg")])
|
||||
hotbar = NodePath("../Seedpackets")
|
||||
|
||||
[node name="Space" type="Control" parent="MarginContainer/Control/Hotbar"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ShovelButton" parent="MarginContainer/Control/Hotbar" instance=ExtResource("3_bheea")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
shortcut = SubResource("Shortcut_cti1a")
|
||||
particles = ExtResource("6_5jtun")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/ShovelButton"]
|
||||
script = ExtResource("7_5kkbf")
|
||||
audioStream = ExtResource("8_xq48m")
|
||||
channel = "shovel"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="FastForwardButton" parent="MarginContainer/Control/Hotbar" node_paths=PackedStringArray("flashAnimator") instance=ExtResource("4_66uy4")]
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_xq48m")
|
||||
flashAnimator = NodePath("../../../../FastForwardEffect/AnimationPlayer")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/FastForwardButton"]
|
||||
script = ExtResource("7_5kkbf")
|
||||
channel = "fastfw"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="PauseButton" parent="MarginContainer/Control/Hotbar" instance=ExtResource("5_jyq78")]
|
||||
process_mode = 3
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_s07y0")
|
||||
|
||||
[node name="FastForwardEffect" type="ColorRect" parent="."]
|
||||
z_index = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.000150553, 0.938204, 0.707471, 0)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="FastForwardEffect"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_myv2j")
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/Control/Hotbar/ShovelButton" to="MarginContainer/Control/Hotbar/ShovelButton/ChannelPlayer" method="Play"]
|
||||
|
|
@ -1,141 +0,0 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://e7vutg71l6f2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="1_77bw1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="3_q0tvq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjkwy3u0wuax3" path="res://assets/sprites/gui/ForbiddenPacket.tres" id="4_6k60q"]
|
||||
[ext_resource type="Script" uid="uid://cn6ddajdtf4ep" path="res://scripts/gui/seedpackets/Seedpacket.cs" id="4_c6epd"]
|
||||
[ext_resource type="Script" uid="uid://chag6sgjsjb2u" path="res://scripts/gui/seedpackets/CostVeil.cs" id="4_gtmhg"]
|
||||
[ext_resource type="Shader" uid="uid://dcp5tqcec2oi3" path="res://assets/shaders/gui_masking.gdshader" id="5_s5861"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1p5iswlquo4o" path="res://assets/sprites/gui/LockedPacket.tres" id="5_tvxj3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1afy0ga6h1ic" path="res://assets/sprites/white_box.png" id="6_lp42h"]
|
||||
[ext_resource type="Script" uid="uid://ddi84kmmq1qla" path="res://scripts/gui/VeilResizer.cs" id="7_tv07f"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_js4li"]
|
||||
resource_local_to_scene = true
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_qxf0q"]
|
||||
shader = ExtResource("5_s5861")
|
||||
shader_parameter/mask = ExtResource("1_77bw1")
|
||||
|
||||
[node name="Seedpacket" type="TextureButton"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.137
|
||||
anchor_bottom = 0.28
|
||||
offset_right = -0.199997
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource("1_77bw1")
|
||||
texture_focused = ExtResource("3_q0tvq")
|
||||
stretch_mode = 0
|
||||
script = ExtResource("4_c6epd")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Cost" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.146
|
||||
anchor_top = 0.732
|
||||
anchor_right = 0.854
|
||||
anchor_bottom = 0.893
|
||||
offset_left = 0.0279989
|
||||
offset_top = 0.0159912
|
||||
offset_right = -0.0279999
|
||||
offset_bottom = -0.0160065
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
label_settings = SubResource("LabelSettings_js4li")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="PlantPreviewContainer" type="Control" parent="."]
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
anchor_left = -0.061
|
||||
anchor_top = -0.036
|
||||
anchor_right = 1.061
|
||||
anchor_bottom = 0.661
|
||||
offset_left = 0.00199986
|
||||
offset_top = 0.0320001
|
||||
offset_right = -0.0019989
|
||||
offset_bottom = -0.0319977
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Preview" type="TextureRect" parent="PlantPreviewContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.185
|
||||
anchor_top = 0.205
|
||||
anchor_right = 0.815
|
||||
anchor_bottom = 1.333
|
||||
offset_left = -0.0200005
|
||||
offset_top = 0.00999928
|
||||
offset_right = 0.0199966
|
||||
offset_bottom = 0.0259933
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ForbiddenTexture" type="TextureRect" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("4_6k60q")
|
||||
|
||||
[node name="LockedTexture" type="TextureRect" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.341463
|
||||
anchor_top = 0.339286
|
||||
anchor_right = 0.658537
|
||||
anchor_bottom = 0.660714
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("5_tvxj3")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="CostVeil" 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
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 0.415686)
|
||||
script = ExtResource("4_gtmhg")
|
||||
|
||||
[node name="Veil" type="TextureProgressBar" parent="." node_paths=PackedStringArray("_referenceTimer")]
|
||||
material = SubResource("ShaderMaterial_qxf0q")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
max_value = 1.0
|
||||
step = 0.001
|
||||
fill_mode = 3
|
||||
nine_patch_stretch = true
|
||||
texture_progress = ExtResource("6_lp42h")
|
||||
tint_progress = Color(0, 0, 0, 0.501961)
|
||||
script = ExtResource("7_tv07f")
|
||||
_referenceTimer = NodePath("../RechargeTimer")
|
||||
|
||||
[node name="RechargeTimer" type="Timer" parent="."]
|
||||
process_mode = 1
|
||||
one_shot = true
|
||||
|
||||
[connection signal="focus_exited" from="." to="." method="OnUnfocused"]
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://t0vpmycj6c8j"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://c5kv2gwtme1dk" path="res://assets/shaders/radial_progress.gdshader" id="1_jj4sa"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0jta6xgl7mvc" path="res://assets/sprites/gui/shovel_button.png" id="2_jj4sa"]
|
||||
[ext_resource type="Texture2D" uid="uid://fd6drk2su0df" path="res://assets/sprites/gui/EmptyShovel.tres" id="2_pw2pj"]
|
||||
[ext_resource type="Script" uid="uid://d4dbg0us5ngxy" path="res://scripts/gui/ShovelButton.cs" id="3_u6gir"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_grw26"]
|
||||
shader = ExtResource("1_jj4sa")
|
||||
shader_parameter/region_rect = Vector4(46, 174, 51, 47)
|
||||
shader_parameter/progress = 1.0
|
||||
|
||||
[node name="ShovelButton" type="TextureButton" node_paths=PackedStringArray("raycast", "timer")]
|
||||
material = SubResource("ShaderMaterial_grw26")
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.085
|
||||
anchor_bottom = 0.117
|
||||
offset_right = -11.0
|
||||
offset_bottom = -6.8
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
toggle_mode = true
|
||||
texture_normal = ExtResource("2_jj4sa")
|
||||
texture_pressed = ExtResource("2_pw2pj")
|
||||
stretch_mode = 5
|
||||
script = ExtResource("3_u6gir")
|
||||
raycast = NodePath("RayCast2D")
|
||||
timer = NodePath("Timer")
|
||||
|
||||
[node name="RayCast2D" type="RayCast2D" parent="."]
|
||||
exclude_parent = false
|
||||
target_position = Vector2(0, 0)
|
||||
collision_mask = 24
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
collide_with_bodies = false
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 90.0
|
||||
one_shot = true
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://ky35veswaytr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bhp3vuvwf7lak" path="res://assets/sprites/gui/suncounter.tres" id="1_e5x4k"]
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://assets/themes/GameStyle.tres" id="1_vhhcn"]
|
||||
[ext_resource type="Texture2D" uid="uid://c47rflkf2wap0" path="res://assets/sprites/sun.tres" id="2_gugre"]
|
||||
[ext_resource type="Script" uid="uid://dwxohya1exdkh" path="res://scripts/gui/SunCounter.cs" id="3_qhmb8"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_lxkq5"]
|
||||
font_size = 10
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="SunCounter" type="TextureRect" node_paths=PackedStringArray("text", "sunImage")]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.082
|
||||
anchor_bottom = 0.067
|
||||
offset_right = -0.200001
|
||||
offset_bottom = 0.199999
|
||||
size_flags_vertical = 0
|
||||
theme = ExtResource("1_vhhcn")
|
||||
texture = ExtResource("1_e5x4k")
|
||||
script = ExtResource("3_qhmb8")
|
||||
text = NodePath("Label")
|
||||
sunImage = NodePath("Sun")
|
||||
|
||||
[node name="Sun" type="TextureRect" parent="."]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.019
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.019
|
||||
offset_left = -22.5
|
||||
offset_top = -22.513
|
||||
offset_right = 22.5
|
||||
offset_bottom = 22.487
|
||||
pivot_offset = Vector2(23, 22)
|
||||
texture = ExtResource("2_gugre")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
process_mode = 3
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.122
|
||||
anchor_top = 0.222
|
||||
anchor_right = 0.878
|
||||
anchor_bottom = 0.815
|
||||
offset_left = 0.0219994
|
||||
offset_top = 0.00599957
|
||||
offset_right = -0.0219994
|
||||
offset_bottom = -0.00500107
|
||||
text = "0"
|
||||
label_settings = SubResource("LabelSettings_lxkq5")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://c668qnmmpli5r"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://oxjkxtyw0xx0" path="res://assets/sprites/wave-progress/UnderTexture.tres" id="1_60lfm"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbt3asr2jel6" path="res://assets/sprites/wave-progress/Fill.tres" id="2_7f727"]
|
||||
[ext_resource type="Script" uid="uid://bsnt4slsbathn" path="res://scripts/gui/WaveProgress.cs" id="3_u57hj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjpea7iqweexm" path="res://assets/sprites/wave-progress/Head.tres" id="4_5xdew"]
|
||||
|
||||
[node name="WaveProgress" type="TextureProgressBar"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.238
|
||||
anchor_bottom = 0.05
|
||||
offset_right = 0.199997
|
||||
step = 0.01
|
||||
fill_mode = 1
|
||||
stretch_margin_left = 20
|
||||
texture_under = ExtResource("1_60lfm")
|
||||
texture_progress = ExtResource("2_7f727")
|
||||
texture_progress_offset = Vector2(3, 5)
|
||||
script = ExtResource("3_u57hj")
|
||||
|
||||
[node name="Head" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -11.5
|
||||
offset_top = -12.0
|
||||
offset_right = 11.5
|
||||
offset_bottom = 12.0
|
||||
texture = ExtResource("4_5xdew")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue