| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562 |
- form particleEditor
- {
- ${leftWidth} = 195
- size = 95%, 100%
- consumeInputEvents = false
- style = Empty
- container leftSide
- {
- layout = LAYOUT_VERTICAL
- width = ${leftWidth}
- container saveLoad
- {
- style = Form
- width = 100%
- layout = LAYOUT_VERTICAL
- button save
- {
- width = 100%
- text = Save
- }
- button load : save
- {
- text = Load
- }
- }
- // Image settings
- container image
- {
- style = Form
- width = 100%
- layout
- {
- type = LAYOUT_VERTICAL
- spacing = 5
- }
- label
- {
- text = Image
- fontSize = 18
- }
- image sprite
- {
- path = res/fire.png
- size = 120, 120
- }
- container imageSettings
- {
- width = 100%
- layout = LAYOUT_VERTICAL
- radioButton additive
- {
- text = Additive
- group = blendMode
- height = 25
- selected = true
- }
- radioButton transparent : additive
- {
- text = Transparent
- selected = false
- }
- radioButton multiply : transparent
- {
- text = Multiply
- selected = false
- }
- radioButton opaque : transparent
- {
- text = Opaque
- selected = false
- }
- container
- {
- width = 100%
- label
- {
- text = Frame Count:
- alignment = ALIGN_VCENTER_LEFT
- }
- textBox frameCount
- {
- text = 1
- size = 60, 32
- position = 110, 0
- }
- }
- container
- {
- width = 100%
- label
- {
- text = Frame Width:
- alignment = ALIGN_VCENTER_LEFT
- }
- textBox frameWidth
- {
- text = 1
- size = 60, 32
- position = 110, 0
- }
- }
- container
- {
- width = 100%
- label
- {
- text = Frame Height:
- alignment = ALIGN_VCENTER_LEFT
- }
- textBox frameHeight
- {
- text = 1
- size = 60, 32
- position = 110, 0
- }
- }
- button updateFrames
- {
- width = 100%
- text = Update
- }
- }
- }
- // Emission settings
- container emission
- {
- style = Form
- layout = LAYOUT_VERTICAL
- width = ${leftWidth}
- // Burst emission
- button emit
- {
- width = 100%
- text = Emit
- }
- label spacer
- {
- size = 5,5
- }
- // Emission rate
- slider emissionRate
- {
- width = 100%
- orientation = HORIZONTAL
- min = 1
- max = 500
- value = 100
- step = 1
- text = Emission Rate
- textAlignment = ALIGN_TOP_HCENTER
- valueTextVisible = true
- valueTextAlignment = ALIGN_BOTTOM_HCENTER
- valueTextPrecision = 2
- }
- slider burstSize : emissionRate
- {
- text = Burst Size
- value = 20
- max = 50
- step = 1
- }
- // Start / Stop Emitter
- checkBox started
- {
- text = Running
- checked = true
- }
- }
- button reset
- {
- width = ${leftWidth}
- text = Reset
- }
- }
- container particleProperties
- {
- style = Form
- alignment = ALIGN_TOP_RIGHT
- y = 50
- size = 210, 100%
- layout = LAYOUT_VERTICAL
- scroll = SCROLL_VERTICAL
- scrollBarsAutoHide = false
- // Particle Size
- label titleSize
- {
- padding
- {
- bottom = 5
- }
- text = Particle Size
- fontSize = 18
- }
- slider startMin
- {
- width = 100%
- orientation = HORIZONTAL
- min = 0
- max = 10
- value = 1
- step = 0.1
- text = Min Begin
- textAlignment = ALIGN_TOP_HCENTER
- valueTextVisible = true
- valueTextAlignment = ALIGN_BOTTOM_HCENTER
- valueTextPrecision = 2
- }
- slider startMax : startMin
- {
- text = Max Begin
- }
- slider endMin : startMin
- {
- text = Min End
- }
- slider endMax : startMin
- {
- text = Max End
- }
- // Energy
- label titleEnergy : titleSize
- {
- text = Energy
- }
- slider energyMin
- {
- width = 100%
- orientation = HORIZONTAL
- min = 0
- max = 5000
- step = 1
- text = Min
- textAlignment = ALIGN_TOP_HCENTER
- valueTextVisible = true
- valueTextAlignment = ALIGN_BOTTOM_HCENTER
- valueTextPrecision = 2
- }
- slider energyMax : energyMin
- {
- text = Max
- }
- // Start color
- label titleStartColor : titleSize
- {
- text = Start Color
- }
- slider startRed
- {
- width = 100%
- orientation = HORIZONTAL
- min = 0
- max = 1
- text = Red
- textAlignment = ALIGN_TOP_HCENTER
- valueTextVisible = true
- valueTextAlignment = ALIGN_BOTTOM_HCENTER
- valueTextPrecision = 2
- }
- slider startGreen : startRed
- {
- text = Green
- }
- slider startBlue : startRed
- {
- text = Blue
- }
- slider startAlpha : startRed
- {
- text = Alpha
- }
- // End color
- label titleEndColor : titleSize
- {
- text = End Color
- }
- slider endRed : startRed
- {
- }
- slider endGreen : startGreen
- {
- }
- slider endBlue : startBlue
- {
- }
- slider endAlpha : startAlpha
- {
- }
- // Position
- label titlePosition : titleSize
- {
- text = Position
- }
- slider posX : startRed
- {
- min = -2
- max = 2
- step = 0.1
- text = X
- }
- slider posY : posX
- {
- text = Y
- }
- slider posZ : posX
- {
- text = Z
- }
- // Position variance
- label titlePositionVar : titleSize
- {
- text = Position Var.
- }
- slider posVarX : startRed
- {
- min = 0
- max = 10
- text = X
- }
- slider posVarY : posVarX
- {
- text = Y
- }
- slider posVarZ : posVarX
- {
- text = Z
- }
- // Initial velocity
- label titleVelocity : titleSize
- {
- text = Velocity
- }
- slider velocityX : posVarX
- {
- min = -10
- max = 10
- text = X
- }
- slider velocityY : velocityX
- {
- text = Y
- }
- slider velocityZ : velocityX
- {
- text = Z
- }
- // Velocity variance
- label titleVelocityVar : titleSize
- {
- text = Velocity Var.
- }
- slider velocityVarX : posVarX
- {
- }
- slider velocityVarY : posVarY
- {
- }
- slider velocityVarZ : posVarZ
- {
- }
- // Acceleration
- label titleAcceleration : titleSize
- {
- text = Accel.
- }
- slider accelX : velocityX
- {
- text = X
- }
- slider accelY : accelX
- {
- text = Y
- }
- slider accelZ : accelX
- {
- text = Z
- }
- // Acceleration variance
- label titleAccelerationVar : titleSize
- {
- text = Accel. Var.
- }
- slider accelVarX : posVarX
- {
- text = X
- }
- slider accelVarY : posVarX
- {
- text = Y
- }
- slider accelVarZ : posVarX
- {
- text = Z
- }
- // Local rotation speed
- label titleSpinSpeed : titleSize
- {
- text = Spin Speed
- }
- slider spinSpeedMin : velocityX
- {
- text = Min
- }
- slider spinSpeedMax : spinSpeedMin
- {
- text = Max
- }
- // Rotation axis
- label titleRotationAxis : titleSize
- {
- text = Axis Rotation
- }
- slider axisX : startRed
- {
- text = X
- }
- slider axisY : axisX
- {
- text = Y
- }
- slider axisZ : axisX
- {
- text = Z
- }
- // Rotation axis variance
- label titleRotationAxisVar : titleSize
- {
- text = Axis Var.
- }
- slider axisVarX : axisX
- {
- text = X
- }
- slider axisVarY : axisVarX
- {
- text = Y
- }
- slider axisVarZ : axisVarX
- {
- text = Z
- }
- // Axis rotation speed
- label titleRotationSpeed : titleSize
- {
- text = Rotation Speed
- }
- slider rotationSpeedMin : velocityX
- {
- text = Min
- }
- slider rotationSpeedMax : rotationSpeedMin
- {
- text = Max
- }
- }
- // Camera Zoom
- container zoom
- {
- alignment = ALIGN_BOTTOM_HCENTER
- button zoomIn
- {
- width = 60
- text = +
- fontSize = 30
- }
- button zoomOut : zoomIn
- {
- x = 60
- text = -
- }
- }
- }
|