mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +00:00
added the game
This commit is contained in:
107
Scenes/Prefabs/UI/LevelSelect.tscn
Normal file
107
Scenes/Prefabs/UI/LevelSelect.tscn
Normal file
@@ -0,0 +1,107 @@
|
||||
[gd_scene load_steps=6 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"]
|
||||
[ext_resource type="Resource" uid="uid://8dcuxbc3h2u2" path="res://Resources/ThemedResources/Font.tres" id="4_r15fi"]
|
||||
|
||||
[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")]
|
||||
resource = ExtResource("4_r15fi")
|
||||
metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
|
||||
Reference in New Issue
Block a user