EditorKeybindsView.tscn 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. [gd_scene load_steps=6 format=3 uid="uid://d25r3nxm3p463"]
  2. [ext_resource type="Script" uid="uid://d1gpliy41d31n" path="res://Scripts/UI/EditorPopupMenu.gd" id="1_crqcj"]
  3. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="1_do11r"]
  4. [ext_resource type="PackedScene" uid="uid://dipo5e7fk3avd" path="res://Scenes/Prefabs/UI/LevelEditorKeybind.tscn" id="2_kaxuh"]
  5. [ext_resource type="Texture2D" uid="uid://bnhrmah4dk5xm" path="res://Assets/Sprites/UI/EditorKeybinds.png" id="3_kaxuh"]
  6. [sub_resource type="StyleBoxLine" id="StyleBoxLine_crqcj"]
  7. color = Color(1, 1, 1, 1)
  8. [node name="EditorKeybindsView" type="Control"]
  9. layout_mode = 3
  10. anchors_preset = 15
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. grow_horizontal = 2
  14. grow_vertical = 2
  15. script = ExtResource("1_crqcj")
  16. [node name="BG" type="ColorRect" parent="."]
  17. layout_mode = 1
  18. anchors_preset = 15
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23. color = Color(0, 0, 0, 0.25)
  24. [node name="Panel" type="PanelContainer" parent="."]
  25. layout_mode = 1
  26. anchors_preset = 8
  27. anchor_left = 0.5
  28. anchor_top = 0.5
  29. anchor_right = 0.5
  30. anchor_bottom = 0.5
  31. offset_left = -98.0
  32. offset_top = -84.0
  33. offset_right = 98.0
  34. offset_bottom = 84.0
  35. grow_horizontal = 2
  36. grow_vertical = 2
  37. theme_override_styles/panel = ExtResource("1_do11r")
  38. [node name="MarginContainer" type="MarginContainer" parent="Panel"]
  39. layout_mode = 2
  40. [node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
  41. layout_mode = 2
  42. theme_override_constants/separation = 4
  43. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
  44. layout_mode = 2
  45. size_flags_horizontal = 4
  46. text = "KEYBINDS"
  47. [node name="HSeparator" type="HSeparator" parent="Panel/MarginContainer/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_crqcj")
  57. [node name="ScrollContainer" type="ScrollContainer" parent="Panel/MarginContainer/VBoxContainer"]
  58. layout_mode = 2
  59. size_flags_vertical = 3
  60. [node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  61. layout_mode = 2
  62. size_flags_horizontal = 3
  63. size_flags_vertical = 3
  64. [node name="Layers" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  65. custom_minimum_size = Vector2(0, 24)
  66. layout_mode = 2
  67. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Layers"]
  68. custom_minimum_size = Vector2(64, 0)
  69. layout_mode = 2
  70. [node name="LevelEditorKeybind" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Layers/ButtonIcons" instance=ExtResource("2_kaxuh")]
  71. position = Vector2(4, 0)
  72. hframes = 1
  73. vframes = 2
  74. region_rect = Rect2(0, 46, 21, 46)
  75. [node name="LevelEditorKeybind2" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Layers/ButtonIcons" instance=ExtResource("2_kaxuh")]
  76. position = Vector2(36, 0)
  77. hframes = 1
  78. vframes = 2
  79. region_rect = Rect2(21, 46, 21, 46)
  80. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Layers"]
  81. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  82. layout_mode = 2
  83. text = "Layers"
  84. uppercase = true
  85. [node name="MovePlayer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  86. custom_minimum_size = Vector2(0, 24)
  87. layout_mode = 2
  88. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/MovePlayer"]
  89. custom_minimum_size = Vector2(64, 0)
  90. layout_mode = 2
  91. [node name="LevelEditorKeybind" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/MovePlayer/ButtonIcons" instance=ExtResource("2_kaxuh")]
  92. [node name="LevelEditorKeybind2" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/MovePlayer/ButtonIcons" instance=ExtResource("2_kaxuh")]
  93. position = Vector2(43, 0)
  94. region_rect = Rect2(60, 92, 30, 23)
  95. [node name="Sprite2D" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/MovePlayer/ButtonIcons"]
  96. position = Vector2(36, 11)
  97. texture = ExtResource("3_kaxuh")
  98. region_enabled = true
  99. region_rect = Rect2(90, 92, 10, 11)
  100. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/MovePlayer"]
  101. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  102. layout_mode = 2
  103. text = "Move Player"
  104. uppercase = true
  105. [node name="PickBlock" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  106. custom_minimum_size = Vector2(0, 24)
  107. layout_mode = 2
  108. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PickBlock"]
  109. custom_minimum_size = Vector2(64, 0)
  110. layout_mode = 2
  111. [node name="LevelEditorKeybind2" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PickBlock/ButtonIcons" instance=ExtResource("2_kaxuh")]
  112. position = Vector2(22, 0)
  113. region_rect = Rect2(60, 92, 30, 23)
  114. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PickBlock"]
  115. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  116. layout_mode = 2
  117. text = "PICK TILE"
  118. uppercase = true
  119. [node name="TestLevel" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  120. custom_minimum_size = Vector2(0, 24)
  121. layout_mode = 2
  122. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/TestLevel"]
  123. custom_minimum_size = Vector2(64, 0)
  124. layout_mode = 2
  125. [node name="LevelEditorKeybind" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/TestLevel/ButtonIcons" instance=ExtResource("2_kaxuh")]
  126. position = Vector2(16, 0)
  127. region_rect = Rect2(58, 0, 58, 23)
  128. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/TestLevel"]
  129. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  130. layout_mode = 2
  131. text = "Test Level"
  132. uppercase = true
  133. [node name="InspectTile" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  134. custom_minimum_size = Vector2(0, 24)
  135. layout_mode = 2
  136. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/InspectTile"]
  137. custom_minimum_size = Vector2(64, 0)
  138. layout_mode = 2
  139. [node name="LevelEditorKeybind" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/InspectTile/ButtonIcons" instance=ExtResource("2_kaxuh")]
  140. [node name="LevelEditorKeybind2" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/InspectTile/ButtonIcons" instance=ExtResource("2_kaxuh")]
  141. position = Vector2(43, 0)
  142. region_rect = Rect2(0, 92, 30, 23)
  143. [node name="Sprite2D" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/InspectTile/ButtonIcons"]
  144. position = Vector2(36, 11)
  145. texture = ExtResource("3_kaxuh")
  146. region_enabled = true
  147. region_rect = Rect2(90, 92, 10, 11)
  148. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/InspectTile"]
  149. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  150. layout_mode = 2
  151. text = "Inspect tile"
  152. uppercase = true
  153. [node name="PlaceArea" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  154. custom_minimum_size = Vector2(0, 24)
  155. layout_mode = 2
  156. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea"]
  157. custom_minimum_size = Vector2(64, 0)
  158. layout_mode = 2
  159. [node name="LevelEditorKeybind" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea/ButtonIcons" instance=ExtResource("2_kaxuh")]
  160. position = Vector2(2, 0)
  161. region_rect = Rect2(0, 23, 50, 23)
  162. [node name="LevelEditorKeybind2" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea/ButtonIcons" instance=ExtResource("2_kaxuh")]
  163. position = Vector2(44, 0)
  164. region_rect = Rect2(0, 92, 30, 23)
  165. [node name="Sprite2D" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea/ButtonIcons"]
  166. position = Vector2(36, 11)
  167. texture = ExtResource("3_kaxuh")
  168. region_enabled = true
  169. region_rect = Rect2(90, 92, 10, 11)
  170. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea"]
  171. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  172. layout_mode = 2
  173. size_flags_horizontal = 3
  174. text = "PLACE / REMOVE AREA"
  175. autowrap_mode = 2
  176. uppercase = true
  177. [node name="PlaceArea2" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
  178. custom_minimum_size = Vector2(0, 24)
  179. layout_mode = 2
  180. [node name="ButtonIcons" type="Control" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea2"]
  181. custom_minimum_size = Vector2(64, 0)
  182. layout_mode = 2
  183. [node name="LevelEditorKeybind2" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea2/ButtonIcons" instance=ExtResource("2_kaxuh")]
  184. position = Vector2(5, 0)
  185. region_rect = Rect2(50, 23, 30, 23)
  186. [node name="LevelEditorKeybind3" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea2/ButtonIcons" instance=ExtResource("2_kaxuh")]
  187. position = Vector2(42, 0)
  188. region_rect = Rect2(80, 23, 30, 23)
  189. [node name="Sprite2D" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea2/ButtonIcons"]
  190. position = Vector2(31, 11)
  191. texture = ExtResource("3_kaxuh")
  192. region_enabled = true
  193. region_rect = Rect2(102, 97, 12, 18)
  194. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/PlaceArea2"]
  195. modulate = Color(0.29219002, 0.29219005, 0.29219002, 1)
  196. layout_mode = 2
  197. size_flags_horizontal = 3
  198. text = "CHANGE TILE"
  199. autowrap_mode = 2
  200. uppercase = true