[gd_scene load_steps=43 format=3 uid="uid://cyf16hyu7mr7x"]

[ext_resource type="Script" uid="uid://bxu6kcun4m6uo" path="res://Scripts/UI/CustomLevelMenu.gd" id="1_2wr4s"]
[ext_resource type="Texture2D" uid="uid://bhuybr2gtuco5" path="res://Assets/Sprites/UI/MenuBG.png" id="2_0jssh"]
[ext_resource type="Texture2D" uid="uid://3ai0ggxah360" path="res://Assets/Sprites/UI/MenuBorder.png" id="2_2wr4s"]
[ext_resource type="Theme" uid="uid://dtn507x2b5de7" path="res://Resources/Theme.tres" id="2_wgcm7"]
[ext_resource type="Script" uid="uid://xem6lai3ufyj" path="res://Scripts/Classes/UI/PackNinePatch.gd" id="4_rx7vd"]
[ext_resource type="Texture2D" uid="uid://c1so2g6dmlakk" path="res://Assets/Sprites/UI/CustomLevelBG.png" id="6_ruj08"]
[ext_resource type="Script" uid="uid://ca3bew33g45eq" path="res://Scripts/Classes/UI/PackTextureRect.gd" id="7_ruj08"]
[ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="8_psbt7"]
[ext_resource type="StyleBox" uid="uid://dlbdmqmnl30sq" path="res://Resources/UI/PanelSelected.tres" id="9_61olo"]
[ext_resource type="Script" uid="uid://cv5avutyesjxt" path="res://Scripts/UI/CustomLevelList.gd" id="9_r5ajm"]
[ext_resource type="Texture2D" uid="uid://chtjq1vr0rpso" path="res://Assets/Sprites/UI/CustomLevelIconDay.png" id="10_psbt7"]
[ext_resource type="Texture2D" uid="uid://hg5ql8d3dck7" path="res://Assets/Sprites/UI/CustomLevelActionIcon.png" id="11_bwyvi"]
[ext_resource type="PackedScene" uid="uid://bmn81e10obpjv" path="res://Scenes/Parts/SelectableLabel.tscn" id="12_psbt7"]
[ext_resource type="Script" uid="uid://bb8ldpxo5h71i" path="res://Scripts/UI/SwapContainer.gd" id="12_qptw5"]
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="14_tjro6"]
[ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="15_7mmoe"]
[ext_resource type="PackedScene" uid="uid://dt20tjug8m6oh" path="res://Scenes/Prefabs/UI/CustomLevelContainer.tscn" id="18_7mmoe"]
[ext_resource type="PackedScene" uid="uid://ckc73w2p3cdvj" path="res://Scenes/Parts/CustomMenuButton.tscn" id="19_hvf3u"]
[ext_resource type="Script" uid="uid://bsmrnnpjkhidw" path="res://Scripts/UI/LevelInfo.gd" id="19_ruj08"]
[ext_resource type="Texture2D" uid="uid://bnv2ocqgws3p7" path="res://Assets/Sprites/UI/Panel.png" id="20_otk5o"]
[ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="21_hpawg"]
[ext_resource type="Script" uid="uid://crmjepbqu408q" path="res://Scripts/UI/LssBrowser.gd" id="21_obbrw"]
[ext_resource type="PackedScene" uid="uid://ctw1isl6cmayh" path="res://Scenes/Parts/SelectableOptionLabel.tscn" id="22_13and"]
[ext_resource type="Texture2D" uid="uid://dr28edkhbb1pg" path="res://Assets/Sprites/UI/LSSIcon.png" id="23_8jgx6"]
[ext_resource type="AudioStream" uid="uid://lwyvpothl3lv" path="res://Assets/Audio/BGM/CustomLevel.mp3" id="23_22hnx"]
[ext_resource type="Script" uid="uid://c4x7i885h4si0" path="res://Scripts/UI/LssLevelInfo.gd" id="23_u8fen"]
[ext_resource type="Script" uid="uid://d63p6qr5a748" path="res://Scripts/UI/AutoScrollContainer.gd" id="24_wf6nb"]
[ext_resource type="PackedScene" uid="uid://cr2pku7fjkgpo" path="res://Scenes/Prefabs/UI/OnlineLevelContainer.tscn" id="26_r5ajm"]
[ext_resource type="PackedScene" uid="uid://ci678koo0peoa" path="res://Scenes/Prefabs/UI/CharacterSelect.tscn" id="28_u8fen"]
[ext_resource type="Script" uid="uid://cq6f682453q6o" path="res://Scripts/Classes/Components/ResourceSetter.gd" id="29_ruj08"]
[ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="30_gmv51"]

