BooSelect.tscn 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. [gd_scene load_steps=12 format=3 uid="uid://bxp1l23w1kq41"]
  2. [ext_resource type="Script" uid="uid://di5w6db0ha2oa" path="res://Scripts/UI/BooSelect.gd" id="1_teyj1"]
  3. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="2_teyj1"]
  4. [ext_resource type="Texture2D" uid="uid://dtemc0qgag20j" path="res://Assets/Sprites/UI/BooIcon.png" id="3_teyj1"]
  5. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="4_8f5ot"]
  6. [ext_resource type="Script" uid="uid://ca3bew33g45eq" path="res://Scripts/Classes/UI/PackTextureRect.gd" id="4_ykvrv"]
  7. [sub_resource type="StyleBoxLine" id="StyleBoxLine_k7cgt"]
  8. color = Color(1, 1, 1, 1)
  9. [sub_resource type="AtlasTexture" id="AtlasTexture_1vgde"]
  10. atlas = ExtResource("3_teyj1")
  11. region = Rect2(0, 0, 16, 16)
  12. [sub_resource type="AtlasTexture" id="AtlasTexture_8f5ot"]
  13. atlas = ExtResource("3_teyj1")
  14. region = Rect2(16, 0, 16, 16)
  15. [sub_resource type="AtlasTexture" id="AtlasTexture_ykvrv"]
  16. atlas = ExtResource("3_teyj1")
  17. region = Rect2(32, 0, 16, 16)
  18. [sub_resource type="AtlasTexture" id="AtlasTexture_1yet1"]
  19. atlas = ExtResource("3_teyj1")
  20. region = Rect2(48, 0, 16, 16)
  21. [sub_resource type="AtlasTexture" id="AtlasTexture_tbaqk"]
  22. atlas = ExtResource("3_teyj1")
  23. region = Rect2(64, 0, 16, 16)
  24. [node name="WorldSelect" type="Control"]
  25. layout_mode = 3
  26. anchors_preset = 0
  27. offset_right = 104.0
  28. offset_bottom = 56.0
  29. focus_mode = 2
  30. script = ExtResource("1_teyj1")
  31. [node name="PanelContainer" type="PanelContainer" parent="."]
  32. layout_mode = 1
  33. anchors_preset = 15
  34. anchor_right = 1.0
  35. anchor_bottom = 1.0
  36. grow_horizontal = 2
  37. grow_vertical = 2
  38. theme_override_styles/panel = ExtResource("2_teyj1")
  39. [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
  40. layout_mode = 2
  41. [node name="Label" type="Label" parent="PanelContainer/VBoxContainer"]
  42. layout_mode = 2
  43. size_flags_horizontal = 4
  44. text = "MENU_SELECT_BOO"
  45. horizontal_alignment = 1
  46. uppercase = true
  47. [node name="HSeparator" type="HSeparator" parent="PanelContainer/VBoxContainer/Label"]
  48. layout_mode = 1
  49. anchors_preset = 12
  50. anchor_top = 1.0
  51. anchor_right = 1.0
  52. anchor_bottom = 1.0
  53. offset_top = -4.0
  54. grow_horizontal = 2
  55. grow_vertical = 0
  56. theme_override_styles/separator = SubResource("StyleBoxLine_k7cgt")
  57. [node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
  58. layout_mode = 2
  59. size_flags_vertical = 3
  60. alignment = 1
  61. [node name="Boo1" type="TextureRect" parent="PanelContainer/VBoxContainer/HBoxContainer"]
  62. unique_name_in_owner = true
  63. layout_mode = 2
  64. size_flags_vertical = 0
  65. texture = SubResource("AtlasTexture_1vgde")
  66. stretch_mode = 3
  67. script = ExtResource("4_ykvrv")
  68. metadata/_custom_type_script = "uid://ca3bew33g45eq"
  69. [node name="Cursor" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer/Boo1"]
  70. layout_mode = 1
  71. anchors_preset = 7
  72. anchor_left = 0.5
  73. anchor_top = 1.0
  74. anchor_right = 0.5
  75. anchor_bottom = 1.0
  76. offset_left = -8.0
  77. offset_top = -16.0
  78. offset_right = 8.0
  79. offset_bottom = 12.0
  80. grow_horizontal = 2
  81. grow_vertical = 0
  82. text = "^"
  83. vertical_alignment = 2
  84. uppercase = true
  85. [node name="Boo2" type="TextureRect" parent="PanelContainer/VBoxContainer/HBoxContainer"]
  86. unique_name_in_owner = true
  87. layout_mode = 2
  88. size_flags_vertical = 0
  89. texture = SubResource("AtlasTexture_8f5ot")
  90. stretch_mode = 3
  91. script = ExtResource("4_ykvrv")
  92. metadata/_custom_type_script = "uid://ca3bew33g45eq"
  93. [node name="Cursor" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer/Boo2"]
  94. layout_mode = 1
  95. anchors_preset = 7
  96. anchor_left = 0.5
  97. anchor_top = 1.0
  98. anchor_right = 0.5
  99. anchor_bottom = 1.0
  100. offset_left = -8.0
  101. offset_top = -16.0
  102. offset_right = 8.0
  103. offset_bottom = 12.0
  104. grow_horizontal = 2
  105. grow_vertical = 0
  106. text = "^"
  107. vertical_alignment = 2
  108. uppercase = true
  109. [node name="Boo3" type="TextureRect" parent="PanelContainer/VBoxContainer/HBoxContainer"]
  110. unique_name_in_owner = true
  111. layout_mode = 2
  112. size_flags_vertical = 0
  113. texture = SubResource("AtlasTexture_ykvrv")
  114. stretch_mode = 3
  115. script = ExtResource("4_ykvrv")
  116. metadata/_custom_type_script = "uid://ca3bew33g45eq"
  117. [node name="Cursor" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer/Boo3"]
  118. layout_mode = 1
  119. anchors_preset = 7
  120. anchor_left = 0.5
  121. anchor_top = 1.0
  122. anchor_right = 0.5
  123. anchor_bottom = 1.0
  124. offset_left = -8.0
  125. offset_top = -16.0
  126. offset_right = 8.0
  127. offset_bottom = 12.0
  128. grow_horizontal = 2
  129. grow_vertical = 0
  130. text = "^"
  131. vertical_alignment = 2
  132. uppercase = true
  133. [node name="Boo4" type="TextureRect" parent="PanelContainer/VBoxContainer/HBoxContainer"]
  134. unique_name_in_owner = true
  135. layout_mode = 2
  136. size_flags_vertical = 0
  137. texture = SubResource("AtlasTexture_1yet1")
  138. stretch_mode = 3
  139. script = ExtResource("4_ykvrv")
  140. metadata/_custom_type_script = "uid://ca3bew33g45eq"
  141. [node name="Cursor" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer/Boo4"]
  142. layout_mode = 1
  143. anchors_preset = 7
  144. anchor_left = 0.5
  145. anchor_top = 1.0
  146. anchor_right = 0.5
  147. anchor_bottom = 1.0
  148. offset_left = -8.0
  149. offset_top = -16.0
  150. offset_right = 8.0
  151. offset_bottom = 12.0
  152. grow_horizontal = 2
  153. grow_vertical = 0
  154. text = "^"
  155. vertical_alignment = 2
  156. uppercase = true
  157. [node name="Boo5" type="TextureRect" parent="PanelContainer/VBoxContainer/HBoxContainer"]
  158. unique_name_in_owner = true
  159. layout_mode = 2
  160. size_flags_vertical = 0
  161. texture = SubResource("AtlasTexture_tbaqk")
  162. stretch_mode = 3
  163. script = ExtResource("4_ykvrv")
  164. metadata/_custom_type_script = "uid://ca3bew33g45eq"
  165. [node name="Cursor" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer/Boo5"]
  166. layout_mode = 1
  167. anchors_preset = 7
  168. anchor_left = 0.5
  169. anchor_top = 1.0
  170. anchor_right = 0.5
  171. anchor_bottom = 1.0
  172. offset_left = -8.0
  173. offset_top = -16.0
  174. offset_right = 8.0
  175. offset_bottom = 12.0
  176. grow_horizontal = 2
  177. grow_vertical = 0
  178. text = "^"
  179. vertical_alignment = 2
  180. uppercase = true
  181. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  182. script = ExtResource("4_8f5ot")
  183. labels = [NodePath("../PanelContainer/VBoxContainer/Label"), NodePath("../PanelContainer/VBoxContainer/HBoxContainer/Boo1/Cursor"), NodePath("../PanelContainer/VBoxContainer/HBoxContainer/Boo2/Cursor"), NodePath("../PanelContainer/VBoxContainer/HBoxContainer/Boo3/Cursor"), NodePath("../PanelContainer/VBoxContainer/HBoxContainer/Boo4/Cursor"), NodePath("../PanelContainer/VBoxContainer/HBoxContainer/Boo5/Cursor")]
  184. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"