Public repository for MUR pre alpha
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

279 lines
8.2 KiB

  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
  3. [ext_resource path="res://scripts/menus/settings_menu.gd" type="Script" id=2]
  4. [ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://scenes/menus/SettingsControlsMenu.tscn" type="PackedScene" id=5]
  7. [ext_resource path="res://assets/icons/checkmark.png" type="Texture" id=6]
  8. [ext_resource path="res://assets/icons/save.png" type="Texture" id=7]
  9. [node name="settings_menu" type="Control"]
  10. anchor_right = 1.0
  11. anchor_bottom = 1.0
  12. margin_left = 1.45612
  13. margin_top = 1.45612
  14. margin_right = 1.45605
  15. margin_bottom = 1.45612
  16. theme = ExtResource( 1 )
  17. script = ExtResource( 2 )
  18. [node name="menu" parent="." instance=ExtResource( 3 )]
  19. [node name="back" parent="menu" index="0"]
  20. focus_neighbour_top = NodePath("../tabs/game")
  21. focus_neighbour_right = NodePath("../HBoxContainer/apply")
  22. [node name="tabs" type="TabContainer" parent="menu"]
  23. anchor_left = 0.5
  24. anchor_top = 0.5
  25. anchor_right = 0.5
  26. anchor_bottom = 0.5
  27. margin_left = -464.5
  28. margin_top = -223.5
  29. margin_right = 459.5
  30. margin_bottom = 177.5
  31. grow_horizontal = 2
  32. grow_vertical = 2
  33. focus_mode = 2
  34. size_flags_horizontal = 3
  35. size_flags_vertical = 3
  36. tab_align = 0
  37. [node name="game" type="Tabs" parent="menu/tabs"]
  38. editor/display_folded = true
  39. anchor_right = 1.0
  40. anchor_bottom = 1.0
  41. margin_left = 4.0
  42. margin_top = 45.0
  43. margin_right = -4.0
  44. margin_bottom = -4.0
  45. focus_neighbour_right = NodePath("../controls")
  46. focus_neighbour_bottom = NodePath("GridContainer/settings_player/VBoxContainer/name")
  47. focus_mode = 2
  48. [node name="GridContainer" type="GridContainer" parent="menu/tabs/game"]
  49. margin_left = 9.0
  50. margin_top = 10.0
  51. margin_right = 416.0
  52. margin_bottom = 200.0
  53. [node name="settings_player" parent="menu/tabs/game/GridContainer" instance=ExtResource( 4 )]
  54. margin_left = 0.0
  55. margin_top = 0.0
  56. margin_right = 407.0
  57. margin_bottom = 146.0
  58. [node name="name_label" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="0"]
  59. margin_right = 407.0
  60. margin_bottom = 27.0
  61. [node name="name" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="1"]
  62. margin_top = 31.0
  63. margin_right = 407.0
  64. margin_bottom = 68.0
  65. focus_neighbour_top = NodePath("../../../..")
  66. focus_neighbour_bottom = NodePath("../color")
  67. [node name="color_label" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="2"]
  68. margin_top = 72.0
  69. margin_right = 407.0
  70. margin_bottom = 99.0
  71. [node name="color" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="3"]
  72. margin_top = 103.0
  73. margin_right = 407.0
  74. margin_bottom = 136.0
  75. focus_neighbour_top = NodePath("../name")
  76. focus_neighbour_bottom = NodePath("../../../bots")
  77. [node name="bots" type="CheckButton" parent="menu/tabs/game/GridContainer"]
  78. margin_top = 150.0
  79. margin_right = 143.0
  80. margin_bottom = 190.0
  81. focus_neighbour_top = NodePath("../settings_player/VBoxContainer/color")
  82. focus_neighbour_bottom = NodePath("../../../../HBoxContainer/apply")
  83. size_flags_horizontal = 0
  84. size_flags_vertical = 0
  85. text = "Bots"
  86. [node name="controls" type="Tabs" parent="menu/tabs"]
  87. editor/display_folded = true
  88. visible = false
  89. anchor_right = 1.0
  90. anchor_bottom = 1.0
  91. margin_left = 4.0
  92. margin_top = 45.0
  93. margin_right = -4.0
  94. margin_bottom = -4.0
  95. focus_neighbour_left = NodePath("../game")
  96. focus_neighbour_right = NodePath("../graphics")
  97. focus_mode = 2
  98. [node name="settings_controls" parent="menu/tabs/controls" instance=ExtResource( 5 )]
  99. [node name="empty" parent="menu/tabs/controls/settings_controls/ScrollContainer/grid" index="0"]
  100. margin_bottom = 27.0
  101. [node name="keyboard_label" parent="menu/tabs/controls/settings_controls/ScrollContainer/grid" index="1"]
  102. margin_bottom = 27.0
  103. [node name="joypad_label" parent="menu/tabs/controls/settings_controls/ScrollContainer/grid" index="2"]
  104. margin_bottom = 27.0
  105. [node name="action_button" parent="menu/tabs/controls/settings_controls/key_dialog" index="3"]
  106. margin_right = 302.0
  107. margin_bottom = 110.0
  108. [node name="graphics" type="Tabs" parent="menu/tabs"]
  109. visible = false
  110. anchor_right = 1.0
  111. anchor_bottom = 1.0
  112. margin_left = 4.0
  113. margin_top = 45.0
  114. margin_right = -4.0
  115. margin_bottom = -4.0
  116. focus_neighbour_left = NodePath("../controls")
  117. focus_neighbour_right = NodePath("../system")
  118. focus_mode = 2
  119. [node name="VBoxContainer" type="VBoxContainer" parent="menu/tabs/graphics"]
  120. margin_right = 40.0
  121. margin_bottom = 40.0
  122. [node name="resolution" type="OptionButton" parent="menu/tabs/graphics/VBoxContainer"]
  123. margin_right = 248.0
  124. margin_bottom = 33.0
  125. [node name="fullscreen" type="CheckButton" parent="menu/tabs/graphics/VBoxContainer"]
  126. margin_top = 37.0
  127. margin_right = 248.0
  128. margin_bottom = 77.0
  129. pressed = true
  130. text = "FULLSCREEN"
  131. [node name="light" type="CheckButton" parent="menu/tabs/graphics/VBoxContainer"]
  132. margin_top = 81.0
  133. margin_right = 248.0
  134. margin_bottom = 121.0
  135. text = "LIGHT"
  136. [node name="shadows" type="CheckButton" parent="menu/tabs/graphics/VBoxContainer"]
  137. margin_top = 125.0
  138. margin_right = 248.0
  139. margin_bottom = 165.0
  140. disabled = true
  141. text = "SHADOWS"
  142. [node name="system" type="Tabs" parent="menu/tabs"]
  143. editor/display_folded = true
  144. visible = false
  145. anchor_right = 1.0
  146. anchor_bottom = 1.0
  147. margin_left = 4.0
  148. margin_top = 45.0
  149. margin_right = -4.0
  150. margin_bottom = -4.0
  151. focus_neighbour_left = NodePath("../graphics")
  152. focus_mode = 2
  153. [node name="GridContainer" type="GridContainer" parent="menu/tabs/system"]
  154. margin_left = 12.0
  155. margin_top = 8.0
  156. margin_right = 907.0
  157. margin_bottom = 124.0
  158. columns = 2
  159. [node name="locale_label" type="Label" parent="menu/tabs/system/GridContainer"]
  160. margin_right = 88.0
  161. margin_bottom = 14.0
  162. text = "LOCALE"
  163. valign = 1
  164. [node name="locales" type="ItemList" parent="menu/tabs/system/GridContainer"]
  165. margin_left = 92.0
  166. margin_right = 895.0
  167. margin_bottom = 14.0
  168. size_flags_horizontal = 3
  169. auto_height = true
  170. [node name="server_addr_label" type="Label" parent="menu/tabs/system/GridContainer"]
  171. margin_top = 23.0
  172. margin_right = 88.0
  173. margin_bottom = 37.0
  174. text = "SERVER_ADDR"
  175. valign = 1
  176. [node name="server_addr" type="LineEdit" parent="menu/tabs/system/GridContainer"]
  177. margin_left = 92.0
  178. margin_top = 18.0
  179. margin_right = 895.0
  180. margin_bottom = 42.0
  181. [node name="api_addr_label" type="Label" parent="menu/tabs/system/GridContainer"]
  182. margin_top = 51.0
  183. margin_right = 88.0
  184. margin_bottom = 65.0
  185. text = "API_ADDR"
  186. valign = 1
  187. [node name="api_addr" type="LineEdit" parent="menu/tabs/system/GridContainer"]
  188. margin_left = 92.0
  189. margin_top = 46.0
  190. margin_right = 895.0
  191. margin_bottom = 70.0
  192. [node name="HBoxContainer" type="HBoxContainer" parent="menu"]
  193. editor/display_folded = true
  194. anchor_left = 1.0
  195. anchor_top = 1.0
  196. anchor_right = 1.0
  197. anchor_bottom = 1.0
  198. margin_left = -286.0
  199. margin_top = -56.0
  200. grow_horizontal = 0
  201. grow_vertical = 0
  202. size_flags_horizontal = 8
  203. size_flags_vertical = 8
  204. alignment = 2
  205. [node name="apply" type="Button" parent="menu/HBoxContainer"]
  206. margin_right = 150.0
  207. margin_bottom = 56.0
  208. grow_horizontal = 0
  209. grow_vertical = 0
  210. focus_neighbour_left = NodePath("../../back")
  211. focus_neighbour_top = NodePath("../../tabs/game")
  212. focus_neighbour_right = NodePath("../save")
  213. size_flags_horizontal = 10
  214. size_flags_vertical = 10
  215. text = "APPLY"
  216. icon = ExtResource( 6 )
  217. flat = true
  218. align = 0
  219. [node name="save" type="Button" parent="menu/HBoxContainer"]
  220. margin_left = 154.0
  221. margin_right = 286.0
  222. margin_bottom = 56.0
  223. grow_horizontal = 0
  224. grow_vertical = 0
  225. focus_neighbour_left = NodePath("../apply")
  226. focus_neighbour_top = NodePath("../../tabs/game")
  227. size_flags_horizontal = 10
  228. size_flags_vertical = 10
  229. text = "SAVE"
  230. icon = ExtResource( 7 )
  231. flat = true
  232. align = 0
  233. [connection signal="toggled" from="menu/tabs/graphics/VBoxContainer/light" to="." method="_on_light_toggled"]
  234. [connection signal="item_selected" from="menu/tabs/system/GridContainer/locales" to="." method="_on_locales_item_selected"]
  235. [connection signal="tree_exiting" from="menu/tabs/system/GridContainer/locales" to="." method="_on_locales_tree_exiting"]
  236. [connection signal="pressed" from="menu/HBoxContainer/apply" to="." method="_on_apply_pressed"]
  237. [connection signal="pressed" from="menu/HBoxContainer/save" to="." method="_on_save_pressed"]
  238. [editable path="menu"]
  239. [editable path="menu/tabs/game/GridContainer/settings_player"]
  240. [editable path="menu/tabs/controls/settings_controls"]