[sub_resource type="Shader" id="Shader_u8fen"]
code = "shader_type canvas_item;

uniform vec2 motion = vec2(0.0);
uniform float scale = 1.0;
uniform vec2 offset = vec2(0.0);

void vertex(){
	UV = (VERTEX + offset + TIME * motion) * TEXTURE_PIXEL_SIZE * (1.0/scale);
}"

[sub_resource type="ShaderMaterial" id="ShaderMaterial_lfefu"]
shader = SubResource("Shader_u8fen")
shader_parameter/motion = Vector2(-8, -8)
shader_parameter/scale = 1.0
shader_parameter/offset = Vector2(0, 0)

[sub_resource type="StyleBoxLine" id="StyleBoxLine_wdbts"]
color = Color(1, 1, 1, 1)

[sub_resource type="AtlasTexture" id="AtlasTexture_psbt7"]
atlas = ExtResource("11_bwyvi")
region = Rect2(0, 0, 12, 12)

[sub_resource type="StyleBoxLine" id="StyleBoxLine_wgcm7"]
color = Color(1, 1, 1, 1)
grow_begin = 8.0
grow_end = 8.0

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_otk5o"]
texture = ExtResource("20_otk5o")
texture_margin_left = 8.0
texture_margin_top = 8.0
texture_margin_right = 8.0
texture_margin_bottom = 8.0
modulate_color = Color(1, 1, 0, 1)

[sub_resource type="AtlasTexture" id="AtlasTexture_hvf3u"]
atlas = ExtResource("11_bwyvi")
region = Rect2(0, 0, 12, 12)

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_paqvc"]
texture = ExtResource("20_otk5o")
texture_margin_left = 8.0
texture_margin_top = 8.0
texture_margin_right = 8.0
texture_margin_bottom = 8.0
modulate_color = Color(1, 0, 0, 1)

[sub_resource type="AtlasTexture" id="AtlasTexture_otk5o"]
atlas = ExtResource("11_bwyvi")
region = Rect2(12, 0, 12, 12)

[sub_resource type="StyleBoxLine" id="StyleBoxLine_obbrw"]
color = Color(1, 1, 1, 1)

[sub_resource type="Resource" id="Resource_qigcv"]
script = ExtResource("30_gmv51")
Overworld = ExtResource("23_22hnx")
metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"

[node name="CustomLevelMenu" type="Node"]
script = ExtResource("1_2wr4s")

[node name="BG" type="NinePatchRect" parent="."]
texture_repeat = 2
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_wgcm7")
texture = ExtResource("2_0jssh")
region_rect = Rect2(0, 0, 16, 16)
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
script = ExtResource("4_rx7vd")
metadata/_custom_type_script = "uid://xem6lai3ufyj"

