LevelSelect.tscn 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. [gd_scene load_steps=6 format=3 uid="uid://d1kedqb68p7vw"]
  2. [ext_resource type="Script" uid="uid://bupc8brk48aqi" path="res://Scripts/UI/LevelSelect.gd" id="1_mvafj"]
  3. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="2_k7cgt"]
  4. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="3_a7p1d"]
  5. [ext_resource type="Resource" uid="uid://8dcuxbc3h2u2" path="res://Resources/ThemedResources/Font.tres" id="4_r15fi"]
  6. [sub_resource type="StyleBoxLine" id="StyleBoxLine_k7cgt"]
  7. color = Color(1, 1, 1, 1)
  8. [node name="WorldSelect" type="Control"]
  9. layout_mode = 3
  10. anchors_preset = 0
  11. offset_right = 128.0
  12. offset_bottom = 48.0
  13. script = ExtResource("1_mvafj")
  14. [node name="PanelContainer" type="PanelContainer" parent="."]
  15. layout_mode = 1
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. grow_horizontal = 2
  20. grow_vertical = 2
  21. theme_override_styles/panel = ExtResource("2_k7cgt")
  22. [node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
  23. layout_mode = 2
  24. theme_override_constants/margin_left = -4
  25. theme_override_constants/margin_top = -4
  26. theme_override_constants/margin_right = -4
  27. theme_override_constants/margin_bottom = -4
  28. [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
  29. layout_mode = 2
  30. [node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
  31. layout_mode = 2
  32. size_flags_horizontal = 4
  33. text = "MENU_LEVEL_SELECT"
  34. horizontal_alignment = 1
  35. uppercase = true
  36. [node name="HSeparator" type="HSeparator" parent="PanelContainer/MarginContainer/VBoxContainer/Label"]
  37. layout_mode = 1
  38. anchors_preset = 12
  39. anchor_top = 1.0
  40. anchor_right = 1.0
  41. anchor_bottom = 1.0
  42. offset_top = -4.0
  43. grow_horizontal = 2
  44. grow_vertical = 0
  45. theme_override_styles/separator = SubResource("StyleBoxLine_k7cgt")
  46. [node name="SlotContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
  47. unique_name_in_owner = true
  48. layout_mode = 2
  49. [node name="Level1" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
  50. unique_name_in_owner = true
  51. layout_mode = 2
  52. size_flags_horizontal = 6
  53. size_flags_vertical = 0
  54. text = "1"
  55. uppercase = true
  56. [node name="Level2" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
  57. unique_name_in_owner = true
  58. layout_mode = 2
  59. size_flags_horizontal = 6
  60. size_flags_vertical = 0
  61. text = "2"
  62. uppercase = true
  63. [node name="Level3" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
  64. unique_name_in_owner = true
  65. layout_mode = 2
  66. size_flags_horizontal = 6
  67. size_flags_vertical = 0
  68. text = "3"
  69. uppercase = true
  70. [node name="Level4" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SlotContainer"]
  71. unique_name_in_owner = true
  72. layout_mode = 2
  73. size_flags_horizontal = 6
  74. size_flags_vertical = 0
  75. text = "4"
  76. uppercase = true
  77. [node name="Control" type="Control" parent="PanelContainer/MarginContainer/VBoxContainer"]
  78. layout_mode = 2
  79. [node name="Cursor" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/Control"]
  80. unique_name_in_owner = true
  81. layout_mode = 0
  82. offset_top = -8.0
  83. offset_right = 144.0
  84. offset_bottom = 8.0
  85. text = "^"
  86. uppercase = true
  87. [node name="LabelFontChanger" type="Node" parent="PanelContainer" node_paths=PackedStringArray("labels")]
  88. script = ExtResource("3_a7p1d")
  89. 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")]
  90. resource = ExtResource("4_r15fi")
  91. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"