Almanach
This commit is contained in:
parent
008fa31dd4
commit
b932e82555
39 changed files with 575 additions and 78 deletions
171
scenes/gui/almanach.tscn
Normal file
171
scenes/gui/almanach.tscn
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
[gd_scene load_steps=7 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://0mvmfvwe1bc7" path="res://scripts/components/gui/almanach/AlmanachGrid.cs" id="1_ru62c"]
|
||||
[ext_resource type="Script" uid="uid://covbig00p22di" path="res://scripts/components/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"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ru62c"]
|
||||
viewport_path = NodePath("Plants/Infobox/FrameAndTitle/Frame/Previewport")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_7yl8g"]
|
||||
viewport_path = NodePath("Zombies/Infobox/FrameAndTitle/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
|
||||
|
||||
[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="Frame" type="TextureRect" parent="Plants/Infobox/FrameAndTitle"]
|
||||
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/Frame" node_paths=PackedStringArray("title", "description")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(65, 65)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../Label")
|
||||
description = NodePath("../../../Description/ScrollContainer/RichTextLabel")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="Plants/Infobox/FrameAndTitle/Frame/Previewport"]
|
||||
texture = ExtResource("3_oy57w")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Plants/Infobox/FrameAndTitle/Frame/Previewport"]
|
||||
|
||||
[node name="Render" type="TextureRect" parent="Plants/Infobox/FrameAndTitle/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="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="Frame" type="TextureRect" parent="Zombies/Infobox/FrameAndTitle"]
|
||||
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/Frame" node_paths=PackedStringArray("title", "description")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../Label")
|
||||
description = NodePath("../../../Description/ScrollContainer/RichTextLabel")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="Zombies/Infobox/FrameAndTitle/Frame/Previewport"]
|
||||
texture = ExtResource("3_oy57w")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Zombies/Infobox/FrameAndTitle/Frame/Previewport"]
|
||||
position = Vector2(0, -45)
|
||||
|
||||
[node name="Render" type="TextureRect" parent="Zombies/Infobox/FrameAndTitle/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="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
|
||||
Loading…
Add table
Add a link
Reference in a new issue