meshRoadEditorToolbar.gui 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. $guiContent = new GuiControl(MeshRoadEditorToolbar,EditorGuiGroup) {
  2. canSaveDynamicFields = "0";
  3. internalName = "MeshRoadEditorToolbar";
  4. Enabled = "1";
  5. isContainer = "1";
  6. Profile = "ToolsGuiDefaultProfile";
  7. HorizSizing = "right";
  8. VertSizing = "bottom";
  9. Position = "306 0";
  10. Extent = "800 32";
  11. MinExtent = "8 2";
  12. canSave = "1";
  13. Visible = "1";
  14. hovertime = "1000";
  15. new GuiTextCtrl() {
  16. profile = "ToolsGuiTextProfile";
  17. horizSizing = "right";
  18. vertSizing = "bottom";
  19. position = "6 6";
  20. extent = "100 20";
  21. minExtent = "8 8";
  22. visible = "1";
  23. text = "Mesh Road Settings";
  24. maxLength = "255";
  25. helpTag = "0";
  26. };
  27. new GuiDynamicCtrlArrayControl(){
  28. Position = "116 3";
  29. extent = "146 32";
  30. colCount = "31";
  31. colSize = "29";
  32. rowCount = "1";
  33. RowSize = "27";
  34. rowSpacing = "2";
  35. colspacing = "4";
  36. new GuiBitmapButtonCtrl(MeshRoadEditorShowSplineBtn) {
  37. canSaveDynamicFields = "0";
  38. Enabled = "1";
  39. isContainer = "0";
  40. Profile = "ToolsGuiDefaultProfile";
  41. HorizSizing = "right";
  42. VertSizing = "bottom";
  43. Position = "167 3";
  44. Extent = "29 27";
  45. MinExtent = "8 2";
  46. canSave = "1";
  47. isDecoy = "0";
  48. Visible = "1";
  49. Variable = "$MeshRoad::showSpline";
  50. tooltipprofile = "ToolsGuiToolTipProfile";
  51. hovertime = "1000";
  52. toolTip = "Show Spline (Z)";
  53. bitmapAsset = "ToolsModule:show_spline_n_image";
  54. groupNum = "7";
  55. buttonType = "ToggleButton";
  56. useMouseEvents = "0";
  57. useInactiveState = "0";
  58. };
  59. new GuiBitmapButtonCtrl(MeshRoadEditorWireframeBtn) {
  60. canSaveDynamicFields = "0";
  61. Enabled = "1";
  62. isContainer = "0";
  63. Profile = "ToolsGuiDefaultProfile";
  64. HorizSizing = "right";
  65. VertSizing = "bottom";
  66. Position = "253 3";
  67. Extent = "29 27";
  68. MinExtent = "8 2";
  69. canSave = "1";
  70. isDecoy = "0";
  71. Visible = "1";
  72. Variable = "$MeshRoad::wireframe";
  73. tooltipprofile = "ToolsGuiToolTipProfile";
  74. hovertime = "1000";
  75. toolTip = "Show Wireframe (X)";
  76. bitmapAsset = "ToolsModule:menubar_show_wireframe_n_image";
  77. groupNum = "-1";
  78. buttonType = "ToggleButton";
  79. useMouseEvents = "0";
  80. useInactiveState = "0";
  81. };
  82. new GuiBitmapButtonCtrl(MeshRoadEditorShowRoadBtn) {
  83. canSaveDynamicFields = "0";
  84. Enabled = "1";
  85. isContainer = "0";
  86. Profile = "ToolsGuiButtonProfile";
  87. HorizSizing = "right";
  88. VertSizing = "bottom";
  89. Position = "89 3";
  90. Extent = "29 27";
  91. MinExtent = "8 2";
  92. canSave = "1";
  93. isDecoy = "0";
  94. Visible = "1";
  95. Variable = "$MeshRoad::showRoad";
  96. tooltipprofile = "ToolsGuiToolTipProfile";
  97. hovertime = "1000";
  98. toolTip = "Show Road Texture (V)";
  99. bitmapAsset = "ToolsModule:show_texture_n_image";
  100. groupNum = "-1";
  101. buttonType = "ToggleButton";
  102. useMouseEvents = "0";
  103. useInactiveState = "0";
  104. };
  105. new GuiBitmapButtonCtrl(MeshRoadEditorShowProfileBtn) {
  106. canSaveDynamicFields = "0";
  107. Enabled = "1";
  108. isContainer = "0";
  109. Profile = "GuiDefalutProfile";
  110. HorizSizing = "right";
  111. VertSizing = "bottom";
  112. Position = "89 3";
  113. Extent = "29 27";
  114. MinExtent = "8 2";
  115. canSave = "1";
  116. isDecoy = "0";
  117. Visible = "1";
  118. Variable = "$MeshRoad::showRoadProfile";
  119. tooltipprofile = "ToolsGuiToolTipProfile";
  120. hovertime = "1000";
  121. toolTip = "Show Road Profile (P)";
  122. bitmapAsset = "ToolsModule:show_profile_n_image";
  123. groupNum = "-1";
  124. buttonType = "ToggleButton";
  125. useMouseEvents = "0";
  126. useInactiveState = "0";
  127. };
  128. };
  129. new GuiControl(MeshRoadDefaultWidthTextEditContainer) {
  130. canSaveDynamicFields = "0";
  131. isContainer = "1";
  132. Profile = "ToolsGuiTransparentProfile";
  133. HorizSizing = "right";
  134. VertSizing = "bottom";
  135. position = "265 5";
  136. Extent = "120 50";
  137. MinExtent = "8 2";
  138. canSave = "1";
  139. Visible = "1";
  140. hovertime = "1000";
  141. new GuiTextCtrl() {
  142. canSaveDynamicFields = "0";
  143. Enabled = "1";
  144. isContainer = "0";
  145. Profile = "ToolsGuiTextProfile";
  146. HorizSizing = "right";
  147. VertSizing = "bottom";
  148. position = "0 6";
  149. Extent = "68 10";
  150. MinExtent = "8 2";
  151. canSave = "1";
  152. Visible = "1";
  153. hovertime = "1000";
  154. Margin = "0 0 0 0";
  155. Padding = "0 0 0 0";
  156. AnchorTop = "1";
  157. AnchorBottom = "0";
  158. AnchorLeft = "1";
  159. AnchorRight = "0";
  160. text = "Default Width";
  161. maxLength = "1024";
  162. };
  163. new GuiTextEditCtrl() {
  164. canSaveDynamicFields = "0";
  165. internalName = "textEdit";
  166. isContainer = "0";
  167. profile="ToolsGuiNumericDropSliderTextProfile";
  168. HorizSizing = "right";
  169. VertSizing = "bottom";
  170. position = "67 2";
  171. Extent = "42 16";
  172. MinExtent = "8 16";
  173. canSave = "1";
  174. Visible = "1";
  175. Command = "MeshRoadEditorGui.DefaultWidth = $ThisControl.getValue();";
  176. hovertime = "1000";
  177. text = "10";
  178. maxLength = "3";
  179. historySize = "0";
  180. password = "0";
  181. tabComplete = "0";
  182. sinkAllKeyEvents = "0";
  183. };
  184. new GuiBitmapButtonCtrl() {
  185. canSaveDynamicFields = "0";
  186. Enabled = "1";
  187. isContainer = "0";
  188. Profile = "ToolsGuiDefaultProfile";
  189. HorizSizing = "right";
  190. VertSizing = "bottom";
  191. Position = "101 2";
  192. Extent = "18 18";
  193. MinExtent = "8 2";
  194. canSave = "1";
  195. Visible = "1";
  196. Command = "Canvas.pushDialog(MeshRoadDefaultWidthSliderCtrlContainer);";
  197. tooltipprofile = "ToolsGuiToolTipProfile";
  198. ToolTip = "Changes Default Road Width";
  199. hovertime = "750";
  200. groupNum = "-1";
  201. buttonType = "PushButton";
  202. useMouseEvents = "0";
  203. bitmapAsset = "ToolsModule:dropslider_n_image";
  204. };
  205. };
  206. new GuiControl(MeshRoadDefaultDepthTextEditContainer) {
  207. canSaveDynamicFields = "0";
  208. isContainer = "1";
  209. Profile = "ToolsGuiTransparentProfile";
  210. HorizSizing = "right";
  211. VertSizing = "bottom";
  212. position = "395 5";
  213. Extent = "120 50";
  214. MinExtent = "8 2";
  215. canSave = "1";
  216. Visible = "1";
  217. hovertime = "1000";
  218. new GuiTextCtrl() {
  219. canSaveDynamicFields = "0";
  220. Enabled = "1";
  221. isContainer = "0";
  222. Profile = "ToolsGuiTextProfile";
  223. HorizSizing = "right";
  224. VertSizing = "bottom";
  225. position = "0 6";
  226. Extent = "68 10";
  227. MinExtent = "8 2";
  228. canSave = "1";
  229. Visible = "1";
  230. hovertime = "1000";
  231. Margin = "0 0 0 0";
  232. Padding = "0 0 0 0";
  233. AnchorTop = "1";
  234. AnchorBottom = "0";
  235. AnchorLeft = "1";
  236. AnchorRight = "0";
  237. text = "Default Depth";
  238. maxLength = "1024";
  239. };
  240. new GuiTextEditCtrl() {
  241. canSaveDynamicFields = "0";
  242. internalName = "textEdit";
  243. isContainer = "0";
  244. profile="ToolsGuiNumericDropSliderTextProfile";
  245. HorizSizing = "right";
  246. VertSizing = "bottom";
  247. position = "67 2";
  248. Extent = "42 16";
  249. MinExtent = "8 16";
  250. canSave = "1";
  251. Visible = "1";
  252. Command = "MeshRoadEditorGui.DefaultDepth = $ThisControl.getValue();";
  253. hovertime = "1000";
  254. text = "10";
  255. maxLength = "3";
  256. historySize = "0";
  257. password = "0";
  258. tabComplete = "0";
  259. sinkAllKeyEvents = "0";
  260. };
  261. new GuiBitmapButtonCtrl() {
  262. canSaveDynamicFields = "0";
  263. Enabled = "1";
  264. isContainer = "0";
  265. Profile = "ToolsGuiDefaultProfile";
  266. HorizSizing = "right";
  267. VertSizing = "bottom";
  268. Position = "101 2";
  269. Extent = "18 18";
  270. MinExtent = "8 2";
  271. canSave = "1";
  272. Visible = "1";
  273. Command = "Canvas.pushDialog(MeshRoadDefaultDepthSliderCtrlContainer);";
  274. tooltipprofile = "ToolsGuiToolTipProfile";
  275. ToolTip = "Changes Default Road Depth";
  276. hovertime = "750";
  277. groupNum = "-1";
  278. buttonType = "PushButton";
  279. useMouseEvents = "0";
  280. bitmapAsset = "ToolsModule:dropslider_n_image";
  281. };
  282. };
  283. };
  284. new GuiMouseEventCtrl(MeshRoadDefaultWidthSliderCtrlContainer, EditorGuiGroup) {
  285. horizSizing = "right";
  286. vertSizing = "bottom";
  287. position = "0 0";
  288. extent = "1024 768";
  289. minExtent = "8 8";
  290. visible = "1";
  291. helpTag = "0";
  292. class = "EditorDropdownSliderContainer";
  293. new GuiSliderCtrl() {
  294. canSaveDynamicFields = "0";
  295. internalName = "slider";
  296. isContainer = "0";
  297. Profile = "ToolsGuiSliderBoxProfile";
  298. HorizSizing = "right";
  299. VertSizing = "bottom";
  300. position = MeshRoadDefaultWidthTextEditContainer.position.x + MeshRoadEditorToolbar.position.x + 50 SPC
  301. MeshRoadDefaultWidthTextEditContainer.position.y + 50;
  302. Extent = "112 20";
  303. MinExtent = "8 2";
  304. canSave = "1";
  305. Visible = "1";
  306. AltCommand = "MeshRoadDefaultWidthTextEditContainer-->textEdit.setValue( mFloatLength($ThisControl.getValue(), 2)); MeshRoadEditorGui.DefaultWidth = $ThisControl.getValue();";
  307. range = "0 100";
  308. ticks = "0";
  309. value = "10";
  310. };
  311. };
  312. new GuiMouseEventCtrl(MeshRoadDefaultDepthSliderCtrlContainer, EditorGuiGroup) {
  313. horizSizing = "right";
  314. vertSizing = "bottom";
  315. position = "0 0";
  316. extent = "1024 768";
  317. minExtent = "8 8";
  318. visible = "1";
  319. helpTag = "0";
  320. class = "EditorDropdownSliderContainer";
  321. new GuiSliderCtrl() {
  322. canSaveDynamicFields = "0";
  323. internalName = "slider";
  324. isContainer = "0";
  325. Profile = "ToolsGuiSliderBoxProfile";
  326. HorizSizing = "right";
  327. VertSizing = "bottom";
  328. position = MeshRoadDefaultDepthTextEditContainer.position.x + MeshRoadEditorToolbar.position.x + 50 SPC
  329. MeshRoadDefaultDepthTextEditContainer.position.y + 50;
  330. Extent = "112 20";
  331. MinExtent = "8 2";
  332. canSave = "1";
  333. Visible = "1";
  334. AltCommand = "MeshRoadDefaultDepthTextEditContainer-->textEdit.setValue( mFloatLength($ThisControl.getValue(), 2)); MeshRoadEditorGui.DefaultDepth = $ThisControl.getValue();";
  335. range = "0 100";
  336. ticks = "0";
  337. value = "10";
  338. };
  339. };