[gd_scene load_steps=2 format=3 uid="uid://mpq_tool"]

[ext_resource type="Script" path="res://addons/mpq_extractor/ui/mpq_tool.gd" id="1_script"]

[node name="MPQTool" type="VBoxContainer"]
script = ExtResource("1_script")
custom_minimum_size = Vector2(280, 0)

[node name="Title" type="Label" parent="."]
text = "MPQ Extractor  (WoW 3.3.5a)"
theme_override_font_sizes/font_size = 14

[node name="HSep1" type="HSeparator" parent="."]

[node name="ClientPathRow" type="HBoxContainer" parent="."]

[node name="ClientLabel" type="Label" parent="ClientPathRow"]
text = "Client path"
custom_minimum_size = Vector2(80, 0)

[node name="ClientPathEdit" type="LineEdit" parent="ClientPathRow"]
unique_name_in_owner = true
size_flags_horizontal = 3
placeholder_text = "res://sources"

[node name="LocaleRow" type="HBoxContainer" parent="."]

[node name="LocaleLabel" type="Label" parent="LocaleRow"]
text = "Locale"
custom_minimum_size = Vector2(80, 0)

[node name="LocaleOption" type="OptionButton" parent="LocaleRow"]
unique_name_in_owner = true
size_flags_horizontal = 3

[node name="OpenBtn" type="Button" parent="."]
unique_name_in_owner = true
text = "Open Client Archives"

[node name="HSep2" type="HSeparator" parent="."]

[node name="ArchiveLabel" type="Label" parent="."]
text = "Loaded archives (highest priority first):"

[node name="ArchiveList" type="ItemList" parent="."]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 110)

[node name="HSep3" type="HSeparator" parent="."]

[node name="FilterRow" type="HBoxContainer" parent="."]

[node name="FilterLabel" type="Label" parent="FilterRow"]
text = "Filter"
custom_minimum_size = Vector2(80, 0)

[node name="FilterEdit" type="LineEdit" parent="FilterRow"]
unique_name_in_owner = true
size_flags_horizontal = 3
placeholder_text = "DBFilesClient\\*.dbc"
text = "*"

[node name="OutputRow" type="HBoxContainer" parent="."]

[node name="OutputLabel" type="Label" parent="OutputRow"]
text = "Output dir"
custom_minimum_size = Vector2(80, 0)

[node name="OutputEdit" type="LineEdit" parent="OutputRow"]
unique_name_in_owner = true
size_flags_horizontal = 3
placeholder_text = "res://data/extracted"
text = "res://data/extracted"

[node name="ActionRow" type="HBoxContainer" parent="."]

[node name="ListBtn" type="Button" parent="ActionRow"]
unique_name_in_owner = true
size_flags_horizontal = 3
text = "List Files"

[node name="ExtractBtn" type="Button" parent="ActionRow"]
unique_name_in_owner = true
size_flags_horizontal = 3
text = "Extract"

[node name="ProgressBar" type="ProgressBar" parent="."]
unique_name_in_owner = true
visible = false

[node name="FileListLabel" type="Label" parent="."]
text = "Files matching filter:"

[node name="FileList" type="ItemList" parent="."]
unique_name_in_owner = true
size_flags_vertical = 3
custom_minimum_size = Vector2(0, 200)

[node name="StatusLabel" type="Label" parent="."]
unique_name_in_owner = true
text = "Ready."
autowrap_mode = 3