[node name="Border" type="NinePatchRect" parent="BG"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.05
anchor_right = 0.95
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_2wr4s")
region_rect = Rect2(0, 0, 32, 32)
patch_margin_left = 8
patch_margin_top = 8
patch_margin_right = 8
patch_margin_bottom = 8
axis_stretch_horizontal = 2
axis_stretch_vertical = 2
script = ExtResource("4_rx7vd")

[node name="BG" type="TextureRect" parent="BG/Border"]
show_behind_parent = true
material = SubResource("ShaderMaterial_lfefu")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("6_ruj08")
stretch_mode = 1
script = ExtResource("7_ruj08")
metadata/_custom_type_script = "uid://ca3bew33g45eq"

[node name="Levels" type="MarginContainer" parent="BG/Border"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 24
theme_override_constants/margin_top = 12
theme_override_constants/margin_right = 24
theme_override_constants/margin_bottom = 16

[node name="VBoxContainer" type="VBoxContainer" parent="BG/Border/Levels"]
layout_mode = 2

[node name="Title" type="Label" parent="BG/Border/Levels/VBoxContainer"]
custom_minimum_size = Vector2(0, 19)
layout_mode = 2
size_flags_horizontal = 4
text = "CUSTOM_LEVELS"
uppercase = true

[node name="HSeparator" type="HSeparator" parent="BG/Border/Levels/VBoxContainer/Title"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_top = 12.0
offset_bottom = 16.0
grow_horizontal = 2
theme_override_styles/separator = SubResource("StyleBoxLine_wdbts")

[node name="LevelList" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("9_r5ajm")

[node name="TopBit" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList"]
layout_mode = 2

[node name="Button" type="Button" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit"]
custom_minimum_size = Vector2(0, 42)
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_right = NodePath("../MarginContainer/VBoxContainer2/SelectableLabel")
mouse_filter = 2
theme_override_styles/normal = ExtResource("8_psbt7")
theme_override_styles/pressed = ExtResource("8_psbt7")
theme_override_styles/hover = ExtResource("9_61olo")
theme_override_styles/disabled = ExtResource("8_psbt7")
theme_override_styles/focus = ExtResource("9_61olo")

[node name="MarginContainer" type="MarginContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 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="HBoxContainer" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer"]
layout_mode = 2

[node name="HSplitContainer" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 0

[node name="LeftHalf" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 3

[node name="LevelIcon" type="NinePatchRect" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf"]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("10_psbt7")
region_rect = Rect2(64, 96, 32, 32)

[node name="LevelInfo" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = -4

[node name="ScrollContainer" type="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo"]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
horizontal_scroll_mode = 3
vertical_scroll_mode = 3

[node name="LevelName" type="Label" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/ScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "EDITOR_MAIN_CREATE_0"
uppercase = true

[node name="Container" type="BoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo" node_paths=PackedStringArray("test_node", "dummy_node")]
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("12_qptw5")
test_node = NodePath("Label")
dummy_node = NodePath("TextureRect")

[node name="TextureRect" type="TextureRect" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/Container"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture = SubResource("AtlasTexture_psbt7")
stretch_mode = 3

[node name="Label" type="Label" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/Container"]
visible = false
modulate = Color(0.38928655, 0.38928664, 0.38928658, 1)
layout_mode = 2
text = "EDITOR_MAIN_CREATE_1"
uppercase = true

[node name="TextureRect" type="TextureRect" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button"]
visible = false
layout_mode = 1
anchors_preset = -1
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -8.0
offset_top = -4.0
offset_bottom = 4.0
grow_vertical = 2

[node name="ResourceSetterNew" type="Node" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/TextureRect" node_paths=PackedStringArray("node_to_affect")]
script = ExtResource("14_tjro6")
node_to_affect = NodePath("..")
property_name = "texture"
mode = 1
resource_json = ExtResource("15_7mmoe")
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"

[node name="VBoxContainer" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit"]
layout_mode = 2

[node name="MarginContainer" type="MarginContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit"]
layout_mode = 2
theme_override_constants/margin_right = -4

[node name="VBoxContainer2" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer"]
layout_mode = 2

[node name="SelectableLabel" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2" instance=ExtResource("12_psbt7")]
layout_mode = 2
text = "EDITOR_MAIN_OPEN_FOLDER"

[node name="SelectableLabel2" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2" instance=ExtResource("12_psbt7")]
layout_mode = 2
text = "EDITOR_MAIN_REFRESH"

[node name="SelectableLabel3" parent="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2" instance=ExtResource("12_psbt7")]
layout_mode = 2
text = "EDITOR_MAIN_LSS"

[node name="HSeparator" type="HSeparator" parent="BG/Border/Levels/VBoxContainer/LevelList"]
layout_mode = 2
theme_override_styles/separator = SubResource("StyleBoxLine_wgcm7")

[node name="HBoxContainer" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList"]
layout_mode = 2
size_flags_vertical = 3

[node name="MarginContainer" type="MarginContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = -8

[node name="ScrollContainer" type="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/HBoxContainer/MarginContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 128)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
follow_focus = true
horizontal_scroll_mode = 0
vertical_scroll_mode = 2

[node name="MarginContainer" type="MarginContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/HBoxContainer/MarginContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 8

[node name="LevelContainers" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelList/HBoxContainer/MarginContainer/ScrollContainer/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1

[node name="Label" type="Label" parent="BG/Border/Levels/VBoxContainer/LevelList/HBoxContainer/MarginContainer/ScrollContainer/MarginContainer/LevelContainers"]
layout_mode = 2
text = "No levels found!"
horizontal_alignment = 1
uppercase = true

[node name="HSeparator2" type="HSeparator" parent="BG/Border/Levels/VBoxContainer/LevelList"]
layout_mode = 2
theme_override_styles/separator = SubResource("StyleBoxLine_wgcm7")

[node name="LevelInfo" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 4
script = ExtResource("19_ruj08")

[node name="SelectedLevel" parent="BG/Border/Levels/VBoxContainer/LevelInfo" instance=ExtResource("18_7mmoe")]
unique_name_in_owner = true
layout_mode = 2
focus_mode = 0

[node name="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LevelInfo/SelectedLevel/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo" index="0"]
scroll_horizontal = 166
is_active = true

[node name="ScrollContainer2" parent="BG/Border/Levels/VBoxContainer/LevelInfo/SelectedLevel/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo" index="1"]
scroll_horizontal = 41
is_active = true

[node name="Panel" type="PanelContainer" parent="BG/Border/Levels/VBoxContainer/LevelInfo"]
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = ExtResource("8_psbt7")

[node name="AutoScrollContainer" type="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LevelInfo/Panel"]
layout_mode = 2
mouse_filter = 2
scroll_vertical = 49
horizontal_scroll_mode = 3
vertical_scroll_mode = 3
script = ExtResource("24_wf6nb")
direction = 1
is_active = true
auto_connect_focus = false
metadata/_custom_type_script = "uid://d63p6qr5a748"

[node name="Description" type="Label" parent="BG/Border/Levels/VBoxContainer/LevelInfo/Panel/AutoScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "this is text, isnt it so cool. WOWOWOWOWOWW"
autowrap_mode = 2
uppercase = true

[node name="HBoxContainer" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LevelInfo"]
layout_mode = 2
alignment = 1

[node name="Play" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer" instance=ExtResource("19_hvf3u")]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_right = NodePath("../Edit")

[node name="Label" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Play" index="2"]
text = "EDITOR_MAIN_LEVEL_PLAY"

[node name="Edit" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer" instance=ExtResource("19_hvf3u")]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_right = NodePath("../Delete")

[node name="Button" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit" index="0"]
theme_override_styles/pressed = SubResource("StyleBoxTexture_otk5o")
theme_override_styles/focus = SubResource("StyleBoxTexture_otk5o")

[node name="Icon" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit" index="1"]
texture = SubResource("AtlasTexture_hvf3u")

[node name="Label" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit" index="2"]
text = "EDITOR_MAIN_LEVEL_EDIT"

[node name="Delete" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer" instance=ExtResource("19_hvf3u")]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_left = NodePath("../Edit")

[node name="Button" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete" index="0"]
theme_override_styles/pressed = SubResource("StyleBoxTexture_paqvc")
theme_override_styles/focus = SubResource("StyleBoxTexture_paqvc")

[node name="Icon" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete" index="1"]
texture = SubResource("AtlasTexture_otk5o")

[node name="Label" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete" index="2"]
text = "EDITOR_MAIN_LEVEL_DELETE"

[node name="DeleteConfirm" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer" instance=ExtResource("19_hvf3u")]
visible = false
layout_mode = 2
focus_neighbor_left = NodePath("../Edit")
focus_previous = NodePath("../Edit")

[node name="Button" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm" index="0"]
theme_override_styles/pressed = SubResource("StyleBoxTexture_paqvc")
theme_override_styles/focus = SubResource("StyleBoxTexture_paqvc")

[node name="Icon" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm" index="1"]
texture = SubResource("AtlasTexture_otk5o")

[node name="Label" parent="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm" index="2"]
text = "EDITOR_MAIN_LEVEL_CONFIRM"

[node name="LSSBrowser" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("21_obbrw")

[node name="VBoxContainer" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
layout_mode = 2
theme_override_constants/separation = 0

[node name="RefreshList" parent="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer" instance=ExtResource("12_psbt7")]
unique_name_in_owner = true
layout_mode = 2
text = "EDITOR_MAIN_REFRESH"

[node name="SelectableOptionLabel" parent="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer" instance=ExtResource("22_13and")]
layout_mode = 2
title = "EDITOR_LSS_SORT"
values = Array[String](["EDITOR_LSS_SORT_FEATURED", "EDITOR_LSS_SORT_RECENT", "EDITOR_LSS_SORT_DOWNLOADS", "EDITOR_LSS_SORT_RATING"])
add_colon = false

[node name="Order" parent="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer" instance=ExtResource("22_13and")]
layout_mode = 2
title = "EDITOR_LSS_ORDER"
values = Array[String](["EDITOR_LSS_ORDER_ASC", "EDITOR_LSS_ORDER_DEC"])
add_colon = false

[node name="Page" parent="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer" instance=ExtResource("22_13and")]
unique_name_in_owner = true
layout_mode = 2
title = "Page"
values = Array[String](["1"])

[node name="HTTPRequest" type="HTTPRequest" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]

[node name="HSeparator" type="HSeparator" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
layout_mode = 2
theme_override_styles/separator = SubResource("StyleBoxLine_obbrw")

[node name="LoadingMSG" type="Label" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 6
text = "Grabbing levels..."
horizontal_alignment = 1
uppercase = true

[node name="OverloadMSG" type="Label" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 6
text = "Too many requests! Hang on a sec!"
horizontal_alignment = 1
autowrap_mode = 2
uppercase = true

[node name="ErrorMSG" type="Label" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 6
text = "Error getting levels! is LSS or your internet connection down?"
horizontal_alignment = 1
autowrap_mode = 2
uppercase = true

[node name="ScrollContainer" type="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
layout_mode = 2
size_flags_vertical = 3
follow_focus = true
horizontal_scroll_mode = 0

[node name="MarginContainer" type="MarginContainer" parent="BG/Border/Levels/VBoxContainer/LSSBrowser/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 4

[node name="OnlineLevelList" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer/LSSBrowser/ScrollContainer/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="HSeparator2" type="HSeparator" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
layout_mode = 2
theme_override_styles/separator = SubResource("StyleBoxLine_obbrw")

[node name="Sprite2D" type="Sprite2D" parent="BG/Border/Levels/VBoxContainer/LSSBrowser"]
visible = false
position = Vector2(171.2, 33)
texture = ExtResource("23_8jgx6")

[node name="LSSLevelInfo" type="VBoxContainer" parent="BG/Border/Levels/VBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
theme_override_constants/separation = 4
script = ExtResource("23_u8fen")

[node name="SelectedOnlineLevel" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo" instance=ExtResource("26_r5ajm")]
unique_name_in_owner = true
layout_mode = 2
focus_mode = 0

[node name="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/SelectedOnlineLevel/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo" index="0"]
scroll_horizontal = 9
is_active = true
auto_connect_focus = false

[node name="ScrollContainer2" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/SelectedOnlineLevel/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo" index="1"]
scroll_horizontal = 41
is_active = true
auto_connect_focus = false

[node name="Panel" type="PanelContainer" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
theme_override_styles/panel = ExtResource("8_psbt7")

[node name="AutoScrollContainer" type="ScrollContainer" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/Panel"]
layout_mode = 2
mouse_filter = 0
scroll_vertical = 49
horizontal_scroll_mode = 3
script = ExtResource("24_wf6nb")
direction = 1
is_active = true
auto_connect_focus = false
metadata/_custom_type_script = "uid://d63p6qr5a748"

[node name="LSSDescription" type="Label" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/Panel/AutoScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "this is text, isnt it so cool. WOWOWOWOWOWW"
autowrap_mode = 2
uppercase = true

[node name="HBoxContainer" type="HBoxContainer" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo"]
layout_mode = 2
alignment = 1

[node name="Download" type="Button" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("8_psbt7")
theme_override_styles/pressed = ExtResource("9_61olo")
theme_override_styles/hover = ExtResource("9_61olo")
theme_override_styles/focus = ExtResource("9_61olo")
text = "EDITOR_LSS_DOWNLOAD"

[node name="OnlinePlay" type="Button" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/HBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("8_psbt7")
theme_override_styles/pressed = ExtResource("9_61olo")
theme_override_styles/hover = ExtResource("9_61olo")
theme_override_styles/focus = ExtResource("9_61olo")
text = "PLAY"

[node name="ViewOnLSS" type="Button" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("8_psbt7")
theme_override_styles/pressed = ExtResource("9_61olo")
theme_override_styles/hover = ExtResource("9_61olo")
theme_override_styles/focus = ExtResource("9_61olo")
text = "EDITOR_LSS_OPEN_PAGE"

[node name="Description" type="HTTPRequest" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo"]

[node name="DownloadLevel" type="HTTPRequest" parent="BG/Border/Levels/VBoxContainer/LSSLevelInfo"]

[node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
script = ExtResource("21_hpawg")
labels = [NodePath("../BG/Border/Levels/VBoxContainer/Title"), NodePath("../BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/ScrollContainer/LevelName"), NodePath("../BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/Container/Label"), NodePath("../BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel"), NodePath("../BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel2"), NodePath("../BG/Border/Levels/VBoxContainer/LevelList/HBoxContainer/MarginContainer/ScrollContainer/MarginContainer/LevelContainers/Label"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/SelectedLevel/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/ScrollContainer/LevelName"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/SelectedLevel/MarginContainer/HBoxContainer/HSplitContainer/LeftHalf/LevelInfo/ScrollContainer2/LevelAuthor"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/Panel/AutoScrollContainer/Description"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Play/Label"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit/Label"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete/Label"), NodePath("../BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm/Label"), NodePath("../BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel3"), NodePath("../BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer/RefreshList"), NodePath("../BG/Border/Levels/VBoxContainer/LSSBrowser/LoadingMSG"), NodePath("../BG/Border/Levels/VBoxContainer/LSSBrowser/OverloadMSG"), null]
metadata/_custom_type_script = "uid://co6tjg3w6qpd8"

[node name="BGM" type="AudioStreamPlayer" parent="."]
stream = ExtResource("23_22hnx")
autoplay = true
bus = &"Music"

[node name="ResourceSetter" type="Node" parent="BGM" node_paths=PackedStringArray("node_to_affect")]
script = ExtResource("29_ruj08")
node_to_affect = NodePath("..")
property_name = "stream"
themed_resource = SubResource("Resource_qigcv")
metadata/_custom_type_script = "uid://cq6f682453q6o"

[node name="CharacterSelect" parent="." instance=ExtResource("28_u8fen")]
visible = false
offset_left = -76.0
offset_right = 76.0
focus_mode = 2

[connection signal="closed" from="BG/Border/Levels/VBoxContainer/LevelList" to="." method="back_to_title_screen"]
[connection signal="level_selected" from="BG/Border/Levels/VBoxContainer/LevelList" to="BG/Border/Levels/VBoxContainer/LevelInfo" method="open"]
[connection signal="level_selected" from="BG/Border/Levels/VBoxContainer/LevelList" to="BG/Border/Levels/VBoxContainer/LevelList" method="close" unbinds=1]
[connection signal="focus_entered" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button" to="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/TextureRect" method="show"]
[connection signal="focus_exited" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button" to="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button/TextureRect" method="hide"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button" to="." method="new_level"]
[connection signal="ready" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button" to="BG/Border/Levels/VBoxContainer/LevelList/TopBit/Button" method="grab_focus"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel" to="BG/Border/Levels/VBoxContainer/LevelList" method="open_folder"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel2" to="BG/Border/Levels/VBoxContainer/LevelList" method="refresh"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel3" to="BG/Border/Levels/VBoxContainer/LevelList" method="close"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelList/TopBit/MarginContainer/VBoxContainer2/SelectableLabel3" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="open" binds= [true]]
[connection signal="closed" from="BG/Border/Levels/VBoxContainer/LevelInfo" to="BG/Border/Levels/VBoxContainer/LevelList" method="open" binds= [false]]
[connection signal="level_edit" from="BG/Border/Levels/VBoxContainer/LevelInfo" to="." method="edit_level"]
[connection signal="level_play" from="BG/Border/Levels/VBoxContainer/LevelInfo" to="." method="play_level"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Play/Button" to="BG/Border/Levels/VBoxContainer/LevelInfo" method="level_selected"]
[connection signal="focus_entered" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit" to="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete" method="show"]
[connection signal="focus_entered" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit" to="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm" method="hide"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit/Button" to="BG/Border/Levels/VBoxContainer/LevelInfo" method="level_edited"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete/Button" to="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete" method="hide"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete/Button" to="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm" method="grab_focus"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm/Button" to="." method="delete_level"]
[connection signal="closed" from="BG/Border/Levels/VBoxContainer/LSSBrowser" to="BG/Border/Levels/VBoxContainer/LevelList" method="open" binds= [false]]
[connection signal="level_selected" from="BG/Border/Levels/VBoxContainer/LSSBrowser" to="BG/Border/Levels/VBoxContainer/LSSLevelInfo" method="open"]
[connection signal="level_selected" from="BG/Border/Levels/VBoxContainer/LSSBrowser" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="close" unbinds=1]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer/RefreshList" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="grab_levels"]
[connection signal="value_changed" from="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer/SelectableOptionLabel" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="set_filter"]
[connection signal="value_changed" from="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer/Order" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="set_order"]
[connection signal="value_changed" from="BG/Border/Levels/VBoxContainer/LSSBrowser/VBoxContainer/Page" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="set_page"]
[connection signal="request_completed" from="BG/Border/Levels/VBoxContainer/LSSBrowser/HTTPRequest" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="level_list_retrieved"]
[connection signal="tree_exiting" from="BG/Border/Levels/VBoxContainer/LSSBrowser/HTTPRequest" to="BG/Border/Levels/VBoxContainer/LSSBrowser/HTTPRequest" method="cancel_request"]
[connection signal="closed" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo" to="BG/Border/Levels/VBoxContainer/LSSBrowser" method="open" binds= [false]]
[connection signal="level_play" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo" to="." method="play_level"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo/HBoxContainer/Download" to="BG/Border/Levels/VBoxContainer/LSSLevelInfo" method="download_level"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo/HBoxContainer/OnlinePlay" to="BG/Border/Levels/VBoxContainer/LSSLevelInfo" method="play_level"]
[connection signal="pressed" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo/HBoxContainer/ViewOnLSS" to="BG/Border/Levels/VBoxContainer/LSSLevelInfo" method="open_lss"]
[connection signal="request_completed" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo/Description" to="BG/Border/Levels/VBoxContainer/LSSLevelInfo" method="on_request_completed"]
[connection signal="request_completed" from="BG/Border/Levels/VBoxContainer/LSSLevelInfo/DownloadLevel" to="BG/Border/Levels/VBoxContainer/LSSLevelInfo" method="level_downloaded"]
[connection signal="sprites_updated" from="BGM/ResourceSetter" to="BGM" method="play"]
[connection signal="cancelled" from="CharacterSelect" to="BG/Border/Levels/VBoxContainer/LevelInfo" method="reopen"]

[editable path="BG/Border/Levels/VBoxContainer/LevelInfo/SelectedLevel"]
[editable path="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Play"]
[editable path="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Edit"]
[editable path="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/Delete"]
[editable path="BG/Border/Levels/VBoxContainer/LevelInfo/HBoxContainer/DeleteConfirm"]
[editable path="BG/Border/Levels/VBoxContainer/LSSLevelInfo/SelectedOnlineLevel"]
