[gd_scene load_steps=5 format=3 uid="uid://csqelun8tcd7y"]

[ext_resource type="Script" uid="uid://x4mt6jwbywsl" path="res://scripts/character/character_list.gd" id="1_list"]
[ext_resource type="Texture2D" uid="uid://cja8kui47qb3d" path="res://assets/ui/main_menu.png" id="2_arrgh"]
[ext_resource type="Theme" uid="uid://bviqieumdiccr" path="res://assets/themes/main_theme.tres" id="3_pfk5o"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mvluj"]
bg_color = Color(0, 0, 0, 0.69411767)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(0.83137256, 0.6862745, 0.21568628, 1)

[node name="CharacterList" 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_list")

[node name="TextureRect" 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("2_arrgh")
expand_mode = 3

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 16

[node name="Header" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="TitleLabel" type="Label" parent="VBoxContainer/Header"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 24
text = "Your Characters"

[node name="TierLabel" type="Label" parent="VBoxContainer/Header"]
layout_mode = 2
theme_override_font_sizes/font_size = 16
text = "Free: 0/1"
horizontal_alignment = 2

[node name="LoadingIndicator" type="CenterContainer" parent="VBoxContainer"]
visible = false
layout_mode = 2
size_flags_vertical = 3

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/LoadingIndicator"]
layout_mode = 2

[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer/LoadingIndicator/VBoxContainer"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
max_value = 0.0
indeterminate = true
editor_preview_indeterminate = false

[node name="Label" type="Label" parent="VBoxContainer/LoadingIndicator/VBoxContainer"]
layout_mode = 2
text = "Loading characters..."
horizontal_alignment = 1

[node name="CharacterScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0

[node name="CharacterVBox" type="VBoxContainer" parent="VBoxContainer/CharacterScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 12

[node name="ErrorContainer" type="MarginContainer" parent="VBoxContainer"]
visible = false
layout_mode = 2
theme = ExtResource("3_pfk5o")
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 8

[node name="ErrorLabel" type="Label" parent="VBoxContainer/ErrorContainer"]
custom_minimum_size = Vector2(200, 20)
layout_mode = 2
theme_override_colors/font_color = Color(0.9, 0.3, 0.3, 1)
theme_override_styles/normal = SubResource("StyleBoxFlat_mvluj")
text = "Error message here"
horizontal_alignment = 1
autowrap_mode = 2

[node name="ActionContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 16
alignment = 1

[node name="CreateButton" type="Button" parent="VBoxContainer/ActionContainer"]
custom_minimum_size = Vector2(180, 44)
layout_mode = 2
text = "Create Character"

[node name="RefreshButton" type="Button" parent="VBoxContainer/ActionContainer"]
custom_minimum_size = Vector2(100, 44)
layout_mode = 2
text = "Refresh"

[node name="EmptyState" type="CenterContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="VBoxContainer" type="VBoxContainer" parent="EmptyState"]
layout_mode = 2
theme_override_constants/separation = 16

[node name="IconLabel" type="Label" parent="EmptyState/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "⚔"
horizontal_alignment = 1

[node name="MessageLabel" type="Label" parent="EmptyState/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 18
text = "No characters yet"
horizontal_alignment = 1

[node name="SubMessageLabel" type="Label" parent="EmptyState/VBoxContainer"]
layout_mode = 2
text = "Create your first character to begin your adventure!"
horizontal_alignment = 1
autowrap_mode = 2

[node name="CreateFirstButton" type="Button" parent="EmptyState/VBoxContainer"]
custom_minimum_size = Vector2(180, 44)
layout_mode = 2
size_flags_horizontal = 4
text = "Create Character"
