RiverEditorToolbar.gui 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. %guiContent = new GuiControl(RiverEditorToolbar, 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 = "0";
  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 = "River 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(RiverEditorShowSplineBtn) {
  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 = "$River::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(RiverEditorWireframeBtn) {
  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 = "$River::showWireframe";
  73. Command = "$River::showWireframe = $ThisControl.getValue();";
  74. tooltipprofile = "ToolsGuiToolTipProfile";
  75. hovertime = "1000";
  76. toolTip = "Show Wireframe";
  77. bitmap = "tools/worldEditor/images/road-river/menubar/show-wireframe";
  78. groupNum = "-1";
  79. buttonType = "ToggleButton";
  80. useMouseEvents = "0";
  81. useInactiveState = "0";
  82. };
  83. new GuiBitmapButtonCtrl(RiverEditorShowRoadBtn) {
  84. canSaveDynamicFields = "0";
  85. Enabled = "1";
  86. isContainer = "0";
  87. Profile = "GuiDefalutProfile";
  88. HorizSizing = "right";
  89. VertSizing = "bottom";
  90. Position = "89 3";
  91. Extent = "29 27";
  92. MinExtent = "8 2";
  93. canSave = "1";
  94. isDecoy = "0";
  95. Visible = "1";
  96. Variable = "$River::showRiver";
  97. tooltipprofile = "ToolsGuiToolTipProfile";
  98. hovertime = "1000";
  99. toolTip = "Show River Texture";
  100. bitmap = "tools/worldEditor/images/road-river/menubar/show-texture";
  101. groupNum = "-1";
  102. buttonType = "ToggleButton";
  103. useMouseEvents = "0";
  104. useInactiveState = "0";
  105. };
  106. };
  107. new GuiControl(RiverDefaultWidthTextEditContainer) {
  108. canSaveDynamicFields = "0";
  109. isContainer = "1";
  110. Profile = "ToolsGuiTransparentProfile";
  111. HorizSizing = "right";
  112. VertSizing = "bottom";
  113. position = "197 5";
  114. Extent = "120 50";
  115. MinExtent = "8 2";
  116. canSave = "1";
  117. Visible = "1";
  118. hovertime = "1000";
  119. new GuiTextCtrl() {
  120. canSaveDynamicFields = "0";
  121. Enabled = "1";
  122. isContainer = "0";
  123. Profile = "ToolsGuiTextProfile";
  124. HorizSizing = "right";
  125. VertSizing = "bottom";
  126. position = "0 6";
  127. Extent = "68 10";
  128. MinExtent = "8 2";
  129. canSave = "1";
  130. Visible = "1";
  131. hovertime = "1000";
  132. Margin = "0 0 0 0";
  133. Padding = "0 0 0 0";
  134. AnchorTop = "1";
  135. AnchorBottom = "0";
  136. AnchorLeft = "1";
  137. AnchorRight = "0";
  138. text = "Default Width";
  139. maxLength = "1024";
  140. };
  141. new GuiTextEditCtrl() {
  142. canSaveDynamicFields = "0";
  143. internalName = "textEdit";
  144. isContainer = "0";
  145. profile="ToolsGuiNumericDropSliderTextProfile";
  146. HorizSizing = "right";
  147. VertSizing = "bottom";
  148. position = "67 2";
  149. Extent = "42 16";
  150. MinExtent = "8 16";
  151. canSave = "1";
  152. Visible = "1";
  153. Command = "RiverEditorGui.DefaultWidth = $ThisControl.getValue();";
  154. hovertime = "1000";
  155. text = "10";
  156. maxLength = "3";
  157. historySize = "0";
  158. password = "0";
  159. tabComplete = "0";
  160. sinkAllKeyEvents = "0";
  161. };
  162. new GuiBitmapButtonCtrl() {
  163. canSaveDynamicFields = "0";
  164. Enabled = "1";
  165. isContainer = "0";
  166. Profile = "ToolsGuiDefaultProfile";
  167. HorizSizing = "right";
  168. VertSizing = "bottom";
  169. Position = "101 2";
  170. Extent = "18 18";
  171. MinExtent = "8 2";
  172. canSave = "1";
  173. Visible = "1";
  174. Command = "Canvas.pushDialog(RiverDefaultWidthSliderCtrlContainer);";
  175. tooltipprofile = "ToolsGuiToolTipProfile";
  176. ToolTip = "Changes Default River Width";
  177. hovertime = "750";
  178. groupNum = "-1";
  179. buttonType = "PushButton";
  180. useMouseEvents = "0";
  181. bitmap = "tools/gui/images/dropslider";
  182. };
  183. };
  184. new GuiControl(RiverDefaultDepthTextEditContainer) {
  185. canSaveDynamicFields = "0";
  186. isContainer = "1";
  187. Profile = "ToolsGuiTransparentProfile";
  188. HorizSizing = "right";
  189. VertSizing = "bottom";
  190. position = "327 5";
  191. Extent = "120 50";
  192. MinExtent = "8 2";
  193. canSave = "1";
  194. Visible = "1";
  195. hovertime = "1000";
  196. new GuiTextCtrl() {
  197. canSaveDynamicFields = "0";
  198. Enabled = "1";
  199. isContainer = "0";
  200. Profile = "ToolsGuiTextProfile";
  201. HorizSizing = "right";
  202. VertSizing = "bottom";
  203. position = "0 6";
  204. Extent = "68 10";
  205. MinExtent = "8 2";
  206. canSave = "1";
  207. Visible = "1";
  208. hovertime = "1000";
  209. Margin = "0 0 0 0";
  210. Padding = "0 0 0 0";
  211. AnchorTop = "1";
  212. AnchorBottom = "0";
  213. AnchorLeft = "1";
  214. AnchorRight = "0";
  215. text = "Default Depth";
  216. maxLength = "1024";
  217. };
  218. new GuiTextEditCtrl() {
  219. canSaveDynamicFields = "0";
  220. internalName = "textEdit";
  221. isContainer = "0";
  222. profile="ToolsGuiNumericDropSliderTextProfile";
  223. HorizSizing = "right";
  224. VertSizing = "bottom";
  225. position = "67 2";
  226. Extent = "42 16";
  227. MinExtent = "8 16";
  228. canSave = "1";
  229. Visible = "1";
  230. Command = "RiverEditorGui.DefaultDepth = $ThisControl.getValue();";
  231. hovertime = "1000";
  232. text = "10";
  233. maxLength = "3";
  234. historySize = "0";
  235. password = "0";
  236. tabComplete = "0";
  237. sinkAllKeyEvents = "0";
  238. };
  239. new GuiBitmapButtonCtrl() {
  240. canSaveDynamicFields = "0";
  241. Enabled = "1";
  242. isContainer = "0";
  243. Profile = "ToolsGuiDefaultProfile";
  244. HorizSizing = "right";
  245. VertSizing = "bottom";
  246. Position = "101 2";
  247. Extent = "18 18";
  248. MinExtent = "8 2";
  249. canSave = "1";
  250. Visible = "1";
  251. Command = "Canvas.pushDialog(RiverDefaultDepthSliderCtrlContainer);";
  252. tooltipprofile = "ToolsGuiToolTipProfile";
  253. ToolTip = "Changes Default River Depth";
  254. hovertime = "750";
  255. groupNum = "-1";
  256. buttonType = "PushButton";
  257. useMouseEvents = "0";
  258. bitmap = "tools/gui/images/dropslider";
  259. };
  260. };
  261. };
  262. new GuiMouseEventCtrl(RiverDefaultWidthSliderCtrlContainer, EditorGuiGroup) {
  263. horizSizing = "right";
  264. vertSizing = "bottom";
  265. position = "0 0";
  266. extent = "1024 768";
  267. minExtent = "8 8";
  268. visible = "1";
  269. helpTag = "0";
  270. class = "EditorDropdownSliderContainer";
  271. new GuiSliderCtrl() {
  272. canSaveDynamicFields = "0";
  273. internalName = "slider";
  274. isContainer = "0";
  275. Profile = "ToolsGuiSliderBoxProfile";
  276. HorizSizing = "right";
  277. VertSizing = "bottom";
  278. position = firstWord(RiverDefaultWidthTextEditContainer.position) + firstWord(RiverEditorToolbar.position) + 10 SPC
  279. (getWord(RiverDefaultWidthTextEditContainer, 1)) + 25;
  280. Extent = "112 20";
  281. MinExtent = "8 2";
  282. canSave = "1";
  283. Visible = "1";
  284. AltCommand = "RiverDefaultWidthTextEditContainer-->textEdit.setText( mFloatLength($ThisControl.getValue(), 2)); RiverEditorGui.DefaultWidth = $ThisControl.getValue();";
  285. range = "0 100";
  286. ticks = "0";
  287. value = "10";
  288. };
  289. };
  290. new GuiMouseEventCtrl(RiverDefaultDepthSliderCtrlContainer, EditorGuiGroup) {
  291. horizSizing = "right";
  292. vertSizing = "bottom";
  293. position = "0 0";
  294. extent = "1024 768";
  295. minExtent = "8 8";
  296. visible = "1";
  297. helpTag = "0";
  298. class = "EditorDropdownSliderContainer";
  299. new GuiSliderCtrl() {
  300. canSaveDynamicFields = "0";
  301. internalName = "slider";
  302. isContainer = "0";
  303. Profile = "ToolsGuiSliderBoxProfile";
  304. HorizSizing = "right";
  305. VertSizing = "bottom";
  306. position = firstWord(RiverDefaultDepthTextEditContainer.position) + firstWord(RiverEditorToolbar.position) + 10 SPC
  307. (getWord(RiverDefaultDepthTextEditContainer, 1)) + 25;
  308. Extent = "112 20";
  309. MinExtent = "8 2";
  310. canSave = "1";
  311. Visible = "1";
  312. AltCommand = "RiverDefaultDepthTextEditContainer-->textEdit.setValue( mFloatLength($ThisControl.getValue(), 2)); RiverEditorGui.DefaultWidth = $ThisControl.getValue();";
  313. range = "0 100";
  314. ticks = "0";
  315. value = "10";
  316. };
  317. };