editor.form 8.8 KB

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