208 lines
7.6 KiB
Text
208 lines
7.6 KiB
Text
[gd_scene load_steps=11 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="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
|
|
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
|
|
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"]
|