RoadEditorGui.gui 15 KB

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