RoadEditorToolbar.gui 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. %guiContent = new GuiControl(RoadEditorToolbar) {
  2. canSaveDynamicFields = "0";
  3. internalName = "RoadEditorToolbar";
  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 = "0";
  14. hovertime = "1000";
  15. new GuiTextCtrl() {
  16. profile = "ToolsGuiTextProfile";
  17. horizSizing = "right";
  18. vertSizing = "bottom";
  19. position = "6 6";
  20. extent = "70 20";
  21. minExtent = "8 8";
  22. visible = "1";
  23. text = "Road Settings";
  24. maxLength = "255";
  25. helpTag = "0";
  26. };
  27. new GuiDynamicCtrlArrayControl(){
  28. Position = "83 3";
  29. extent = "111 32";
  30. colCount = "31";
  31. colSize = "29";
  32. rowCount = "1";
  33. RowSize = "27";
  34. rowSpacing = "2";
  35. colspacing = "4";
  36. new GuiBitmapButtonCtrl(RoadEditorShowSplineBtn) {
  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 = "$DecalRoad::showSpline";
  50. tooltipprofile = "ToolsGuiToolTipProfile";
  51. hovertime = "1000";
  52. toolTip = "Show Spline";
  53. bitmap = "tools/worldEditor/images/road-river/menubar/show-spline";
  54. groupNum = "7";
  55. buttonType = "ToggleButton";
  56. useMouseEvents = "0";
  57. useInactiveState = "0";
  58. };
  59. new GuiBitmapButtonCtrl(RoadEditorWireframeBtn) {
  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 = "$DecalRoad::wireframe";
  73. tooltipprofile = "ToolsGuiToolTipProfile";
  74. hovertime = "1000";
  75. toolTip = "Show Wireframe";
  76. bitmap = "tools/worldEditor/images/road-river/menubar/show-wireframe";
  77. groupNum = "-1";
  78. buttonType = "ToggleButton";
  79. useMouseEvents = "0";
  80. useInactiveState = "0";
  81. };
  82. new GuiBitmapButtonCtrl(RoadEditorShowRoadBtn) {
  83. canSaveDynamicFields = "0";
  84. Enabled = "1";
  85. isContainer = "0";
  86. Profile = "GuiDefalutProfile";
  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 = "$DecalRoad::showRoad";
  96. tooltipprofile = "ToolsGuiToolTipProfile";
  97. hovertime = "1000";
  98. toolTip = "Show Road Texture";
  99. bitmap = "tools/worldEditor/images/road-river/menubar/show-texture";
  100. groupNum = "-1";
  101. buttonType = "ToggleButton";
  102. useMouseEvents = "0";
  103. useInactiveState = "0";
  104. };
  105. };
  106. new GuiControl(RoadDefaultWidthTextEditContainer) {
  107. canSaveDynamicFields = "0";
  108. isContainer = "1";
  109. Profile = "ToolsGuiTransparentProfile";
  110. HorizSizing = "right";
  111. VertSizing = "bottom";
  112. position = "197 5";
  113. Extent = "120 50";
  114. MinExtent = "8 2";
  115. canSave = "1";
  116. Visible = "1";
  117. hovertime = "1000";
  118. new GuiTextCtrl() {
  119. canSaveDynamicFields = "0";
  120. Enabled = "1";
  121. isContainer = "0";
  122. Profile = "ToolsGuiTextProfile";
  123. HorizSizing = "right";
  124. VertSizing = "bottom";
  125. position = "0 6";
  126. Extent = "68 10";
  127. MinExtent = "8 2";
  128. canSave = "1";
  129. Visible = "1";
  130. hovertime = "1000";
  131. Margin = "0 0 0 0";
  132. Padding = "0 0 0 0";
  133. AnchorTop = "1";
  134. AnchorBottom = "0";
  135. AnchorLeft = "1";
  136. AnchorRight = "0";
  137. text = "Default Width";
  138. maxLength = "1024";
  139. };
  140. new GuiTextEditCtrl() {
  141. canSaveDynamicFields = "0";
  142. internalName = "textEdit";
  143. isContainer = "0";
  144. profile="ToolsGuiNumericDropSliderTextProfile";
  145. HorizSizing = "right";
  146. VertSizing = "bottom";
  147. position = "67 2";
  148. Extent = "42 16";
  149. MinExtent = "8 16";
  150. canSave = "1";
  151. Visible = "1";
  152. Command = "RoadEditorGui.DefaultWidth = $ThisControl.getValue();";
  153. hovertime = "1000";
  154. text = "10";
  155. maxLength = "3";
  156. historySize = "0";
  157. password = "0";
  158. tabComplete = "0";
  159. sinkAllKeyEvents = "0";
  160. };
  161. new GuiBitmapButtonCtrl() {
  162. canSaveDynamicFields = "0";
  163. Enabled = "1";
  164. isContainer = "0";
  165. Profile = "ToolsGuiDefaultProfile";
  166. HorizSizing = "right";
  167. VertSizing = "bottom";
  168. Position = "101 2";
  169. Extent = "18 18";
  170. MinExtent = "8 2";
  171. canSave = "1";
  172. Visible = "1";
  173. Command = "Canvas.pushDialog(RoadDefaultWidthSliderCtrlContainer);";
  174. tooltipprofile = "ToolsGuiToolTipProfile";
  175. ToolTip = "Changes Default Road Width";
  176. hovertime = "750";
  177. groupNum = "-1";
  178. buttonType = "PushButton";
  179. useMouseEvents = "0";
  180. bitmap = "tools/gui/images/dropslider";
  181. };
  182. };
  183. /*new GuiTextEditSliderCtrl(RoadEditorDefaultWidthSlider) {
  184. canSaveDynamicFields = "0";
  185. Enabled = "1";
  186. isContainer = "0";
  187. Profile = "ToolsGuiTextEditProfile";
  188. HorizSizing = "right";
  189. VertSizing = "bottom";
  190. Position = "429 6";
  191. Extent = "46 18";
  192. MinExtent = "8 2";
  193. canSave = "1";
  194. isDecoy = "0";
  195. Visible = "1";
  196. Command = "RoadEditorGui.DefaultWidth = $ThisControl.getValue();";
  197. tooltipprofile = "ToolsGuiToolTipProfile";
  198. hovertime = "1000";
  199. Margin = "0 0 0 0";
  200. Padding = "0 0 0 0";
  201. AnchorTop = "1";
  202. AnchorBottom = "0";
  203. AnchorLeft = "1";
  204. AnchorRight = "0";
  205. text = "10.0";
  206. maxLength = "1024";
  207. historySize = "0";
  208. password = "0";
  209. tabComplete = "0";
  210. sinkAllKeyEvents = "0";
  211. passwordMask = "*";
  212. format = "%2.1f";
  213. range = "0 100";
  214. increment = "0.5";
  215. focusOnMouseWheel = "0";
  216. };
  217. new GuiTextCtrl() {
  218. canSaveDynamicFields = "0";
  219. Enabled = "1";
  220. isContainer = "0";
  221. Profile = "ToolsGuiTextProfile";
  222. HorizSizing = "right";
  223. VertSizing = "bottom";
  224. Position = "347 7";
  225. Extent = "66 16";
  226. MinExtent = "8 2";
  227. canSave = "1";
  228. isDecoy = "0";
  229. Visible = "1";
  230. tooltipprofile = "ToolsGuiToolTipProfile";
  231. hovertime = "1000";
  232. Margin = "0 0 0 0";
  233. Padding = "0 0 0 0";
  234. AnchorTop = "0";
  235. AnchorBottom = "0";
  236. AnchorLeft = "0";
  237. AnchorRight = "0";
  238. text = "Default Width";
  239. maxLength = "1024";
  240. };*/
  241. };
  242. new GuiMouseEventCtrl(RoadDefaultWidthSliderCtrlContainer, EditorGuiGroup) {
  243. horizSizing = "right";
  244. vertSizing = "bottom";
  245. position = "0 0";
  246. extent = "1024 768";
  247. minExtent = "8 8";
  248. visible = "1";
  249. helpTag = "0";
  250. class = "EditorDropdownSliderContainer";
  251. new GuiSliderCtrl() {
  252. canSaveDynamicFields = "0";
  253. internalName = "slider";
  254. isContainer = "0";
  255. Profile = "ToolsGuiSliderBoxProfile";
  256. HorizSizing = "right";
  257. VertSizing = "bottom";
  258. position = firstWord(RoadDefaultWidthTextEditContainer.position) + firstWord(RoadEditorToolbar.position) + 10 SPC
  259. (getWord(RoadDefaultWidthTextEditContainer, 1)) + 25;
  260. Extent = "112 20";
  261. MinExtent = "8 2";
  262. canSave = "1";
  263. Visible = "1";
  264. AltCommand = "RoadDefaultWidthTextEditContainer-->textEdit.setText( mFloatLength($ThisControl.getValue(), 2)); RoadEditorGui.DefaultWidth = $ThisControl.getValue();";
  265. range = "0 100";
  266. ticks = "0";
  267. value = "10";
  268. };
  269. };