editor.form 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. form particleEditor
  2. {
  3. theme = res/editor.theme
  4. autoWidth = true
  5. autoHeight = true
  6. container presets
  7. {
  8. style = basic
  9. layout = LAYOUT_VERTICAL
  10. position = 0, 0
  11. size = 160, 220
  12. label title
  13. {
  14. style = title
  15. size = 160, 30
  16. text = Presets
  17. }
  18. radioButton spiralFlame
  19. {
  20. style = iconNoBorder
  21. text = Fire
  22. group = presets
  23. size = 160, 40
  24. imageSize = 35, 35
  25. selected = true
  26. }
  27. radioButton smoke : spiralFlame
  28. {
  29. text = Smoke
  30. selected = false
  31. }
  32. radioButton explosion : smoke
  33. {
  34. text = Explosion
  35. }
  36. button reset
  37. {
  38. style = buttonStyle
  39. alignment = ALIGN_BOTTOM
  40. autoWidth = true
  41. height = 50
  42. text = Reset
  43. }
  44. }
  45. // Emission settings
  46. container emission
  47. {
  48. style = basic
  49. position = 0, 220
  50. layout = LAYOUT_VERTICAL
  51. size = 160, 210
  52. // Burst emission
  53. button emit
  54. {
  55. style = buttonStyle
  56. position = 0, 50
  57. size = 140, 50
  58. text = Emit
  59. }
  60. // Emission rate
  61. slider emissionRate
  62. {
  63. style = noBorder
  64. size = 140, 50
  65. orientation = HORIZONTAL
  66. min = 1
  67. max = 500
  68. value = 100
  69. step = 0
  70. text = Emission Rate
  71. textAlignment = ALIGN_TOP_HCENTER
  72. valueTextVisible = true
  73. valueTextAlignment = ALIGN_BOTTOM_HCENTER
  74. valueTextPrecision = 2
  75. }
  76. slider burstSize : emissionRate
  77. {
  78. text = Burst Size
  79. value = 20
  80. max = 50
  81. step = 1
  82. }
  83. // Start / Stop Emitter
  84. checkBox started
  85. {
  86. style = iconNoBorder
  87. size = 140, 40
  88. imageSize = 35, 35
  89. text = Running
  90. checked = true
  91. }
  92. }
  93. // Camera Zoom
  94. container zoom
  95. {
  96. style = noBorder
  97. size = 160, 50
  98. position = 0, 430
  99. button zoomIn
  100. {
  101. style = buttonStyle
  102. size = 80, 50
  103. text = Zoom In
  104. }
  105. button zoomOut : zoomIn
  106. {
  107. position = 80, 0
  108. text = Zoom Out
  109. }
  110. }
  111. container particleProperties
  112. {
  113. style = particleProps
  114. alignment = ALIGN_TOP_RIGHT
  115. width = 210
  116. autoHeight = true
  117. layout = LAYOUT_VERTICAL
  118. scroll = SCROLL_VERTICAL
  119. scrollBarsAutoHide = false
  120. // Particle Size
  121. label titleSize
  122. {
  123. style = title
  124. size = 150, 30
  125. text = Size
  126. }
  127. slider startMin
  128. {
  129. style = noBorder
  130. size = 150, 50
  131. orientation = HORIZONTAL
  132. min = 0
  133. max = 5
  134. value = 1.5
  135. step = 0
  136. text = Min Begin
  137. textAlignment = ALIGN_TOP_HCENTER
  138. valueTextVisible = true
  139. valueTextAlignment = ALIGN_BOTTOM_HCENTER
  140. valueTextPrecision = 2
  141. consumeInputEvents = false
  142. }
  143. slider startMax : startMin
  144. {
  145. text = Max Begin
  146. }
  147. slider endMin : startMin
  148. {
  149. text = Min End
  150. }
  151. slider endMax : startMin
  152. {
  153. text = Max End
  154. }
  155. // Energy
  156. label titleEnergy : titleSize
  157. {
  158. text = Energy
  159. }
  160. slider energyMin
  161. {
  162. style = noBorder
  163. size = 150, 50
  164. orientation = HORIZONTAL
  165. min = 0
  166. max = 5000
  167. text = Min
  168. textAlignment = ALIGN_TOP_HCENTER
  169. valueTextVisible = true
  170. valueTextAlignment = ALIGN_BOTTOM_HCENTER
  171. valueTextPrecision = 2
  172. consumeInputEvents = false
  173. }
  174. slider energyMax : energyMin
  175. {
  176. text = Max
  177. }
  178. // Start color
  179. label titleStartColor : titleSize
  180. {
  181. text = Start Color
  182. }
  183. slider startRed
  184. {
  185. style = noBorder
  186. size = 150, 50
  187. orientation = HORIZONTAL
  188. min = 0
  189. max = 1
  190. text = Red
  191. textAlignment = ALIGN_TOP_HCENTER
  192. valueTextVisible = true
  193. valueTextAlignment = ALIGN_BOTTOM_HCENTER
  194. valueTextPrecision = 2
  195. consumeInputEvents = false
  196. }
  197. slider startGreen : startRed
  198. {
  199. text = Green
  200. }
  201. slider startBlue : startRed
  202. {
  203. text = Blue
  204. }
  205. slider startAlpha : startRed
  206. {
  207. text = Alpha
  208. }
  209. // End color
  210. label titleEndColor : titleSize
  211. {
  212. text = End Color
  213. }
  214. slider endRed : startRed
  215. {
  216. }
  217. slider endGreen : startGreen
  218. {
  219. }
  220. slider endBlue : startBlue
  221. {
  222. }
  223. slider endAlpha : startAlpha
  224. {
  225. }
  226. // Position variance
  227. label titlePositionVar : titleSize
  228. {
  229. text = Position Var.
  230. }
  231. slider posVarX : startRed
  232. {
  233. min = 0
  234. max = 10
  235. text = X
  236. }
  237. slider posVarY : posVarX
  238. {
  239. text = Y
  240. }
  241. slider posVarZ : posVarX
  242. {
  243. text = Z
  244. }
  245. // Initial velocity
  246. label titleVelocity : titleSize
  247. {
  248. text = Velocity
  249. }
  250. slider velocityX : posVarX
  251. {
  252. min = -10
  253. max = 10
  254. text = X
  255. }
  256. slider velocityY : velocityX
  257. {
  258. text = Y
  259. }
  260. slider velocityZ : velocityX
  261. {
  262. text = Z
  263. }
  264. // Velocity variance
  265. label titleVelocityVar : titleSize
  266. {
  267. text = Velocity Var.
  268. }
  269. slider velocityVarX : posVarX
  270. {
  271. }
  272. slider velocityVarY : posVarY
  273. {
  274. }
  275. slider velocityVarZ : posVarZ
  276. {
  277. }
  278. // Acceleration
  279. label titleAcceleration : titleSize
  280. {
  281. text = Accel.
  282. }
  283. slider accelX : velocityX
  284. {
  285. text = X
  286. }
  287. slider accelY : accelX
  288. {
  289. text = Y
  290. }
  291. slider accelZ : accelX
  292. {
  293. text = Z
  294. }
  295. // Acceleration variance
  296. label titleAccelerationVar : titleSize
  297. {
  298. text = Accel. Var.
  299. }
  300. slider accelVarX : posVarX
  301. {
  302. text = X
  303. }
  304. slider accelVarY : posVarX
  305. {
  306. text = Y
  307. }
  308. slider accelVarZ : posVarX
  309. {
  310. text = Z
  311. }
  312. // Local rotation speed
  313. label titleSpinSpeed : titleSize
  314. {
  315. text = Spin Speed
  316. }
  317. slider spinSpeedMin : velocityX
  318. {
  319. text = Min
  320. }
  321. slider spinSpeedMax : spinSpeedMin
  322. {
  323. text = Max
  324. }
  325. // Rotation axis
  326. label titleRotationAxis : titleSize
  327. {
  328. text = Axis Rotation
  329. }
  330. slider axisX : startRed
  331. {
  332. text = X
  333. }
  334. slider axisY : axisX
  335. {
  336. text = Y
  337. }
  338. slider axisZ : axisX
  339. {
  340. text = Z
  341. }
  342. // Rotation axis variance
  343. label titleRotationAxisVar : titleSize
  344. {
  345. text = Axis Var.
  346. }
  347. slider axisVarX : axisX
  348. {
  349. text = X
  350. }
  351. slider axisVarY : axisVarX
  352. {
  353. text = Y
  354. }
  355. slider axisVarZ : axisVarX
  356. {
  357. text = Z
  358. }
  359. // Axis rotation speed
  360. label titleRotationSpeed : titleSize
  361. {
  362. text = Rotation Speed
  363. }
  364. slider rotationSpeedMin : velocityX
  365. {
  366. text = Min
  367. }
  368. slider rotationSpeedMax : rotationSpeedMin
  369. {
  370. text = Max
  371. }
  372. }
  373. }