RoadEditorGui.gui 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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. 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) - 209
  51. SPC getWord(EditorGuiToolbar.extent, 1) - 1;
  52. Extent = "210 167";
  53. MinExtent = "210 100";
  54. canSave = "1";
  55. isDecoy = "0";
  56. Visible = "1";
  57. tooltipprofile = "ToolsGuiToolTipProfile";
  58. hovertime = "1000";
  59. Margin = "0 0 0 0";
  60. Padding = "0 0 0 0";
  61. AnchorTop = "1";
  62. AnchorBottom = "0";
  63. AnchorLeft = "1";
  64. AnchorRight = "0";
  65. resizeWidth = "1";
  66. resizeHeight = "1";
  67. canMove = "1";
  68. canClose = "0";
  69. canMinimize = "0";
  70. canMaximize = "0";
  71. minSize = "50 50";
  72. EdgeSnap = "1";
  73. text = "Roads & Paths";
  74. /*
  75. new GuiBitmapButtonCtrl() {
  76. canSaveDynamicFields = "0";
  77. internalName = "LockSelection";
  78. Enabled = "1";
  79. isContainer = "0";
  80. Profile = "ToolsGuiButtonProfile";
  81. HorizSizing = "left";
  82. VertSizing = "top";
  83. Position = "167 148";
  84. Extent = "16 16";
  85. MinExtent = "8 2";
  86. canSave = "1";
  87. Visible = "1";
  88. Command = "EWorldEditor.lockSelection(true); EditorTree.toggleLock();";
  89. tooltipprofile = "ToolsGuiToolTipProfile";
  90. ToolTip = "World Editor";
  91. hovertime = "1000";
  92. bitmap = "tools/gui/images/lock";
  93. buttonType = "ToggleButton";
  94. groupNum = "-1";
  95. text = "";
  96. useMouseEvents = "0";
  97. };
  98. new GuiBitmapButtonCtrl() {
  99. canSaveDynamicFields = "0";
  100. internalName = "DeleteSelection";
  101. Enabled = "1";
  102. isContainer = "0";
  103. Profile = "ToolsGuiButtonProfile";
  104. HorizSizing = "left";
  105. VertSizing = "top";
  106. Position = "185 148";
  107. Extent = "16 16";
  108. MinExtent = "8 2";
  109. canSave = "1";
  110. Visible = "1";
  111. Command = "EditorMenuEditDelete();";
  112. tooltipprofile = "ToolsGuiToolTipProfile";
  113. ToolTip = "World Editor";
  114. hovertime = "1000";
  115. bitmap = "tools/gui/images/delete";
  116. buttonType = "PushButton";
  117. groupNum = "-1";
  118. text = "";
  119. useMouseEvents = "0";
  120. };
  121. */
  122. new GuiContainer(){
  123. profile = "ToolsGuiDefaultProfile";
  124. Position = "5 25";
  125. Extent = "200 120";
  126. Docking = "Client";
  127. Margin = "3 1 3 3 ";
  128. HorizSizing = "width";
  129. VertSizing = "height";
  130. isContainer = "1";
  131. new GuiScrollCtrl() {
  132. canSaveDynamicFields = "0";
  133. Enabled = "1";
  134. isContainer = "1";
  135. Profile = "GuiEditorScrollProfile";
  136. HorizSizing = "width";
  137. VertSizing = "height";
  138. Position = "0 0";
  139. Extent = "200 118";
  140. MinExtent = "8 8";
  141. canSave = "1";
  142. isDecoy = "0";
  143. Visible = "1";
  144. tooltipprofile = "ToolsGuiToolTipProfile";
  145. hovertime = "1000";
  146. Docking = "Client";
  147. Margin = "0 0 0 0";
  148. Padding = "0 0 0 0";
  149. AnchorTop = "1";
  150. AnchorBottom = "0";
  151. AnchorLeft = "1";
  152. AnchorRight = "0";
  153. willFirstRespond = "1";
  154. hScrollBar = "alwaysOff";
  155. vScrollBar = "dynamic";
  156. lockHorizScroll = "true";
  157. lockVertScroll = "false";
  158. constantThumbHeight = "0";
  159. childMargin = "0 0";
  160. mouseWheelScrollSpeed = "-1";
  161. new GuiTreeViewCtrl(RoadTreeView) {
  162. canSaveDynamicFields = "0";
  163. Enabled = "1";
  164. isContainer = "1";
  165. Profile = "ToolsGuiTreeViewProfile";
  166. HorizSizing = "right";
  167. VertSizing = "bottom";
  168. Position = "1 1";
  169. Extent = "193 21";
  170. MinExtent = "8 8";
  171. canSave = "1";
  172. Visible = "1";
  173. hovertime = "1000";
  174. tabSize = "16";
  175. textOffset = "2";
  176. fullRowSelect = "0";
  177. itemHeight = "21";
  178. destroyTreeOnSleep = "1";
  179. MouseDragging = "0";
  180. MultipleSelections = "0";
  181. DeleteObjectAllowed = "1";
  182. DragToItemAllowed = "0";
  183. showRoot = "0";
  184. internalNamesOnly = "0";
  185. };
  186. };
  187. };
  188. };
  189. new GuiWindowCollapseCtrl(RoadEditorOptionsWindow) {
  190. internalName = "Window";
  191. canSaveDynamicFields = "0";
  192. Enabled = "1";
  193. isContainer = "1";
  194. Profile = "ToolsGuiWindowProfile";
  195. HorizSizing = "windowRelative";
  196. VertSizing = "windowRelative";
  197. Position = getWord($pref::Video::mode, 0) - 209 SPC
  198. getWord(EditorGuiToolbar.extent, 1) + getWord(RoadEditorTreeWindow.extent, 1) - 2;
  199. Extent = "210 530";
  200. MinExtent = "210 298";
  201. canSave = "1";
  202. Visible = "1";
  203. tooltipprofile = "ToolsGuiToolTipProfile";
  204. hovertime = "1000";
  205. Margin = "0 0 0 0";
  206. Padding = "0 0 0 0";
  207. AnchorTop = "1";
  208. AnchorBottom = "0";
  209. AnchorLeft = "1";
  210. AnchorRight = "0";
  211. resizeWidth = "1";
  212. resizeHeight = "1";
  213. canMove = "1";
  214. canClose = "0";
  215. canMinimize = "0";
  216. canMaximize = "0";
  217. minSize = "50 50";
  218. EdgeSnap = "1";
  219. text = "Properties";
  220. new GuiContainer(RoadEditorProperties){ //Node Properties
  221. isContainer = "1";
  222. Profile = "inspectorStyleRolloutDarkProfile";
  223. HorizSizing = "width";
  224. VertSizing = "bottom";
  225. Position = "4 24";
  226. Extent = "202 64";
  227. Docking = "Top";
  228. Margin = "3 3 3 3";
  229. new GuiTextCtrl(){
  230. Profile = "ToolsGuiDefaultProfile";
  231. HorizSizing = "right";
  232. VertSizing = "bottom";
  233. Position = "5 0";
  234. Extent = "86 18";
  235. text = "Node Properties";
  236. };
  237. new GuiTextCtrl(){
  238. Profile = "ToolsGuiTextRightProfile";
  239. HorizSizing = "right";
  240. VertSizing = "bottom";
  241. Position = "7 21";
  242. Extent = "46 18";
  243. text = "Position";
  244. };
  245. new GuiTextEditCtrl(){
  246. internalName = "position";
  247. Profile = "ToolsGuiTextEditProfile";
  248. HorizSizing = "width";
  249. VertSizing = "bottom";
  250. Position = "57 21";
  251. Extent = "141 18";
  252. text = "";
  253. AltCommand = "RoadEditorGui.editNodeDetails();";
  254. };
  255. new GuiTextCtrl(){
  256. Profile = "ToolsGuiTextRightProfile";
  257. HorizSizing = "right";
  258. VertSizing = "bottom";
  259. Position = "7 42";
  260. Extent = "46 18";
  261. text = "Width";
  262. };
  263. new GuiTextEditCtrl(){
  264. internalName = "width";
  265. Profile = "ToolsGuiTextEditProfile";
  266. HorizSizing = "width";
  267. VertSizing = "bottom";
  268. Position = "57 42";
  269. Extent = "141 18";
  270. text = "";
  271. AltCommand = "RoadEditorGui.editNodeDetails();";
  272. };
  273. };
  274. new GuiContainer(){ //Decal Road Properties
  275. isContainer = "1";
  276. Profile = "inspectorStyleRolloutDarkProfile";
  277. HorizSizing = "width";
  278. VertSizing = "bottom";
  279. Position = "4 91";
  280. Extent = "202 31";
  281. Docking = "Top";
  282. Margin = "0 0 3 3";
  283. new GuiTextCtrl(){
  284. Profile = "ToolsGuiDefaultProfile";
  285. HorizSizing = "right";
  286. VertSizing = "bottom";
  287. Position = "5 0";
  288. Extent = "121 18";
  289. text = "Decal Road Properties";
  290. };
  291. };
  292. new GuiContainer(){
  293. profile = ToolsGuiDefaultProfile;
  294. Position = "4 108";
  295. Extent = "202 377";
  296. HorizSizing = "width";
  297. VertSizing = "height";
  298. isContainer = "1";
  299. Docking = "Client";
  300. Margin = "-14 41 3 3";
  301. new GuiScrollCtrl() {
  302. canSaveDynamicFields = "0";
  303. Enabled = "1";
  304. isContainer = "1";
  305. Profile = "GuiEditorScrollProfile";
  306. HorizSizing = "width";
  307. VertSizing = "height";
  308. Position = "0 0";
  309. Extent = "202 377";
  310. MinExtent = "8 2";
  311. canSave = "1";
  312. Visible = "1";
  313. tooltipprofile = "ToolsGuiToolTipProfile";
  314. hovertime = "1000";
  315. Margin = "0 0 0 0";
  316. Padding = "0 0 0 0";
  317. AnchorTop = "1";
  318. AnchorBottom = "0";
  319. AnchorLeft = "1";
  320. AnchorRight = "0";
  321. willFirstRespond = "1";
  322. hScrollBar = "alwaysOff";
  323. vScrollBar = "dynamic";
  324. lockHorizScroll = "true";
  325. lockVertScroll = "false";
  326. constantThumbHeight = "0";
  327. childMargin = "0 0";
  328. new GuiInspector(RoadInspector) {
  329. StackingType = "Vertical";
  330. HorizStacking = "Left to Right";
  331. VertStacking = "Top to Bottom";
  332. Padding = "1";
  333. canSaveDynamicFields = "0";
  334. Enabled = "1";
  335. isContainer = "1";
  336. Profile = "ToolsGuiTransparentProfile";
  337. HorizSizing = "width";
  338. VertSizing = "height";
  339. Position = "0 0";
  340. Extent = "200 196";
  341. MinExtent = "8 8";
  342. canSave = "1";
  343. isDecoy = "0";
  344. Visible = "1";
  345. tooltipprofile = "ToolsGuiToolTipProfile";
  346. hovertime = "1000";
  347. dividerMargin = "5";
  348. groupFilters = "+SimBase,+DecalRoad";
  349. };
  350. };
  351. };
  352. new GuiMLTextCtrl(RoadFieldInfoControl) {
  353. canSaveDynamicFields = "0";
  354. Enabled = "1";
  355. isContainer = "0";
  356. Profile = "GuiInspectorFieldInfoMLTextProfile";
  357. HorizSizing = "width";
  358. VertSizing = "top";
  359. Position = "1 485";
  360. Extent = "202 42";
  361. MinExtent = "8 2";
  362. canSave = "1";
  363. Visible = "1";
  364. tooltipprofile = "ToolsGuiToolTipProfile";
  365. hovertime = "1000";
  366. lineSpacing = "2";
  367. allowColorChars = "0";
  368. maxChars = "-1";
  369. useURLMouseCursor = "0";
  370. };
  371. };
  372. };
  373. //--- OBJECT WRITE END ---