meshRoadEditorGui.gui 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiMeshRoadEditorCtrl(MeshRoadEditorGui,EditorGuiGroup) {
  3. canSaveDynamicFields = "0";
  4. Enabled = "1";
  5. isContainer = "1";
  6. Profile = "MeshRoadEditorProfile";
  7. HorizSizing = "width";
  8. VertSizing = "height";
  9. Position = "0 0";
  10. Extent = "800 600";
  11. MinExtent = "8 8";
  12. canSave = "1";
  13. Visible = "1";
  14. tooltipprofile = "ToolsGuiToolTipProfile";
  15. hovertime = "1000";
  16. Docking = "None";
  17. Margin = "0 0 0 0";
  18. Padding = "0 0 0 0";
  19. AnchorTop = "0";
  20. AnchorBottom = "0";
  21. AnchorLeft = "0";
  22. AnchorRight = "0";
  23. cameraZRot = "0";
  24. forceFOV = "0";
  25. renderMissionArea = "0";
  26. missionAreaFillColor = "255 0 0 20";
  27. missionAreaFrameColor = "255 0 0 128";
  28. allowBorderMove = "0";
  29. borderMovePixelSize = "20";
  30. borderMoveSpeed = "0.1";
  31. consoleFrameColor = "255 0 0 255";
  32. consoleFillColor = "0 0 0 0";
  33. consoleSphereLevel = "1";
  34. consoleCircleSegments = "32";
  35. consoleLineWidth = "1";
  36. GizmoProfile = "GlobalGizmoProfile";
  37. DefaultWidth = "10";
  38. HoverSplineColor = "0 255 0 255";
  39. SelectedSplineColor = "255 0 255 255";
  40. HoverNodeColor = "255 255 255 255";
  41. new GuiWindowCollapseCtrl(MeshRoadEditorTreeWindow) {
  42. canCollapse = "0";
  43. internalName = "";
  44. canSaveDynamicFields = "0";
  45. Enabled = "1";
  46. isContainer = "1";
  47. Profile = "ToolsGuiWindowProfile";
  48. HorizSizing = "windowRelative";
  49. VertSizing = "windowRelative";
  50. Position = getWord($pref::Video::mode, 0) - 360
  51. SPC getWord(EditorGuiToolbar.extent, 1) + 6;
  52. Extent = "360 300";
  53. MinExtent = "300 100";
  54. canSave = "1";
  55. Visible = "1";
  56. tooltipprofile = "ToolsGuiToolTipProfile";
  57. hovertime = "1000";
  58. Margin = "0 0 0 0";
  59. Padding = "0 0 0 0";
  60. AnchorTop = "1";
  61. AnchorBottom = "0";
  62. AnchorLeft = "1";
  63. AnchorRight = "0";
  64. resizeWidth = "1";
  65. resizeHeight = "1";
  66. canMove = "0";
  67. canClose = "0";
  68. canMinimize = "0";
  69. canMaximize = "0";
  70. minSize = "50 50";
  71. closeCommand = "EditorGui.setEditor( WorldEditorInspectorPlugin );";
  72. EdgeSnap = "1";
  73. text = ":: Mesh Road Editor - Roads";
  74. new GuiContainer(MeshRoadEditorRoadsPanel){
  75. profile = "ToolsGuiDefaultProfile";
  76. Position = "5 25";
  77. Extent = "200 120";
  78. Docking = "Client";
  79. Margin = "3 1 3 3 ";
  80. HorizSizing = "width";
  81. VertSizing = "height";
  82. isContainer = "1";
  83. new GuiScrollCtrl() {
  84. canSaveDynamicFields = "0";
  85. Enabled = "1";
  86. isContainer = "1";
  87. Profile = "GuiEditorScrollProfile";
  88. HorizSizing = "width";
  89. VertSizing = "height";
  90. Position = "0 0";
  91. Extent = "200 118";
  92. MinExtent = "8 8";
  93. canSave = "1";
  94. isDecoy = "0";
  95. Visible = "1";
  96. tooltipprofile = "ToolsGuiToolTipProfile";
  97. hovertime = "1000";
  98. Docking = "Client";
  99. Margin = "0 0 0 0";
  100. Padding = "0 0 0 0";
  101. AnchorTop = "1";
  102. AnchorBottom = "0";
  103. AnchorLeft = "1";
  104. AnchorRight = "0";
  105. willFirstRespond = "1";
  106. hScrollBar = "alwaysOff";
  107. vScrollBar = "dynamic";
  108. lockHorizScroll = "true";
  109. lockVertScroll = "false";
  110. constantThumbHeight = "0";
  111. childMargin = "0 0";
  112. mouseWheelScrollSpeed = "-1";
  113. new GuiTreeViewCtrl(MeshRoadTreeView) {
  114. canSaveDynamicFields = "0";
  115. Enabled = "1";
  116. isContainer = "1";
  117. Profile = "ToolsGuiTreeViewProfile";
  118. HorizSizing = "right";
  119. VertSizing = "bottom";
  120. Position = "1 1";
  121. Extent = "193 21";
  122. MinExtent = "8 8";
  123. canSave = "1";
  124. Visible = "1";
  125. hovertime = "1000";
  126. tabSize = "16";
  127. textOffset = "2";
  128. fullRowSelect = "0";
  129. itemHeight = "21";
  130. destroyTreeOnSleep = "1";
  131. MouseDragging = "0";
  132. MultipleSelections = "0";
  133. DeleteObjectAllowed = "1";
  134. DragToItemAllowed = "0";
  135. showRoot = "0";
  136. internalNamesOnly = "0";
  137. };
  138. };
  139. };
  140. // window / panel buttons
  141. new GuiBitmapButtonCtrl(MeshRoadEditorGui_UnDockBtn) {
  142. canSaveDynamicFields = "0";
  143. internalName = "";
  144. Enabled = "1";
  145. isContainer = "0";
  146. Profile = "ToolsGuiButtonProfile";
  147. HorizSizing = "left";
  148. VertSizing = "bottom";
  149. Position = "330 1";
  150. Extent = "18 18";
  151. MinExtent = "8 8";
  152. canSave = "1";
  153. Visible = "0";
  154. Command = "MeshRoadEditorGui.releaseSidePanel();";
  155. tooltipprofile = "ToolsGuiToolTipProfile";
  156. ToolTip = "Detach Sidepanel";
  157. hovertime = "1000";
  158. bitmapAsset = "ToolsModule:panel_undock_n_image";
  159. text = "";
  160. groupNum = "-1";
  161. buttonType = "PushButton";
  162. useMouseEvents = "0";
  163. };
  164. new GuiBitmapButtonCtrl(MeshRoadEditorGui_DockBtn) {
  165. canSaveDynamicFields = "0";
  166. internalName = "";
  167. Enabled = "1";
  168. isContainer = "0";
  169. Profile = "ToolsGuiButtonProfile";
  170. HorizSizing = "left";
  171. VertSizing = "bottom";
  172. Position = "330 1";
  173. Extent = "18 18";
  174. MinExtent = "8 8";
  175. canSave = "1";
  176. Visible = "0";
  177. Command = "MeshRoadEditorGui.dockSidePanel();";
  178. tooltipprofile = "ToolsGuiToolTipProfile";
  179. ToolTip = "Dock Sidepanel";
  180. hovertime = "1000";
  181. bitmapAsset = "ToolsModule:panel_dock_n_image";
  182. text = "";
  183. groupNum = "-1";
  184. buttonType = "PushButton";
  185. useMouseEvents = "0";
  186. };
  187. new GuiBitmapButtonCtrl(MeshRoadEditorGui_HideBtn) {
  188. canSaveDynamicFields = "0";
  189. internalName = "";
  190. Enabled = "1";
  191. isContainer = "0";
  192. Profile = "ToolsGuiButtonProfile";
  193. HorizSizing = "left";
  194. VertSizing = "bottom";
  195. Position = "312 1";
  196. Extent = "18 18";
  197. MinExtent = "8 8";
  198. canSave = "1";
  199. Visible = "1";
  200. Command = "MeshRoadEditorGui.hideSidePanel();";
  201. tooltipprofile = "ToolsGuiToolTipProfile";
  202. ToolTip = "Hide Sidepanel";
  203. hovertime = "1000";
  204. bitmapAsset = "ToolsModule:panel_hide_n_image";
  205. text = "";
  206. groupNum = "-1";
  207. buttonType = "PushButton";
  208. useMouseEvents = "0";
  209. };
  210. new GuiBitmapButtonCtrl(MeshRoadEditorGui_ShowBtn) {
  211. canSaveDynamicFields = "0";
  212. internalName = "";
  213. Enabled = "1";
  214. isContainer = "0";
  215. Profile = "ToolsGuiButtonProfile";
  216. HorizSizing = "right";
  217. VertSizing = "bottom";
  218. Position = "4 1";
  219. Extent = "18 18";
  220. MinExtent = "8 8";
  221. canSave = "1";
  222. Visible = "1";
  223. Command = "MeshRoadEditorGui.showSidePanel();";
  224. tooltipprofile = "ToolsGuiToolTipProfile";
  225. ToolTip = "Show Sidepanel";
  226. hovertime = "1000";
  227. bitmapAsset = "ToolsModule:panel_show_n_image";
  228. text = "";
  229. groupNum = "-1";
  230. buttonType = "PushButton";
  231. useMouseEvents = "0";
  232. };
  233. };
  234. new GuiWindowCollapseCtrl(MeshRoadEditorOptionsWindow) {
  235. canCollapse = "0";
  236. internalName = "Window";
  237. canSaveDynamicFields = "0";
  238. Enabled = "1";
  239. isContainer = "1";
  240. Profile = "ToolsGuiWindowProfile";
  241. HorizSizing = "windowRelative";
  242. VertSizing = "windowRelative";
  243. Position = getWord($pref::Video::mode, 0) - 360
  244. SPC getWord(EditorGuiToolbar.extent, 1) + getWord(MeshRoadEditorTreeWindow.extent, 1) + 6;
  245. Extent = "360" SPC getWord($pref::Video::mode, 1) - getWord(MeshRoadEditorTreeWindow.extent, 1) - getWord(EditorGuiToolbar.extent, 1) - 65;
  246. MinExtent = "300 240";
  247. canSave = "1";
  248. Visible = "1";
  249. tooltipprofile = "ToolsGuiToolTipProfile";
  250. hovertime = "1000";
  251. Margin = "0 0 0 0";
  252. Padding = "0 0 0 0";
  253. AnchorTop = "1";
  254. AnchorBottom = "0";
  255. AnchorLeft = "1";
  256. AnchorRight = "0";
  257. resizeWidth = "1";
  258. resizeHeight = "1";
  259. canMove = "0";
  260. canClose = "0";
  261. canMinimize = "0";
  262. canMaximize = "0";
  263. minSize = "50 50";
  264. closeCommand = "EditorGui.setEditor( WorldEditorPlugin );";
  265. EdgeSnap = "1";
  266. text = ":: Mesh Road Editor - Properties";
  267. new GuiContainer(MeshRoadNodesPanel){ //Node Properties
  268. isContainer = "1";
  269. Profile = "inspectorStyleRolloutDarkProfile";
  270. HorizSizing = "width";
  271. VertSizing = "bottom";
  272. Position = "4 24";
  273. Extent = "202 85";
  274. Docking = "Top";
  275. Margin = "3 3 3 3";
  276. new GuiTextCtrl(){
  277. Profile = "EditorTextProfile";
  278. HorizSizing = "right";
  279. VertSizing = "bottom";
  280. Position = "5 0";
  281. Extent = "86 18";
  282. text = "Node Properties";
  283. };
  284. new GuiTextCtrl(){
  285. Profile = "ToolsGuiTextRightProfile";
  286. HorizSizing = "right";
  287. VertSizing = "bottom";
  288. Position = "7 21";
  289. Extent = "46 18";
  290. text = "Position";
  291. };
  292. new GuiTextEditCtrl(){
  293. internalName = "position";
  294. Profile = "ToolsGuiTextEditProfile";
  295. HorizSizing = "width";
  296. VertSizing = "bottom";
  297. Position = "57 21";
  298. Extent = "141 18";
  299. text = "";
  300. AltCommand = "MeshRoadEditorGui.editNodeDetails();";
  301. };
  302. new GuiTextCtrl(){
  303. Profile = "ToolsGuiTextRightProfile";
  304. HorizSizing = "right";
  305. VertSizing = "bottom";
  306. Position = "7 42";
  307. Extent = "46 18";
  308. text = "Rotation";
  309. };
  310. new GuiTextEditCtrl(){
  311. internalName = "rotation";
  312. Profile = "ToolsGuiTextEditProfile";
  313. HorizSizing = "width";
  314. VertSizing = "bottom";
  315. Position = "57 42";
  316. Extent = "141 18";
  317. text = "";
  318. AltCommand = "MeshRoadEditorGui.editNodeDetails();";
  319. };
  320. new GuiTextCtrl(){
  321. Profile = "ToolsGuiTextRightProfile";
  322. HorizSizing = "right";
  323. VertSizing = "bottom";
  324. Position = "7 63";
  325. Extent = "46 18";
  326. text = "Width";
  327. };
  328. new GuiTextEditCtrl(){
  329. internalName = "width";
  330. Profile = "ToolsGuiTextEditProfile";
  331. HorizSizing = "right";
  332. VertSizing = "bottom";
  333. Position = "57 63";
  334. Extent = "52 18";
  335. text = "";
  336. AltCommand = "MeshRoadEditorGui.editNodeDetails();";
  337. };
  338. new GuiTextCtrl(){
  339. Profile = "ToolsGuiTextRightProfile";
  340. HorizSizing = "left";
  341. VertSizing = "bottom";
  342. Position = "110 63";
  343. Extent = "32 18";
  344. text = "Depth";
  345. };
  346. new GuiTextEditCtrl(){
  347. internalName = "depth";
  348. Profile = "ToolsGuiTextEditProfile";
  349. HorizSizing = "left";
  350. VertSizing = "bottom";
  351. Position = "146 63";
  352. Extent = "52 18";
  353. text = "";
  354. AltCommand = "MeshRoadEditorGui.editNodeDetails();";
  355. };
  356. };
  357. new GuiContainer(MeshRoadPropertiesPanel){ //Mesh Road Properties
  358. isContainer = "1";
  359. Profile = "inspectorStyleRolloutDarkProfile";
  360. HorizSizing = "width";
  361. VertSizing = "bottom";
  362. Position = "4 112";
  363. Extent = "202 31";
  364. Docking = "Top";
  365. Margin = "0 0 3 3";
  366. new GuiTextCtrl(){
  367. Profile = "EditorTextProfile";
  368. HorizSizing = "right";
  369. VertSizing = "bottom";
  370. Position = "5 0";
  371. Extent = "121 18";
  372. text = "Mesh Road Properties";
  373. };
  374. };
  375. new GuiScrollCtrl(MeshRoadInspectorPanel) {
  376. canSaveDynamicFields = "0";
  377. Enabled = "1";
  378. isContainer = "1";
  379. Profile = "GuiEditorScrollProfile";
  380. HorizSizing = "width";
  381. VertSizing = "height";
  382. Position = "4 129";
  383. Extent = "202 357";
  384. MinExtent = "8 2";
  385. canSave = "1";
  386. Visible = "1";
  387. tooltipprofile = "ToolsGuiToolTipProfile";
  388. hovertime = "1000";
  389. Docking = "Client";
  390. Margin = "-14 41 3 3";
  391. Padding = "0 0 0 0";
  392. AnchorTop = "1";
  393. AnchorBottom = "0";
  394. AnchorLeft = "1";
  395. AnchorRight = "0";
  396. willFirstRespond = "1";
  397. hScrollBar = "alwaysOff";
  398. vScrollBar = "dynamic";
  399. lockHorizScroll = "true";
  400. lockVertScroll = "false";
  401. constantThumbHeight = "0";
  402. childMargin = "0 0";
  403. new GuiInspector(MeshRoadInspector) {
  404. StackingType = "Vertical";
  405. HorizStacking = "Left to Right";
  406. VertStacking = "Top to Bottom";
  407. Padding = "1";
  408. name = "MeshRoadInspector";
  409. canSaveDynamicFields = "0";
  410. Enabled = "1";
  411. isContainer = "1";
  412. Profile = "ToolsGuiTransparentProfile";
  413. HorizSizing = "right";
  414. VertSizing = "bottom";
  415. Position = "1 1";
  416. Extent = "179 16";
  417. MinExtent = "16 16";
  418. canSave = "1";
  419. Visible = "1";
  420. tooltipprofile = "ToolsGuiToolTipProfile";
  421. hovertime = "1000";
  422. dividerMargin = "5";
  423. };
  424. };
  425. new GuiMLTextCtrl(MeshRoadFieldInfoControl) {
  426. canSaveDynamicFields = "0";
  427. Enabled = "1";
  428. isContainer = "0";
  429. Profile = "GuiInspectorFieldInfoMLTextProfile";
  430. HorizSizing = "width";
  431. VertSizing = "top";
  432. position = "8" SPC getWord(MeshRoadEditorOptionsWindow.extent, 1) - 40;
  433. Extent = "320 42";
  434. MinExtent = "8 2";
  435. canSave = "1";
  436. Visible = "1";
  437. tooltipprofile = "ToolsGuiToolTipProfile";
  438. hovertime = "1000";
  439. lineSpacing = "1";
  440. allowColorChars = "0";
  441. maxChars = "-1";
  442. useURLMouseCursor = "0";
  443. };
  444. };
  445. };
  446. //--- OBJECT WRITE END ---