Files
Super-Mario-Bros.-Remastere…/Scenes/Prefabs/UI/LevelSelect.tscn
2025-09-25 22:54:23 +01:00

106 lines
3.6 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://d1kedqb68p7vw"]
[ext_resource type="Script" uid="uid://bupc8brk48aqi" path="res://Scripts/UI/LevelSelect.gd" id="1_mvafj"]
[ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="2_k7cgt"]
[ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="3_a7p1d"]
[sub_resource type="StyleBoxLine" id="StyleBoxLine_k7cgt"]
color = Color(1, 1, 1, 1)
[node name="WorldSelect" type="Control"]
layout_mode = 3
anchors_preset = 0
offset_right = 128.0
offset_bottom = 48.0
script = ExtResource("1_mvafj")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = ExtResource("2_k7cgt")
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
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="PanelContainer/MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "MENU_LEVEL_SELECT"
horizontal_alignment = 1
uppercase = true
[node name="HSeparator" type="HSeparator" parent="PanelContainer/MarginContainer/VBoxContainer/Label"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -4.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/separator = SubResource("StyleBoxLine_k7cgt")
[node name="SlotContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
[node name="Level1" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 0
text = "1"
uppercase = true
[node name="Level2" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 0
text = "2"
uppercase = true
[node name="Level3" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 0
text = "3"
uppercase = true
[node name="Level4" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 0
text = "4"
uppercase = true
[node name="Control" type="Control" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="Cursor" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/Control"]
unique_name_in_owner = true
layout_mode = 0
offset_top = -8.0
offset_right = 144.0
offset_bottom = 8.0
text = "^"
uppercase = true
[node name="LabelFontChanger" type="Node" parent="PanelContainer" node_paths=PackedStringArray("labels")]
script = ExtResource("3_a7p1d")
labels = [NodePath("../MarginContainer/VBoxContainer/Label"), NodePath("../MarginContainer/VBoxContainer/SlotContainer/Level1"), NodePath("../MarginContainer/VBoxContainer/SlotContainer/Level2"), NodePath("../MarginContainer/VBoxContainer/SlotContainer/Level3"), NodePath("../MarginContainer/VBoxContainer/SlotContainer/Level4"), NodePath("../MarginContainer/VBoxContainer/Control/Cursor")]
metadata/_custom_type_script = "uid://co6tjg3w6qpd8"