[gd_scene load_steps=4 format=3 uid="uid://bjncpymja76aq"]

[ext_resource type="Script" path="res://src/town_preview/town_preview.gd" id="1_qmitc"]
[ext_resource type="Theme" uid="uid://bdofl7w84udo" path="res://src/menus.tres" id="2_2ie50"]
[ext_resource type="PackedScene" uid="uid://b6p1b5g3r77su" path="res://src/weird_background.tscn" id="2_8s4ba"]

[node name="TownPreview" type="Node2D" node_paths=PackedStringArray("_town_label", "_items", "_towns", "_weight_label", "_description_box_label", "_fade_rect")]
script = ExtResource("1_qmitc")
_town_label = NodePath("CanvasLayer/Themed/TownLabel")
_items = NodePath("CanvasLayer/Themed/Things/ScrollContainer/HFlowContainer")
_towns = NodePath("CanvasLayer/Themed/TownSelect/ContentMargin/VBoxContainer")
_weight_label = NodePath("CanvasLayer/Themed/WeightLabel")
_description_box_label = NodePath("CanvasLayer/Themed/DescriptionBox/RichTextLabel")
_fade_rect = NodePath("CanvasLayer/FadeRect")

[node name="CanvasLayer" type="CanvasLayer" parent="."]

[node name="WeirdBackground" parent="CanvasLayer" instance=ExtResource("2_8s4ba")]
offset_top = -76.0
offset_bottom = 76.0

[node name="Themed" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
theme = ExtResource("2_2ie50")

[node name="TownLabel" type="RichTextLabel" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -312.0
offset_top = -172.0
offset_right = 312.0
offset_bottom = -148.0
grow_horizontal = 2
grow_vertical = 2
bbcode_enabled = true
text = "Going to \"Nowhere\""
fit_content = true

[node name="WeightLabel" type="RichTextLabel" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -312.0
offset_top = -116.0
offset_right = -88.0
offset_bottom = -82.0
grow_horizontal = 2
grow_vertical = 2
bbcode_enabled = true
text = "0/0"
fit_content = true

[node name="GoFromHereLabel" type="Label" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 176.0
offset_top = -92.0
offset_right = 284.0
offset_bottom = -69.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 0
text = "Go From Here"

[node name="Things" type="Panel" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -312.0
offset_top = -75.0
offset_right = -93.0
offset_bottom = 173.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
metadata/_edit_group_ = true

[node name="ScrollContainer" type="ScrollContainer" parent="CanvasLayer/Themed/Things"]
layout_mode = 1
anchors_preset = -1
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 8.0
offset_top = 8.0
offset_right = -8.0
offset_bottom = -8.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
horizontal_scroll_mode = 0
vertical_scroll_mode = 2

[node name="HFlowContainer" type="HFlowContainer" parent="CanvasLayer/Themed/Things/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="DescriptionBox" type="Panel" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -87.5
offset_top = -75.5
offset_right = 120.5
offset_bottom = 116.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
metadata/_edit_group_ = true

[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/Themed/DescriptionBox"]
layout_mode = 1
anchors_preset = -1
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 8.0
offset_top = 8.0
offset_right = -8.0
offset_bottom = -8.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/bold_italics_font_size = 12
theme_override_font_sizes/italics_font_size = 12
theme_override_font_sizes/mono_font_size = 12
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/bold_font_size = 12
bbcode_enabled = true
fit_content = true

[node name="GoForth" type="Button" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -88.0
offset_top = 124.0
offset_right = 120.0
offset_bottom = 172.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 8
theme_override_font_sizes/font_size = 36
text = "GO FORTH!"

[node name="TownSelect" type="ScrollContainer" parent="CanvasLayer/Themed"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 128.0
offset_top = -75.0
offset_right = 312.0
offset_bottom = 173.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
follow_focus = true
horizontal_scroll_mode = 0
metadata/_edit_group_ = true

[node name="ContentMargin" type="MarginContainer" parent="CanvasLayer/Themed/TownSelect"]
layout_mode = 2
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4

[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Themed/TownSelect/ContentMargin"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 4

[node name="FadeRect" type="ColorRect" parent="CanvasLayer"]
visible = false
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, 1)

[connection signal="pressed" from="CanvasLayer/Themed/GoForth" to="." method="_on_go_forth_pressed"]
