ParticleEditor.ed.gui 169 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324
  1. //-----------------------------------------------------------------------------
  2. // Torque
  3. // Copyright GarageGames, LLC 2011
  4. //-----------------------------------------------------------------------------
  5. $PE_guielement_pos_single_container = "0 0";
  6. $PE_guielement_ext_single_container = "184 20";
  7. $PE_guielement_pos_name = "1 0";
  8. $PE_guielement_ext_name = "70 18";
  9. $PE_guielement_pos_slider = "74 2";
  10. $PE_guielement_ext_slider = "58 12";
  11. $PE_guielement_pos_value = "138 0";
  12. $PE_guielement_ext_value = "36 18";
  13. $PE_guielement_pos_textedit = "74 0";
  14. $PE_guielement_ext_textedit = "100 18";
  15. $PE_guielement_ext_checkbox_name = "156 18";
  16. $PE_guielement_pos_checkbox = "161 0";
  17. $PE_guielement_ext_checkbox = "15 18";
  18. $PE_guielement_pos_colorpicker = "158 0";
  19. $PE_guielement_ext_colorpicker = "18 18";
  20. //--- OBJECT WRITE BEGIN ---
  21. %guiContent = new GuiWindowCollapseCtrl(PE_Window) {
  22. canSaveDynamicFields = "0";
  23. Enabled = "1";
  24. isContainer = "1";
  25. Profile = "ToolsGuiWindowProfile";
  26. Position = firstWord($pref::Video::mode) - 209
  27. SPC getWord(EditorGuiToolbar.extent, 1) -1;
  28. Extent = "210 696";
  29. MinExtent = "210 140";
  30. HorizSizing = "windowRelative";
  31. VertSizing = "windowRelative";
  32. canSave = "1";
  33. Visible = "1";
  34. hovertime = "1000";
  35. Margin = "0 0 0 0";
  36. Padding = "0 0 0 0";
  37. AnchorTop = "1";
  38. AnchorBottom = "0";
  39. AnchorLeft = "1";
  40. AnchorRight = "0";
  41. resizeWidth = "1";
  42. resizeHeight = "1";
  43. canMove = "1";
  44. canClose = "0";
  45. canMinimize = "0";
  46. canMaximize = "0";
  47. minSize = "50 50";
  48. closeCommand = "";
  49. EdgeSnap = "0";
  50. text = "Particle Editor";
  51. new GuiTabBookCtrl(PE_TabBook) {
  52. canSaveDynamicFields = "0";
  53. isContainer = "1";
  54. internalName = "EditorTabBook";
  55. Profile = "ToolsGuiTabBookProfile";
  56. HorizSizing = "width";
  57. VertSizing = "height";
  58. position = "6 27";
  59. Extent = "197 289";
  60. MinExtent = "8 2";
  61. canSave = "1";
  62. Visible = "1";
  63. hovertime = "1000";
  64. Margin = "3 2 3 3";
  65. Docking = "client";
  66. Padding = "0 0 0 0";
  67. AnchorTop = "1";
  68. AnchorBottom = "0";
  69. AnchorLeft = "1";
  70. AnchorRight = "0";
  71. TabPosition = "Top";
  72. TabMargin = "0";
  73. MinTabWidth = "64";
  74. new GuiTabPageCtrl(PE_EmitterEditor) {
  75. canSaveDynamicFields = "0";
  76. Enabled = "1";
  77. isContainer = "1";
  78. Profile = "ToolsGuiEditorTabPage";
  79. HorizSizing = "width";
  80. VertSizing = "height";
  81. position = "0 19";
  82. Extent = "197 271";
  83. MinExtent = "8 2";
  84. canSave = "1";
  85. Visible = "1";
  86. hovertime = "1000";
  87. Margin = "0 0 0 0";
  88. Padding = "0 0 0 0";
  89. AnchorTop = "1";
  90. AnchorBottom = "0";
  91. AnchorLeft = "1";
  92. AnchorRight = "0";
  93. text = "Emitter";
  94. maxLength = "1024";
  95. new GuiScrollCtrl() {
  96. canSaveDynamicFields = "0";
  97. Enabled = "1";
  98. isContainer = "1";
  99. Profile = "ToolsGuiScrollProfile";
  100. HorizSizing = "width";
  101. VertSizing = "height";
  102. Position = "0 0";
  103. Extent = "197 271";
  104. MinExtent = "8 8";
  105. canSave = "1";
  106. Visible = "1";
  107. hovertime = "1000";
  108. willFirstRespond = "1";
  109. hScrollBar = "alwaysOff";
  110. vScrollBar = "dynamic";
  111. lockHorizScroll = false;
  112. lockVertScroll = "false";
  113. constantThumbHeight = "0";
  114. childMargin = "0 0";
  115. new GuiStackControl() {
  116. StackingType = "Vertical";
  117. HorizStacking = "Left to Right";
  118. VertStacking = "Top to Bottom";
  119. Padding = "0";
  120. canSaveDynamicFields = "0";
  121. Enabled = "1";
  122. isContainer = "1";
  123. Profile = "ToolsGuiDefaultProfile";
  124. HorizSizing = "width";
  125. VertSizing = "bottom";
  126. Position = "1 3";
  127. Extent = "197 16";
  128. MinExtent = "16 16";
  129. canSave = "1";
  130. isDecoy = "0";
  131. Visible = "1";
  132. tooltipprofile = "ToolsGuiToolTipProfile";
  133. hovertime = "1000";
  134. new GuiControl(PEE_EmitterSelector_Control){ // PEE_EmitterSelector
  135. class = "QuickEditDropDownTextEditCtrl";
  136. isContainer = "1";
  137. HorizSizing = "width";
  138. VertSizing = "bottom";
  139. Position = $PE_guielement_pos_single_container ;
  140. Extent = "197 26" ;
  141. new GuiPopUpMenuCtrl(PEE_EmitterSelector) {
  142. internalName = "PopUpMenu";
  143. canSaveDynamicFields = "0";
  144. Enabled = "1";
  145. isContainer = "0";
  146. Profile = "ToolsGuiPopUpMenuProfile";
  147. HorizSizing = "width";
  148. VertSizing = "bottom";
  149. position = "4 4";
  150. Extent = "123 18";
  151. MinExtent = "8 2";
  152. canSave = "1";
  153. Visible = "1";
  154. Command = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor::onNewEmitter();";
  155. hovertime = "1000";
  156. Margin = "0 0 0 0";
  157. Padding = "0 0 0 0";
  158. AnchorTop = "1";
  159. AnchorBottom = "0";
  160. AnchorLeft = "1";
  161. AnchorRight = "0";
  162. maxLength = "255";
  163. maxPopupHeight = "200";
  164. sbUsesNAColor = "0";
  165. reverseTextList = "0";
  166. bitmapBounds = "16 16";
  167. };
  168. new GuiTextEditCtrl() {
  169. internalName = "TextEdit";
  170. canSaveDynamicFields = "0";
  171. Enabled = "1";
  172. isContainer = "0";
  173. Profile = "GuiDropdownTextEditProfile";
  174. HorizSizing = "width";
  175. VertSizing = "bottom";
  176. position = "4 4";
  177. Extent = "107 18";
  178. MinExtent = "8 2";
  179. canSave = "1";
  180. Visible = "1";
  181. hovertime = "1000";
  182. Margin = "0 0 0 0";
  183. Padding = "0 0 0 0";
  184. AnchorTop = "1";
  185. AnchorBottom = "0";
  186. AnchorLeft = "1";
  187. AnchorRight = "0";
  188. text = "None";
  189. maxLength = "1024";
  190. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);";
  191. };
  192. new GuiBitmapButtonCtrl() {
  193. canSaveDynamicFields = "0";
  194. Enabled = "1";
  195. isContainer = "0";
  196. Profile = "ToolsGuiDefaultProfile";
  197. HorizSizing = "left";
  198. VertSizing = "bottom";
  199. position = "131 5";
  200. Extent = "17 17";
  201. MinExtent = "8 2";
  202. canSave = "1";
  203. Visible = "1";
  204. Command = "PE_EmitterEditor.showNewDialog();";
  205. hovertime = "1000";
  206. groupNum = "-1";
  207. buttonType = "PushButton";
  208. useMouseEvents = "0";
  209. bitmap = "tools/gui/images/new";
  210. tooltip = "Create New Emitter";
  211. };
  212. new GuiBitmapButtonCtrl() {
  213. canSaveDynamicFields = "0";
  214. Enabled = "1";
  215. isContainer = "0";
  216. Profile = "ToolsGuiDefaultProfile";
  217. HorizSizing = "left";
  218. VertSizing = "bottom";
  219. position = "147 5";
  220. Extent = "17 17";
  221. MinExtent = "8 2";
  222. canSave = "1";
  223. Visible = "1";
  224. Command = "";
  225. hovertime = "1000";
  226. groupNum = "-1";
  227. buttonType = "PushButton";
  228. useMouseEvents = "0";
  229. bitmap = "tools/gui/images/save-icon";
  230. command = "PE_EmitterEditor.saveEmitter( " @ PE_EmitterEditor.currEmitter @ " ); PE_ParticleEditor.saveParticle( PE_ParticleEditor.currParticle );";
  231. tooltip = "Save Current Emitter";
  232. };
  233. new GuiBitmapButtonCtrl() {
  234. canSaveDynamicFields = "0";
  235. Enabled = "1";
  236. isContainer = "0";
  237. Profile = "ToolsGuiDefaultProfile";
  238. HorizSizing = "left";
  239. VertSizing = "bottom";
  240. position = "164 5";
  241. Extent = "17 17";
  242. MinExtent = "8 2";
  243. canSave = "1";
  244. Visible = "1";
  245. Command = "PE_EmitterEditor.showDeleteDialog();";
  246. hovertime = "1000";
  247. groupNum = "-1";
  248. buttonType = "PushButton";
  249. useMouseEvents = "0";
  250. bitmap = "tools/gui/images/delete";
  251. tooltip = "Delete Current Emitter";
  252. };
  253. };
  254. new GuiRolloutCtrl() {
  255. class = "BehaviorQuickEditRollout";
  256. superclass = LBQuickEditRollout;
  257. Profile = "GuiRolloutProfile";
  258. HorizSizing = "width";
  259. VertSizing = "bottom";
  260. Position = "0 0";
  261. Extent = "197 0";
  262. Caption = "Basic";
  263. Margin = "4 4 4 0";
  264. DragSizable = false;
  265. container = true;
  266. parentRollout = %this.rollout;
  267. object = %behavior;
  268. new GuiStackControl() {
  269. StackingType = "Vertical";
  270. HorizStacking = "Left to Right";
  271. VertStacking = "Top to Bottom";
  272. Padding = "0";
  273. canSaveDynamicFields = "0";
  274. Enabled = "1";
  275. isContainer = "1";
  276. Profile = "ToolsGuiDefaultProfile";
  277. HorizSizing = "width";
  278. VertSizing = "bottom";
  279. Position = "1 3";
  280. Extent = "197 16";
  281. MinExtent = "16 16";
  282. canSave = "1";
  283. isDecoy = "0";
  284. Visible = "1";
  285. tooltipprofile = "ToolsGuiToolTipProfile";
  286. hovertime = "1000";
  287. new GuiControl(){ // Emitter PEE_lifetimeMS
  288. isContainer = "1";
  289. class = "AggregateControl";
  290. HorizSizing = "width";
  291. VertSizing = "bottom";
  292. Position = $PE_guielement_pos_single_container ;
  293. Extent = $PE_guielement_ext_single_container ;
  294. new GuiTextCtrl() {
  295. canSaveDynamicFields = "0";
  296. Enabled = "1";
  297. isContainer = "0";
  298. Profile = "ToolsGuiTextProfile";
  299. HorizSizing = "width";
  300. VertSizing = "bottom";
  301. position = $PE_guielement_pos_name;
  302. Extent = $PE_guielement_ext_name;
  303. MinExtent = "8 2";
  304. canSave = "1";
  305. Visible = "1";
  306. hovertime = "1000";
  307. Margin = "0 0 0 0";
  308. Padding = "0 0 0 0";
  309. AnchorTop = "1";
  310. AnchorBottom = "0";
  311. AnchorLeft = "1";
  312. AnchorRight = "0";
  313. text = "Life";
  314. maxLength = "255";
  315. };
  316. new GuiSliderCtrl(PEE_lifetimeMS) {
  317. internalName = "PEE_lifetimeMS_slider";
  318. canSaveDynamicFields = "0";
  319. Enabled = "1";
  320. isContainer = "0";
  321. Profile = "ToolsGuiSliderProfile";
  322. HorizSizing = "left";
  323. VertSizing = "bottom";
  324. position = $PE_guielement_pos_slider;
  325. Extent = $PE_guielement_ext_slider;
  326. MinExtent = "8 2";
  327. canSave = "1";
  328. Visible = "1";
  329. Command = "PE_EmitterEditor.updateLifeFields( false, $ThisControl.getValue(), true, true );";
  330. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateLifeFields( false, $ThisControl.getValue(), true, false );";
  331. hovertime = "1000";
  332. range = "0 1000";
  333. ticks = "0";
  334. value = "0";
  335. };
  336. new GuiTextEditCtrl() {
  337. internalName = "PEE_lifetimeMS_textEdit";
  338. Profile = "ToolsGuiTextEditProfile";
  339. HorizSizing = "left";
  340. VertSizing = "bottom";
  341. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateLifeFields( false, $ThisControl.getValue() );";
  342. position = $PE_guielement_pos_value;
  343. Extent = $PE_guielement_ext_value;
  344. };
  345. };
  346. new GuiControl(){ // Emitter PEE_lifetimeVarianceMS
  347. isContainer = "1";
  348. class = "AggregateControl";
  349. HorizSizing = "width";
  350. VertSizing = "bottom";
  351. Position = $PE_guielement_pos_single_container ;
  352. Extent = $PE_guielement_ext_single_container ;
  353. new GuiTextCtrl() {
  354. canSaveDynamicFields = "0";
  355. Enabled = "1";
  356. isContainer = "0";
  357. Profile = "ToolsGuiTextProfile";
  358. HorizSizing = "width";
  359. VertSizing = "bottom";
  360. position = $PE_guielement_pos_name;
  361. Extent = $PE_guielement_ext_name;
  362. MinExtent = "8 2";
  363. canSave = "1";
  364. Visible = "1";
  365. hovertime = "1000";
  366. Margin = "0 0 0 0";
  367. Padding = "0 0 0 0";
  368. AnchorTop = "1";
  369. AnchorBottom = "0";
  370. AnchorLeft = "1";
  371. AnchorRight = "0";
  372. text = "Life Random";
  373. maxLength = "255";
  374. };
  375. new GuiSliderCtrl(PEE_lifetimeVarianceMS) {
  376. internalName = "PEE_lifetimeVarianceMS_slider";
  377. canSaveDynamicFields = "0";
  378. Enabled = "1";
  379. isContainer = "0";
  380. Profile = "ToolsGuiSliderProfile";
  381. HorizSizing = "left";
  382. VertSizing = "bottom";
  383. position = $PE_guielement_pos_slider;
  384. Extent = $PE_guielement_ext_slider;
  385. MinExtent = "8 2";
  386. canSave = "1";
  387. Visible = "1";
  388. Command = "PE_EmitterEditor.updateLifeFields( true, $ThisControl.getValue(), true, true );";
  389. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateLifeFields( true, $ThisControl.getValue(), true, false );";
  390. hovertime = "1000";
  391. range = "0 1000";
  392. ticks = "0";
  393. value = "";
  394. };
  395. new GuiTextEditCtrl() {
  396. internalName = "PEE_lifetimeVarianceMS_textEdit";
  397. Profile = "ToolsGuiTextEditProfile";
  398. HorizSizing = "left";
  399. VertSizing = "bottom";
  400. position = $PE_guielement_pos_value;
  401. Extent = $PE_guielement_ext_value;
  402. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateLifeFields( true, $ThisControl.getValue() );";
  403. };
  404. };
  405. new GuiControl(){ // Emitter Infinite Loop
  406. isContainer = "1";
  407. HorizSizing = "width";
  408. VertSizing = "bottom";
  409. Position = $PE_guielement_pos_single_container ;
  410. Extent = $PE_guielement_ext_single_container ;
  411. new GuiTextCtrl() {
  412. Profile = "ToolsGuiTextProfile";
  413. HorizSizing = "width";
  414. VertSizing = "bottom";
  415. position = $PE_guielement_pos_name;
  416. Extent = $PE_guielement_ext_checkbox_name;
  417. text = "Infinite Loop";
  418. };
  419. new GuiCheckBoxCtrl() {
  420. internalName = "PEE_infiniteLoop";
  421. Profile = "ToolsGuiCheckBoxProfile";
  422. HorizSizing = "left";
  423. VertSizing = "bottom";
  424. position = $PE_guielement_pos_checkbox;
  425. Extent = $PE_guielement_ext_checkbox;
  426. Command = "PE_EmitterEditor.updateLifeFieldsInfiniteLoop();";
  427. text = "";
  428. };
  429. };
  430. new GuiControl(){ // Spacer ----------------------------
  431. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  432. new GuiBitmapCtrl(){
  433. position="0 3"; extent ="188 2"; HorizSizing = "width";
  434. bitmap ="tools/gui/images/separator-v";
  435. };
  436. };// end spacer ----------------------------------------
  437. new GuiControl(){ // Emitter Amount
  438. class = "AggregateControl";
  439. isContainer = "1";
  440. HorizSizing = "width";
  441. VertSizing = "bottom";
  442. Position = $PE_guielement_pos_single_container ;
  443. Extent = $PE_guielement_ext_single_container ;
  444. new GuiTextCtrl() {
  445. Profile = "ToolsGuiTextProfile";
  446. HorizSizing = "width";
  447. VertSizing = "bottom";
  448. position = $PE_guielement_pos_name;
  449. Extent = $PE_guielement_ext_name;
  450. text = "Amount";
  451. };
  452. new GuiSliderCtrl(PEE_ejectionPeriodMS) {
  453. internalName = "PEE_ejectionPeriodMS_slider";
  454. canSaveDynamicFields = "0";
  455. Enabled = "1";
  456. isContainer = "0";
  457. Profile = "ToolsGuiSliderProfile";
  458. HorizSizing = "left";
  459. VertSizing = "bottom";
  460. position = $PE_guielement_pos_slider;
  461. Extent = $PE_guielement_ext_slider;
  462. MinExtent = "8 2";
  463. canSave = "1";
  464. Visible = "1";
  465. Command = "PE_EmitterEditor.updateAmountFields( false, $ThisControl.getValue(), true, true );";
  466. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateAmountFields( false, $ThisControl.getValue(), true, false );";
  467. hovertime = "1000";
  468. range = "1 1000";
  469. ticks = "0";
  470. value = "1";
  471. };
  472. new GuiTextEditCtrl() {
  473. internalName = "PEE_ejectionPeriodMS_textEdit";
  474. Profile = "ToolsGuiTextEditProfile";
  475. HorizSizing = "left";
  476. VertSizing = "bottom";
  477. position = $PE_guielement_pos_value;
  478. Extent = $PE_guielement_ext_value;
  479. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateAmountFields( false, $ThisControl.getValue() );";
  480. };
  481. };
  482. new GuiControl(){ // Emitter Amount Random
  483. class = "AggregateControl";
  484. isContainer = "1";
  485. HorizSizing = "width";
  486. VertSizing = "bottom";
  487. Position = $PE_guielement_pos_single_container ;
  488. Extent = $PE_guielement_ext_single_container ;
  489. new GuiTextCtrl() {
  490. Profile = "ToolsGuiTextProfile";
  491. HorizSizing = "width";
  492. VertSizing = "bottom";
  493. position = $PE_guielement_pos_name;
  494. Extent = $PE_guielement_ext_name;
  495. text = "Amount Random";
  496. };
  497. new GuiSliderCtrl(PEE_periodVarianceMS) {
  498. internalName = "PEE_periodVarianceMS_slider";
  499. canSaveDynamicFields = "0";
  500. Enabled = "1";
  501. isContainer = "0";
  502. Profile = "ToolsGuiSliderProfile";
  503. HorizSizing = "left";
  504. VertSizing = "bottom";
  505. position = $PE_guielement_pos_slider;
  506. Extent = $PE_guielement_ext_slider;
  507. MinExtent = "8 2";
  508. canSave = "1";
  509. Visible = "1";
  510. Command = "PE_EmitterEditor.updateAmountFields( true, $ThisControl.getValue(), true, true );";
  511. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateAmountFields( true, $ThisControl.getValue(), true, false );";
  512. hovertime = "1000";
  513. range = "0 999";
  514. ticks = "0";
  515. value = "1";
  516. };
  517. new GuiTextEditCtrl() {
  518. internalName = "PEE_periodVarianceMS_textEdit";
  519. Profile = "ToolsGuiTextEditProfile";
  520. HorizSizing = "left";
  521. VertSizing = "bottom";
  522. position = $PE_guielement_pos_value;
  523. Extent = $PE_guielement_ext_value;
  524. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateAmountFields( true, $ThisControl.getValue() );";
  525. };
  526. };
  527. new GuiControl(){ // Particle glow
  528. isContainer = "1";
  529. HorizSizing = "width";
  530. VertSizing = "bottom";
  531. Position = $PE_guielement_pos_single_container ;
  532. Extent = $PE_guielement_ext_single_container ;
  533. new GuiTextCtrl() {
  534. Profile = "ToolsGuiTextProfile";
  535. HorizSizing = "width";
  536. VertSizing = "bottom";
  537. position = $PE_guielement_pos_name;
  538. Extent = $PE_guielement_ext_checkbox_name;
  539. text = "Glow";
  540. };
  541. new GuiCheckBoxCtrl() {
  542. internalName = "PEE_glow";
  543. Profile = "ToolsGuiCheckBoxProfile";
  544. HorizSizing = "left";
  545. VertSizing = "bottom";
  546. position = $PE_guielement_pos_checkbox;
  547. Extent = $PE_guielement_ext_checkbox;
  548. Command = "PE_EmitterEditor.updateEmitter( \"glow\", $ThisControl.getValue());";
  549. text = "";
  550. };
  551. };
  552. };// end stack
  553. }; // end "basic" rollout
  554. new GuiRolloutCtrl() {
  555. class = "BehaviorQuickEditRollout";
  556. superclass = LBQuickEditRollout;
  557. Profile = "GuiRolloutProfile";
  558. HorizSizing = "width";
  559. VertSizing = "bottom";
  560. Position = "0 0";
  561. Extent = "197 0";
  562. Caption = "Motion";
  563. Margin = "4 4 4 0";
  564. DragSizable = false;
  565. container = true;
  566. parentRollout = %this.rollout;
  567. object = %behavior;
  568. new GuiStackControl() {
  569. StackingType = "Vertical";
  570. HorizStacking = "Left to Right";
  571. VertStacking = "Top to Bottom";
  572. Padding = "0";
  573. canSaveDynamicFields = "0";
  574. Enabled = "1";
  575. isContainer = "1";
  576. Profile = "ToolsGuiDefaultProfile";
  577. HorizSizing = "width";
  578. VertSizing = "bottom";
  579. Position = "1 3";
  580. Extent = "197 16";
  581. MinExtent = "16 16";
  582. canSave = "1";
  583. isDecoy = "0";
  584. Visible = "1";
  585. tooltipprofile = "ToolsGuiToolTipProfile";
  586. hovertime = "1000";
  587. new GuiControl(){ // Emitter speed
  588. class = "AggregateControl";
  589. isContainer = "1";
  590. HorizSizing = "width";
  591. VertSizing = "bottom";
  592. Position = $PE_guielement_pos_single_container ;
  593. Extent = $PE_guielement_ext_single_container ;
  594. new GuiTextCtrl() {
  595. Profile = "ToolsGuiTextProfile";
  596. HorizSizing = "width";
  597. VertSizing = "bottom";
  598. position = $PE_guielement_pos_name;
  599. Extent = $PE_guielement_ext_name;
  600. text = "Speed";
  601. };
  602. new GuiSliderCtrl(PEE_ejectionVelocity) {
  603. internalName = "PEE_ejectionVelocity_slider";
  604. canSaveDynamicFields = "0";
  605. Enabled = "1";
  606. isContainer = "0";
  607. Profile = "ToolsGuiSliderProfile";
  608. HorizSizing = "left";
  609. VertSizing = "bottom";
  610. position = $PE_guielement_pos_slider;
  611. Extent = $PE_guielement_ext_slider;
  612. MinExtent = "8 2";
  613. canSave = "1";
  614. Visible = "1";
  615. Command = "PE_EmitterEditor.updateSpeedFields( false, $ThisControl.getValue(), true, true );";
  616. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateSpeedFields( false, $ThisControl.getValue(), true, false );";
  617. hovertime = "1000";
  618. range = "0 100";
  619. ticks = "0";
  620. value = "0";
  621. };
  622. new GuiTextEditCtrl() {
  623. internalName = "PEE_ejectionVelocity_textEdit";
  624. Profile = "ToolsGuiTextEditProfile";
  625. HorizSizing = "left";
  626. VertSizing = "bottom";
  627. position = $PE_guielement_pos_value;
  628. Extent = $PE_guielement_ext_value;
  629. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateSpeedFields( false, $ThisControl.getValue() );";
  630. };
  631. };
  632. new GuiControl(){ // Emitter speed random
  633. class = "AggregateControl";
  634. isContainer = "1";
  635. HorizSizing = "width";
  636. VertSizing = "bottom";
  637. Position = $PE_guielement_pos_single_container ;
  638. Extent = $PE_guielement_ext_single_container ;
  639. new GuiTextCtrl() {
  640. Profile = "ToolsGuiTextProfile";
  641. HorizSizing = "width";
  642. VertSizing = "bottom";
  643. position = $PE_guielement_pos_name;
  644. Extent = $PE_guielement_ext_name;
  645. text = "Speed Random";
  646. };
  647. new GuiSliderCtrl(PEE_velocityVariance) {
  648. internalName = "PEE_velocityVariance_slider";
  649. canSaveDynamicFields = "0";
  650. Enabled = "1";
  651. isContainer = "0";
  652. Profile = "ToolsGuiSliderProfile";
  653. HorizSizing = "left";
  654. VertSizing = "bottom";
  655. position = $PE_guielement_pos_slider;
  656. Extent = $PE_guielement_ext_slider;
  657. MinExtent = "8 2";
  658. canSave = "1";
  659. Visible = "1";
  660. Command = "PE_EmitterEditor.updateSpeedFields( true, $ThisControl.getValue(), true, true );";
  661. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateSpeedFields( true, $ThisControl.getValue(), true, false );";
  662. hovertime = "1000";
  663. range = "0 100";
  664. ticks = "0";
  665. value = "0";
  666. };
  667. new GuiTextEditCtrl() {
  668. internalName = "PEE_velocityVariance_textEdit";
  669. Profile = "ToolsGuiTextEditProfile";
  670. HorizSizing = "left";
  671. VertSizing = "bottom";
  672. position = $PE_guielement_pos_value;
  673. Extent = $PE_guielement_ext_value;
  674. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateSpeedFields( true, $ThisControl.getValue() );";
  675. };
  676. };
  677. new GuiControl(){ // Spacer ----------------------------
  678. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  679. new GuiBitmapCtrl(){
  680. position="0 3"; extent ="188 2"; HorizSizing = "width";
  681. bitmap ="tools/gui/images/separator-v";
  682. };
  683. };// end spacer ----------------------------------------
  684. new GuiControl(){ // Emitter Orient to Movment Direction
  685. isContainer = "1";
  686. HorizSizing = "width";
  687. VertSizing = "bottom";
  688. Position = $PE_guielement_pos_single_container ;
  689. Extent = $PE_guielement_ext_single_container ;
  690. new GuiTextCtrl() {
  691. Profile = "ToolsGuiTextProfile";
  692. HorizSizing = "width";
  693. VertSizing = "bottom";
  694. position = $PE_guielement_pos_name;
  695. Extent = $PE_guielement_ext_checkbox_name;
  696. text = "Orient to Movment Direction";
  697. };
  698. new GuiCheckBoxCtrl() {
  699. internalName = "PEE_orientParticles";
  700. Profile = "ToolsGuiCheckBoxProfile";
  701. HorizSizing = "left";
  702. VertSizing = "bottom";
  703. position = $PE_guielement_pos_checkbox;
  704. Extent = $PE_guielement_ext_checkbox;
  705. text = "";
  706. command = "PE_EmitterEditor.updateEmitter( \"orientParticles\", $ThisControl.getValue());";
  707. };
  708. };
  709. new GuiControl(){ // Emitter Align to a Direction
  710. isContainer = "1";
  711. HorizSizing = "width";
  712. VertSizing = "bottom";
  713. Position = $PE_guielement_pos_single_container ;
  714. Extent = $PE_guielement_ext_single_container ;
  715. new GuiTextCtrl() {
  716. Profile = "ToolsGuiTextProfile";
  717. HorizSizing = "width";
  718. VertSizing = "bottom";
  719. position = $PE_guielement_pos_name;
  720. Extent = $PE_guielement_ext_checkbox_name;
  721. text = "Align to a Direction";
  722. };
  723. new GuiCheckBoxCtrl() {
  724. internalName = "PEE_alignParticles";
  725. Profile = "ToolsGuiCheckBoxProfile";
  726. HorizSizing = "left";
  727. VertSizing = "bottom";
  728. position = $PE_guielement_pos_checkbox;
  729. Extent = $PE_guielement_ext_checkbox;
  730. text = "";
  731. command = "PE_EmitterEditor.updateEmitter( \"alignParticles\", $ThisControl.getValue());";
  732. };
  733. };
  734. new GuiControl(){ // Emitter Align Direction
  735. isContainer = "1";
  736. HorizSizing = "width";
  737. VertSizing = "bottom";
  738. Position = $PE_guielement_pos_single_container ;
  739. Extent = $PE_guielement_ext_single_container ;
  740. new GuiTextCtrl() {
  741. Profile = "ToolsGuiTextProfile";
  742. HorizSizing = "width";
  743. VertSizing = "bottom";
  744. position = $PE_guielement_pos_name;
  745. Extent = $PE_guielement_ext_name;
  746. text = "Align Direction";
  747. };
  748. new GuiTextEditCtrl() {
  749. internalName = "PEE_alignDirection";
  750. Profile = "ToolsGuiTextEditProfile";
  751. HorizSizing = "left";
  752. VertSizing = "bottom";
  753. position = $PE_guielement_pos_textedit;
  754. Extent = $PE_guielement_ext_textedit;
  755. text = "0 0 0";
  756. altCommand = "PE_EmitterEditor.updateEmitter( \"alignDirection\", $ThisControl.getText());";
  757. };
  758. };
  759. }; // end stack
  760. }; // end "motion" rollout
  761. new GuiRolloutCtrl() {
  762. class = "BehaviorQuickEditRollout";
  763. superclass = LBQuickEditRollout;
  764. Profile = "GuiRolloutProfile";
  765. HorizSizing = "width";
  766. VertSizing = "bottom";
  767. Position = "0 0";
  768. Extent = "197 0";
  769. Caption = "Spread";
  770. Margin = "4 4 4 0";
  771. DragSizable = false;
  772. container = true;
  773. parentRollout = %this.rollout;
  774. object = %behavior;
  775. new GuiStackControl() {
  776. StackingType = "Vertical";
  777. HorizStacking = "Left to Right";
  778. VertStacking = "Top to Bottom";
  779. Padding = "0";
  780. canSaveDynamicFields = "0";
  781. Enabled = "1";
  782. isContainer = "1";
  783. Profile = "ToolsGuiDefaultProfile";
  784. HorizSizing = "width";
  785. VertSizing = "bottom";
  786. Position = "1 3";
  787. Extent = "197 16";
  788. MinExtent = "16 16";
  789. canSave = "1";
  790. isDecoy = "0";
  791. Visible = "1";
  792. tooltipprofile = "ToolsGuiToolTipProfile";
  793. hovertime = "1000";
  794. new GuiControl(){ // Emitter Angle Min
  795. isContainer = "1";
  796. class = "AggregateControl";
  797. HorizSizing = "width";
  798. VertSizing = "bottom";
  799. Position = $PE_guielement_pos_single_container ;
  800. Extent = $PE_guielement_ext_single_container ;
  801. new GuiBitmapCtrl(){ // 0 Degrees
  802. HorizSizing = "left";
  803. position = getWord($PE_guielement_pos_slider,0)+4 SPC "0";
  804. Extent = "2 18";
  805. minExtent = "0 0";
  806. bitmap = "tools/gui/images/separator-h";
  807. tooltip = "0 Degrees ( Up )";
  808. };
  809. new GuiBitmapCtrl(){ // 90 Degrees
  810. HorizSizing = "left";
  811. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/4)+1 SPC "0";
  812. Extent = "2 18";
  813. minExtent = "0 0";
  814. bitmap = "tools/gui/images/separator-h";
  815. tooltip = "90 Degrees ( Left )";
  816. };
  817. new GuiBitmapCtrl(){ // 180 Degrees
  818. HorizSizing = "left";
  819. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2)-1 SPC "0";
  820. Extent = "2 18";
  821. minExtent = "0 0";
  822. bitmap = "tools/gui/images/separator-h";
  823. tooltip = "180 Degrees ( Down )";
  824. };
  825. new GuiBitmapCtrl(){ // 270 Degrees
  826. HorizSizing = "left";
  827. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2+mCeil(getWord($PE_guielement_ext_slider,0)/4))-4 SPC "0";
  828. Extent = "2 18";
  829. minExtent = "0 0";
  830. bitmap = "tools/gui/images/separator-h";
  831. tooltip = "270 Degrees ( Right )";
  832. };
  833. new GuiBitmapCtrl(){ // 360 Degrees
  834. HorizSizing = "left";
  835. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0))-5 SPC "0";
  836. Extent = "2 18";
  837. minExtent = "0 0";
  838. bitmap = "tools/gui/images/separator-h";
  839. tooltip = "360 Degrees ( Up )";
  840. };
  841. new GuiTextCtrl() {
  842. Profile = "ToolsGuiTextProfile";
  843. HorizSizing = "width";
  844. VertSizing = "bottom";
  845. position = $PE_guielement_pos_name;
  846. Extent = $PE_guielement_ext_name;
  847. text = "Angle Min";
  848. };
  849. new GuiSliderCtrl(PEE_thetaMin) {
  850. internalName = "PEE_thetaMin_slider";
  851. canSaveDynamicFields = "0";
  852. Enabled = "1";
  853. isContainer = "0";
  854. Profile = "ToolsGuiSliderProfile";
  855. HorizSizing = "left";
  856. VertSizing = "bottom";
  857. position = $PE_guielement_pos_slider;
  858. Extent = $PE_guielement_ext_slider;
  859. MinExtent = "8 2";
  860. canSave = "1";
  861. Visible = "1";
  862. Command = "PE_EmitterEditor.updateEmitter( \"thetaMin\", $ThisControl.getValue(), true, true );";
  863. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"thetaMin\", $ThisControl.getValue(), true, false );";
  864. hovertime = "1000";
  865. range = "0 180";
  866. ticks = "0";
  867. value = "0";
  868. };
  869. new GuiTextEditCtrl() {
  870. internalname = "PEE_thetaMin_textEdit";
  871. Profile = "ToolsGuiTextEditProfile";
  872. HorizSizing = "left";
  873. VertSizing = "bottom";
  874. position = $PE_guielement_pos_value;
  875. Extent = $PE_guielement_ext_value;
  876. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"thetaMin\", $ThisControl.getText());";
  877. };
  878. };
  879. new GuiControl(){ // Emitter Angle Max
  880. isContainer = "1";
  881. class = "AggregateControl";
  882. HorizSizing = "width";
  883. VertSizing = "bottom";
  884. Position = $PE_guielement_pos_single_container ;
  885. Extent = $PE_guielement_ext_single_container ;
  886. new GuiBitmapCtrl(){ // 0 Degrees
  887. HorizSizing = "left";
  888. position = getWord($PE_guielement_pos_slider,0)+4 SPC "0";
  889. Extent = "2 18";
  890. minExtent = "0 0";
  891. bitmap = "tools/gui/images/separator-h";
  892. tooltip = "0 Degrees ( Up )";
  893. };
  894. new GuiBitmapCtrl(){ // 90 Degrees
  895. HorizSizing = "left";
  896. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/4)+1 SPC "0";
  897. Extent = "2 18";
  898. minExtent = "0 0";
  899. bitmap = "tools/gui/images/separator-h";
  900. tooltip = "90 Degrees ( Left )";
  901. };
  902. new GuiBitmapCtrl(){ // 180 Degrees
  903. HorizSizing = "left";
  904. minExtent = "0 0";
  905. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2)-1 SPC "0";
  906. Extent = "2 18";
  907. bitmap = "tools/gui/images/separator-h";
  908. tooltip = "180 Degrees ( Down )";
  909. };
  910. new GuiBitmapCtrl(){ // 270 Degrees
  911. HorizSizing = "left";
  912. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2+mCeil(getWord($PE_guielement_ext_slider,0)/4))-4 SPC "0";
  913. Extent = "2 18";
  914. minExtent = "0 0";
  915. bitmap = "tools/gui/images/separator-h";
  916. tooltip = "270 Degrees ( Right )";
  917. };
  918. new GuiBitmapCtrl(){ // 360 Degrees
  919. HorizSizing = "left";
  920. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0))-5 SPC "0";
  921. Extent = "2 18";
  922. minExtent = "0 0";
  923. bitmap = "tools/gui/images/separator-h";
  924. tooltip = "360 Degrees ( Up )";
  925. };
  926. new GuiTextCtrl() {
  927. Profile = "ToolsGuiTextProfile";
  928. HorizSizing = "width";
  929. VertSizing = "bottom";
  930. position = $PE_guielement_pos_name;
  931. Extent = $PE_guielement_ext_name;
  932. text = "Angle Max";
  933. };
  934. new GuiSliderCtrl(PEE_thetaMax) {
  935. internalName = "PEE_thetaMax_slider";
  936. canSaveDynamicFields = "0";
  937. Enabled = "1";
  938. isContainer = "0";
  939. Profile = "ToolsGuiSliderProfile";
  940. HorizSizing = "left";
  941. VertSizing = "bottom";
  942. position = $PE_guielement_pos_slider;
  943. Extent = $PE_guielement_ext_slider;
  944. MinExtent = "8 2";
  945. canSave = "1";
  946. Visible = "1";
  947. Command = "PE_EmitterEditor.updateEmitter( \"thetaMax\", $ThisControl.getValue(), true, true );";
  948. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"thetaMax\", $ThisControl.getValue(), true, false );";
  949. hovertime = "1000";
  950. range = "0 180";
  951. ticks = "0";
  952. value = "0";
  953. };
  954. new GuiTextEditCtrl() {
  955. internalName = "PEE_thetaMax_textEdit";
  956. Profile = "ToolsGuiTextEditProfile";
  957. HorizSizing = "left";
  958. VertSizing = "bottom";
  959. position = $PE_guielement_pos_value;
  960. Extent = $PE_guielement_ext_value;
  961. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"thetaMax\", $ThisControl.getText());";
  962. };
  963. };
  964. new GuiControl(){ // Spacer ----------------------------
  965. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  966. new GuiBitmapCtrl(){
  967. position="0 3"; extent ="188 2"; HorizSizing = "width";
  968. bitmap ="tools/gui/images/separator-v";
  969. };
  970. };// end spacer ----------------------------------------
  971. new GuiControl(){ // Emitter Depth
  972. isContainer = "1";
  973. class = "AggregateControl";
  974. HorizSizing = "width";
  975. VertSizing = "bottom";
  976. Position = $PE_guielement_pos_single_container ;
  977. Extent = $PE_guielement_ext_single_container ;
  978. new GuiTextCtrl() {
  979. Profile = "ToolsGuiTextProfile";
  980. HorizSizing = "width";
  981. VertSizing = "bottom";
  982. position = $PE_guielement_pos_name;
  983. Extent = $PE_guielement_ext_name;
  984. text = "Depth";
  985. };
  986. new GuiSliderCtrl(PEE_phiVariance) {
  987. internalName = "PEE_phiVariance_slider";
  988. canSaveDynamicFields = "0";
  989. Enabled = "1";
  990. isContainer = "0";
  991. Profile = "ToolsGuiSliderProfile";
  992. HorizSizing = "left";
  993. VertSizing = "bottom";
  994. position = $PE_guielement_pos_slider;
  995. Extent = $PE_guielement_ext_slider;
  996. MinExtent = "8 2";
  997. canSave = "1";
  998. Visible = "1";
  999. Command = "PE_EmitterEditor.updateEmitter( \"phiVariance\", $ThisControl.getValue(), true, true );";
  1000. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"phiVariance\", $ThisControl.getValue(), true, false );";
  1001. hovertime = "1000";
  1002. range = "0 360";
  1003. ticks = "0";
  1004. value = "360";
  1005. };
  1006. new GuiTextEditCtrl() {
  1007. internalName = "PEE_phiVariance_textEdit";
  1008. Profile = "ToolsGuiTextEditProfile";
  1009. HorizSizing = "left";
  1010. VertSizing = "bottom";
  1011. position = $PE_guielement_pos_value;
  1012. Extent = $PE_guielement_ext_value;
  1013. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"phiVariance\", $ThisControl.getText());";
  1014. };
  1015. };
  1016. new GuiControl(){ // Emitter Offset
  1017. class = "AggregateControl";
  1018. isContainer = "1";
  1019. HorizSizing = "width";
  1020. VertSizing = "bottom";
  1021. Position = $PE_guielement_pos_single_container ;
  1022. Extent = $PE_guielement_ext_single_container ;
  1023. new GuiTextCtrl() {
  1024. Profile = "ToolsGuiTextProfile";
  1025. HorizSizing = "width";
  1026. VertSizing = "bottom";
  1027. position = $PE_guielement_pos_name;
  1028. Extent = $PE_guielement_ext_name;
  1029. text = "Offset";
  1030. };
  1031. new GuiSliderCtrl(PEE_ejectionOffset) {
  1032. internalName = "PEE_ejectionOffset_slider";
  1033. canSaveDynamicFields = "0";
  1034. Enabled = "1";
  1035. isContainer = "0";
  1036. Profile = "ToolsGuiSliderProfile";
  1037. HorizSizing = "left";
  1038. VertSizing = "bottom";
  1039. position = $PE_guielement_pos_slider;
  1040. Extent = $PE_guielement_ext_slider;
  1041. MinExtent = "8 2";
  1042. canSave = "1";
  1043. Visible = "1";
  1044. Command = "PE_EmitterEditor.updateEmitter( \"ejectionOffset\", $ThisControl.getValue(), true, true );";
  1045. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"ejectionOffset\", $ThisControl.getValue(), true, false );";
  1046. hovertime = "1000";
  1047. range = "0 10";
  1048. ticks = "0";
  1049. value = "0";
  1050. };
  1051. new GuiTextEditCtrl() {
  1052. internalName = "PEE_ejectionOffset_textEdit";
  1053. Profile = "ToolsGuiTextEditProfile";
  1054. HorizSizing = "left";
  1055. VertSizing = "bottom";
  1056. position = $PE_guielement_pos_value;
  1057. Extent = $PE_guielement_ext_value;
  1058. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"ejectionOffset\", $ThisControl.getText());";
  1059. };
  1060. };
  1061. new GuiControl(){ // Emitter Offset Variance
  1062. class = "AggregateControl";
  1063. isContainer = "1";
  1064. HorizSizing = "width";
  1065. VertSizing = "bottom";
  1066. Position = $PE_guielement_pos_single_container ;
  1067. Extent = $PE_guielement_ext_single_container ;
  1068. new GuiTextCtrl() {
  1069. Profile = "ToolsGuiTextProfile";
  1070. HorizSizing = "width";
  1071. VertSizing = "bottom";
  1072. position = $PE_guielement_pos_name;
  1073. Extent = $PE_guielement_ext_name;
  1074. text = "OffsetVariance";
  1075. };
  1076. new GuiSliderCtrl(PEE_ejectionOffsetVariance) {
  1077. internalName = "PEE_ejectionOffsetVariance_slider";
  1078. canSaveDynamicFields = "0";
  1079. Enabled = "1";
  1080. isContainer = "0";
  1081. Profile = "ToolsGuiSliderProfile";
  1082. HorizSizing = "left";
  1083. VertSizing = "bottom";
  1084. position = $PE_guielement_pos_slider;
  1085. Extent = $PE_guielement_ext_slider;
  1086. MinExtent = "8 2";
  1087. canSave = "1";
  1088. Visible = "1";
  1089. Command = "PE_EmitterEditor.updateEmitter( \"ejectionOffsetVariance\", $ThisControl.getValue(), true, true );";
  1090. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"ejectionOffsetVariance\", $ThisControl.getValue(), true, false );";
  1091. hovertime = "1000";
  1092. range = "0 25";
  1093. ticks = "0";
  1094. value = "0";
  1095. };
  1096. new GuiTextEditCtrl() {
  1097. internalName = "PEE_ejectionOffsetVariance_textEdit";
  1098. Profile = "ToolsGuiTextEditProfile";
  1099. HorizSizing = "left";
  1100. VertSizing = "bottom";
  1101. position = $PE_guielement_pos_value;
  1102. Extent = $PE_guielement_ext_value;
  1103. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"ejectionOffsetVariance\", $ThisControl.getText());";
  1104. };
  1105. };
  1106. }; // end stack
  1107. }; // end "spread" rollout
  1108. new GuiRolloutCtrl() {
  1109. class = "BehaviorQuickEditRollout";
  1110. superclass = LBQuickEditRollout;
  1111. Profile = "GuiRolloutProfile";
  1112. HorizSizing = "width";
  1113. VertSizing = "bottom";
  1114. Position = "0 0";
  1115. Extent = "197 0";
  1116. Caption = "Particles";
  1117. Margin = "4 4 4 0";
  1118. DragSizable = false;
  1119. container = true;
  1120. parentRollout = %this.rollout;
  1121. object = %behavior;
  1122. new GuiStackControl() {
  1123. StackingType = "Vertical";
  1124. HorizStacking = "Left to Right";
  1125. VertStacking = "Top to Bottom";
  1126. Padding = "0";
  1127. canSaveDynamicFields = "0";
  1128. Enabled = "1";
  1129. isContainer = "1";
  1130. Profile = "ToolsGuiDefaultProfile";
  1131. HorizSizing = "width";
  1132. VertSizing = "bottom";
  1133. Position = "1 3";
  1134. Extent = "197 16";
  1135. MinExtent = "16 16";
  1136. canSave = "1";
  1137. isDecoy = "0";
  1138. Visible = "1";
  1139. tooltipprofile = "ToolsGuiToolTipProfile";
  1140. hovertime = "1000";
  1141. new GuiControl(PEE_EmitterParticle1){ // emmiter particle 1
  1142. isContainer = "1";
  1143. HorizSizing = "width";
  1144. VertSizing = "bottom";
  1145. Position = $PE_guielement_pos_single_container ;
  1146. Extent = $PE_guielement_ext_single_container ;
  1147. new GuiTextCtrl() {
  1148. Profile = "ToolsGuiTextProfile";
  1149. HorizSizing = "width";
  1150. VertSizing = "bottom";
  1151. position = $PE_guielement_pos_name;
  1152. Extent = $PE_guielement_ext_name;
  1153. text = "Particle 1";
  1154. };
  1155. new GuiPopUpMenuCtrl(PEE_EmitterParticleSelector1) {
  1156. internalName = "PopUpMenu";
  1157. Profile = "ToolsGuiPopUpMenuProfile";
  1158. HorizSizing = "left";
  1159. VertSizing = "bottom";
  1160. position = $PE_guielement_pos_textedit;
  1161. Extent = $PE_guielement_ext_textedit;
  1162. text = "";
  1163. command = "PE_EmitterEditor.updateParticlesFields($ThisControl);";
  1164. };
  1165. };
  1166. new GuiControl(PEE_EmitterParticle2){ // emmiter particle 2
  1167. isContainer = "1";
  1168. HorizSizing = "width";
  1169. VertSizing = "bottom";
  1170. Position = $PE_guielement_pos_single_container ;
  1171. Extent = $PE_guielement_ext_single_container ;
  1172. new GuiTextCtrl() {
  1173. Profile = "ToolsGuiTextProfile";
  1174. HorizSizing = "width";
  1175. VertSizing = "bottom";
  1176. position = $PE_guielement_pos_name;
  1177. Extent = $PE_guielement_ext_name;
  1178. text = "Particle 2";
  1179. };
  1180. new GuiPopUpMenuCtrl(PEE_EmitterParticleSelector2) {
  1181. internalName = "PopUpMenu";
  1182. Profile = "ToolsGuiPopUpMenuProfile";
  1183. HorizSizing = "left";
  1184. VertSizing = "bottom";
  1185. position = $PE_guielement_pos_textedit;
  1186. Extent = $PE_guielement_ext_textedit;
  1187. text = "None";
  1188. command = "PE_EmitterEditor.updateParticlesFields();";
  1189. };
  1190. // Clear particle 2
  1191. new GuiBitmapButtonCtrl() {
  1192. canSaveDynamicFields = "0";
  1193. Enabled = "1";
  1194. isContainer = "0";
  1195. Profile = "ToolsGuiButtonProfile";
  1196. HorizSizing = "left";
  1197. VertSizing = "bottom";
  1198. position = "56 1";
  1199. Extent = "17 17";
  1200. MinExtent = "8 2";
  1201. canSave = "1";
  1202. Visible = "1";
  1203. Command = "%particleId = PEE_EmitterParticle2-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle2-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();";
  1204. hovertime = "1000";
  1205. tooltip = "Clear Particle 2 from Emitter";
  1206. text = "";
  1207. bitmap = "tools/gui/images/clear-icon";
  1208. groupNum = "-1";
  1209. buttonType = "PushButton";
  1210. useMouseEvents = "0";
  1211. };
  1212. };
  1213. new GuiControl(PEE_EmitterParticle3){ // emmiter particle 3
  1214. isContainer = "1";
  1215. HorizSizing = "width";
  1216. VertSizing = "bottom";
  1217. Position = $PE_guielement_pos_single_container ;
  1218. Extent = $PE_guielement_ext_single_container ;
  1219. new GuiTextCtrl() {
  1220. Profile = "ToolsGuiTextProfile";
  1221. HorizSizing = "width";
  1222. VertSizing = "bottom";
  1223. position = $PE_guielement_pos_name;
  1224. Extent = $PE_guielement_ext_name;
  1225. text = "Particle 3";
  1226. };
  1227. new GuiPopUpMenuCtrl(PEE_EmitterParticleSelector3) {
  1228. internalName = "PopUpMenu";
  1229. Profile = "ToolsGuiPopUpMenuProfile";
  1230. HorizSizing = "left";
  1231. VertSizing = "bottom";
  1232. position = $PE_guielement_pos_textedit;
  1233. Extent = $PE_guielement_ext_textedit;
  1234. text = "None";
  1235. command = "PE_EmitterEditor.updateParticlesFields();";
  1236. };
  1237. // Clear particle 3
  1238. new GuiBitmapButtonCtrl() {
  1239. canSaveDynamicFields = "0";
  1240. Enabled = "1";
  1241. isContainer = "0";
  1242. Profile = "ToolsGuiButtonProfile";
  1243. HorizSizing = "left";
  1244. VertSizing = "bottom";
  1245. position = "56 1";
  1246. Extent = "17 17";
  1247. MinExtent = "8 2";
  1248. canSave = "1";
  1249. Visible = "1";
  1250. Command = "%particleId = PEE_EmitterParticle3-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle3-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();";
  1251. hovertime = "1000";
  1252. tooltip = "Clear Particle 3 from Emitter";
  1253. text = "";
  1254. bitmap = "tools/gui/images/clear-icon";
  1255. groupNum = "-1";
  1256. buttonType = "PushButton";
  1257. useMouseEvents = "0";
  1258. };
  1259. };
  1260. new GuiControl(PEE_EmitterParticle4){ // emmiter particle 4
  1261. isContainer = "1";
  1262. HorizSizing = "width";
  1263. VertSizing = "bottom";
  1264. Position = $PE_guielement_pos_single_container ;
  1265. Extent = $PE_guielement_ext_single_container ;
  1266. new GuiTextCtrl() {
  1267. Profile = "ToolsGuiTextProfile";
  1268. HorizSizing = "width";
  1269. VertSizing = "bottom";
  1270. position = $PE_guielement_pos_name;
  1271. Extent = $PE_guielement_ext_name;
  1272. text = "Particle 4";
  1273. };
  1274. new GuiPopUpMenuCtrl(PEE_EmitterParticleSelector4) {
  1275. internalName = "PopUpMenu";
  1276. Profile = "ToolsGuiPopUpMenuProfile";
  1277. HorizSizing = "left";
  1278. VertSizing = "bottom";
  1279. position = $PE_guielement_pos_textedit;
  1280. Extent = $PE_guielement_ext_textedit;
  1281. text = "None";
  1282. command = "PE_EmitterEditor.updateParticlesFields();";
  1283. };
  1284. // Clear particle 4
  1285. new GuiBitmapButtonCtrl() {
  1286. canSaveDynamicFields = "0";
  1287. Enabled = "1";
  1288. isContainer = "0";
  1289. Profile = "ToolsGuiButtonProfile";
  1290. HorizSizing = "left";
  1291. VertSizing = "bottom";
  1292. position = "56 1";
  1293. Extent = "17 17";
  1294. MinExtent = "8 2";
  1295. canSave = "1";
  1296. Visible = "1";
  1297. Command = "%particleId = PEE_EmitterParticle4-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle4-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();";
  1298. hovertime = "1000";
  1299. tooltip = "Clear Particle 4 from Emitter";
  1300. text = "";
  1301. bitmap = "tools/gui/images/clear-icon";
  1302. groupNum = "-1";
  1303. buttonType = "PushButton";
  1304. useMouseEvents = "0";
  1305. };
  1306. };
  1307. }; // end stack
  1308. }; // end "particles" rollout
  1309. new GuiRolloutCtrl() {
  1310. class = "BehaviorQuickEditRollout";
  1311. superclass = LBQuickEditRollout;
  1312. Profile = "GuiRolloutProfile";
  1313. HorizSizing = "width";
  1314. VertSizing = "bottom";
  1315. Position = "0 0";
  1316. Extent = "197 0";
  1317. Caption = "Blending";
  1318. Margin = "4 4 4 0";
  1319. DragSizable = false;
  1320. container = true;
  1321. parentRollout = %this.rollout;
  1322. object = %behavior;
  1323. new GuiStackControl() {
  1324. StackingType = "Vertical";
  1325. HorizStacking = "Left to Right";
  1326. VertStacking = "Top to Bottom";
  1327. Padding = "0";
  1328. canSaveDynamicFields = "0";
  1329. Enabled = "1";
  1330. isContainer = "1";
  1331. Profile = "ToolsGuiDefaultProfile";
  1332. HorizSizing = "width";
  1333. VertSizing = "bottom";
  1334. Position = "1 3";
  1335. Extent = "197 16";
  1336. MinExtent = "16 16";
  1337. canSave = "1";
  1338. isDecoy = "0";
  1339. Visible = "1";
  1340. tooltipprofile = "ToolsGuiToolTipProfile";
  1341. hovertime = "1000";
  1342. new GuiControl(){ // Blend type
  1343. isContainer = "1";
  1344. HorizSizing = "width";
  1345. VertSizing = "bottom";
  1346. Position = $PE_guielement_pos_single_container ;
  1347. Extent = $PE_guielement_ext_single_container ;
  1348. new GuiTextCtrl() {
  1349. Profile = "ToolsGuiTextProfile";
  1350. HorizSizing = "width";
  1351. VertSizing = "bottom";
  1352. position = $PE_guielement_pos_name;
  1353. Extent = $PE_guielement_ext_name;
  1354. text = "Blend Type";
  1355. };
  1356. new GuiPopUpMenuCtrl() {
  1357. internalName = "PEE_blendType";
  1358. HorizSizing = "left";
  1359. VertSizing = "bottom";
  1360. position = $PE_guielement_pos_textedit;
  1361. Extent = $PE_guielement_ext_textedit;
  1362. command = "PE_EmitterEditor.updateEmitter( \"blendStyle\", $ThisControl.getText());";
  1363. };
  1364. };
  1365. new GuiControl(){ // softness Distance
  1366. class = "AggregateControl";
  1367. isContainer = "1";
  1368. HorizSizing = "width";
  1369. VertSizing = "bottom";
  1370. Position = $PE_guielement_pos_single_container ;
  1371. Extent = $PE_guielement_ext_single_container ;
  1372. new GuiTextCtrl() {
  1373. Profile = "ToolsGuiTextProfile";
  1374. HorizSizing = "width";
  1375. VertSizing = "bottom";
  1376. position = $PE_guielement_pos_name;
  1377. Extent = $PE_guielement_ext_name;
  1378. text = "Softness Distance ";
  1379. };
  1380. new GuiSliderCtrl() {
  1381. internalName = "PEE_softnessDistance_slider";
  1382. canSaveDynamicFields = "0";
  1383. Enabled = "1";
  1384. isContainer = "0";
  1385. Profile = "ToolsGuiSliderProfile";
  1386. HorizSizing = "left";
  1387. VertSizing = "bottom";
  1388. position = $PE_guielement_pos_slider;
  1389. Extent = $PE_guielement_ext_slider;
  1390. MinExtent = "8 2";
  1391. canSave = "1";
  1392. Visible = "1";
  1393. Command = "";
  1394. hovertime = "1000";
  1395. range = "0 1000";
  1396. ticks = "0";
  1397. value = "0";
  1398. Command = "PE_EmitterEditor.updateEmitter( \"softnessDistance\", $ThisControl.getValue(), true, true );";
  1399. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"softnessDistance\", $ThisControl.getValue(), true, false );";
  1400. };
  1401. new GuiTextEditCtrl() {
  1402. internalName = "PEE_softnessDistance_textEdit";
  1403. Profile = "ToolsGuiTextEditProfile";
  1404. HorizSizing = "left";
  1405. VertSizing = "bottom";
  1406. position = $PE_guielement_pos_value;
  1407. Extent = $PE_guielement_ext_value;
  1408. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"softnessDistance\", $ThisControl.getText());";
  1409. };
  1410. };
  1411. new GuiControl(){ // Ambient Factor
  1412. class = "AggregateControl";
  1413. isContainer = "1";
  1414. HorizSizing = "width";
  1415. VertSizing = "bottom";
  1416. Position = $PE_guielement_pos_single_container ;
  1417. Extent = $PE_guielement_ext_single_container ;
  1418. new GuiTextCtrl() {
  1419. Profile = "ToolsGuiTextProfile";
  1420. HorizSizing = "width";
  1421. VertSizing = "bottom";
  1422. position = $PE_guielement_pos_name;
  1423. Extent = $PE_guielement_ext_name;
  1424. text = "Ambient Factor";
  1425. };
  1426. new GuiSliderCtrl() {
  1427. internalName = "PEE_ambientFactor_slider";
  1428. canSaveDynamicFields = "0";
  1429. Enabled = "1";
  1430. isContainer = "0";
  1431. Profile = "ToolsGuiSliderProfile";
  1432. HorizSizing = "left";
  1433. VertSizing = "bottom";
  1434. position = $PE_guielement_pos_slider;
  1435. Extent = $PE_guielement_ext_slider;
  1436. MinExtent = "8 2";
  1437. canSave = "1";
  1438. Visible = "1";
  1439. Command = "";
  1440. hovertime = "1000";
  1441. range = "0 10";
  1442. ticks = "0";
  1443. value = "0";
  1444. Command = "PE_EmitterEditor.updateEmitter( \"ambientFactor\", $ThisControl.getValue(), true, true );";
  1445. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"ambientFactor\", $ThisControl.getValue(), true, false );";
  1446. };
  1447. new GuiTextEditCtrl() {
  1448. internalName = "PEE_ambientFactor_textEdit";
  1449. Profile = "ToolsGuiTextEditProfile";
  1450. HorizSizing = "left";
  1451. VertSizing = "bottom";
  1452. position = $PE_guielement_pos_value;
  1453. Extent = $PE_guielement_ext_value;
  1454. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_EmitterEditor.updateEmitter( \"ambientFactor\", $ThisControl.getText));";
  1455. };
  1456. };
  1457. new GuiControl(){ // Spacer ----------------------------
  1458. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  1459. new GuiBitmapCtrl(){
  1460. position="0 3"; extent ="188 2"; HorizSizing = "width";
  1461. bitmap ="tools/gui/images/separator-v";
  1462. };
  1463. };// end spacer ----------------------------------------
  1464. new GuiControl(){ // Sort Particles
  1465. isContainer = "1";
  1466. HorizSizing = "width";
  1467. VertSizing = "bottom";
  1468. Position = $PE_guielement_pos_single_container ;
  1469. Extent = $PE_guielement_ext_single_container ;
  1470. new GuiTextCtrl() {
  1471. Profile = "ToolsGuiTextProfile";
  1472. HorizSizing = "width";
  1473. VertSizing = "bottom";
  1474. position = $PE_guielement_pos_name;
  1475. Extent = $PE_guielement_ext_checkbox_name;
  1476. text = "Sort Particles";
  1477. };
  1478. new GuiCheckBoxCtrl() {
  1479. internalName = "PEE_softParticles";
  1480. Profile = "ToolsGuiCheckBoxProfile";
  1481. HorizSizing = "left";
  1482. VertSizing = "bottom";
  1483. position = $PE_guielement_pos_checkbox;
  1484. Extent = $PE_guielement_ext_checkbox;
  1485. text = "";
  1486. command = "PE_EmitterEditor.updateEmitter( \"softParticles\", $ThisControl.getValue());";
  1487. };
  1488. };
  1489. new GuiControl(){ // Emitter Reverse Order
  1490. isContainer = "1";
  1491. HorizSizing = "width";
  1492. VertSizing = "bottom";
  1493. Position = $PE_guielement_pos_single_container ;
  1494. Extent = $PE_guielement_ext_single_container ;
  1495. new GuiTextCtrl() {
  1496. Profile = "ToolsGuiTextProfile";
  1497. HorizSizing = "width";
  1498. VertSizing = "bottom";
  1499. position = $PE_guielement_pos_name;
  1500. Extent = $PE_guielement_ext_checkbox_name;
  1501. text = "Reverse Order";
  1502. };
  1503. new GuiCheckBoxCtrl() {
  1504. internalName = "PEE_reverseOrder";
  1505. Profile = "ToolsGuiCheckBoxProfile";
  1506. HorizSizing = "left";
  1507. VertSizing = "bottom";
  1508. position = $PE_guielement_pos_checkbox;
  1509. Extent = $PE_guielement_ext_checkbox;
  1510. text = "";
  1511. command = "PE_EmitterEditor.updateEmitter( \"reverseOrder\", $ThisControl.getValue());";
  1512. };
  1513. };
  1514. new GuiControl(){ // Emitter Use Emitter Size
  1515. isContainer = "1";
  1516. HorizSizing = "width";
  1517. VertSizing = "bottom";
  1518. Position = $PE_guielement_pos_single_container ;
  1519. Extent = $PE_guielement_ext_single_container ;
  1520. new GuiTextCtrl() {
  1521. Profile = "ToolsGuiTextProfile";
  1522. HorizSizing = "width";
  1523. VertSizing = "bottom";
  1524. position = $PE_guielement_pos_name;
  1525. Extent = $PE_guielement_ext_checkbox_name;
  1526. text = "Use Emitter Size";
  1527. };
  1528. new GuiCheckBoxCtrl(PEE_useEmitterSizes) {
  1529. internalName = "PEE_useEmitterSizes";
  1530. Profile = "ToolsGuiCheckBoxProfile";
  1531. HorizSizing = "left";
  1532. VertSizing = "bottom";
  1533. position = $PE_guielement_pos_checkbox;
  1534. Extent = $PE_guielement_ext_checkbox;
  1535. text = "";
  1536. command = "PE_EmitterEditor.updateEmitter( \"useEmitterSizes\", $ThisControl.getValue());";
  1537. };
  1538. };
  1539. new GuiControl(){ // Emitter use Material Effect Color
  1540. isContainer = "1";
  1541. HorizSizing = "width";
  1542. VertSizing = "bottom";
  1543. Position = $PE_guielement_pos_single_container ;
  1544. Extent = $PE_guielement_ext_single_container ;
  1545. new GuiTextCtrl() {
  1546. Profile = "ToolsGuiTextProfile";
  1547. HorizSizing = "width";
  1548. VertSizing = "bottom";
  1549. position = $PE_guielement_pos_name;
  1550. Extent = $PE_guielement_ext_checkbox_name;
  1551. text = "Use Material Effect Color";
  1552. };
  1553. new GuiCheckBoxCtrl(PEE_useEmitterColors) {
  1554. internalName = "PEE_useEmitterColors";
  1555. Profile = "ToolsGuiCheckBoxProfile";
  1556. HorizSizing = "left";
  1557. VertSizing = "bottom";
  1558. position = $PE_guielement_pos_checkbox;
  1559. Extent = $PE_guielement_ext_checkbox;
  1560. text = "";
  1561. command = "PE_EmitterEditor.updateEmitter( \"useEmitterColors\", $ThisControl.getValue());";
  1562. };
  1563. };
  1564. }; // end stack
  1565. }; // end "Blending" rollout
  1566. };// end stack "Emitter"
  1567. };// end scroll "Emitter"
  1568. };// end tab page "Emitter"
  1569. new GuiTabPageCtrl(PE_ParticleEditor) {
  1570. canSaveDynamicFields = "0";
  1571. Enabled = "1";
  1572. isContainer = "1";
  1573. Profile = "ToolsGuiEditorTabPage";
  1574. HorizSizing = "width";
  1575. VertSizing = "height";
  1576. position = "0 19";
  1577. Extent = "197 271";
  1578. MinExtent = "8 2";
  1579. canSave = "1";
  1580. Visible = "1";
  1581. hovertime = "1000";
  1582. Margin = "0 0 0 0";
  1583. Padding = "0 0 0 0";
  1584. AnchorTop = "1";
  1585. AnchorBottom = "0";
  1586. AnchorLeft = "1";
  1587. AnchorRight = "0";
  1588. text = "Particle";
  1589. maxLength = "1024";
  1590. new GuiScrollCtrl() {
  1591. canSaveDynamicFields = "0";
  1592. Enabled = "1";
  1593. isContainer = "1";
  1594. Profile = "ToolsGuiScrollProfile";
  1595. HorizSizing = "width";
  1596. VertSizing = "height";
  1597. Position = "0 0";
  1598. Extent = "197 271";
  1599. MinExtent = "8 8";
  1600. canSave = "1";
  1601. Visible = "1";
  1602. hovertime = "1000";
  1603. willFirstRespond = "1";
  1604. hScrollBar = "alwaysOff";
  1605. vScrollBar = "dynamic";
  1606. lockHorizScroll = false;
  1607. lockVertScroll = "false";
  1608. constantThumbHeight = "0";
  1609. childMargin = "0 0";
  1610. new GuiStackControl() {
  1611. StackingType = "Vertical";
  1612. HorizStacking = "Left to Right";
  1613. VertStacking = "Top to Bottom";
  1614. Padding = "0";
  1615. canSaveDynamicFields = "0";
  1616. Enabled = "1";
  1617. isContainer = "1";
  1618. Profile = "ToolsGuiDefaultProfile";
  1619. HorizSizing = "width";
  1620. VertSizing = "bottom";
  1621. Position = "1 3";
  1622. Extent = "197 16";
  1623. MinExtent = "16 16";
  1624. canSave = "1";
  1625. isDecoy = "0";
  1626. Visible = "1";
  1627. tooltipprofile = "ToolsGuiToolTipProfile";
  1628. hovertime = "1000";
  1629. new GuiControl(PEP_ParticleSelector_Control){ // PEP_ParticleSelector
  1630. isContainer = "1";
  1631. class = "QuickEditDropDownTextEditCtrl";
  1632. HorizSizing = "width";
  1633. VertSizing = "bottom";
  1634. Position = $PE_guielement_pos_single_container ;
  1635. Extent = "197 26" ;
  1636. new GuiPopUpMenuCtrl(PEP_ParticleSelector) {
  1637. internalName = "PopUpMenu";
  1638. canSaveDynamicFields = "0";
  1639. Enabled = "1";
  1640. isContainer = "0";
  1641. Profile = "ToolsGuiPopUpMenuProfile";
  1642. HorizSizing = "width";
  1643. VertSizing = "bottom";
  1644. position = "4 4";
  1645. Extent = "123 18";
  1646. MinExtent = "8 2";
  1647. canSave = "1";
  1648. Visible = "1";
  1649. Command = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.onNewParticle();";
  1650. hovertime = "1000";
  1651. Margin = "0 0 0 0";
  1652. Padding = "0 0 0 0";
  1653. AnchorTop = "1";
  1654. AnchorBottom = "0";
  1655. AnchorLeft = "1";
  1656. AnchorRight = "0";
  1657. maxLength = "255";
  1658. maxPopupHeight = "200";
  1659. sbUsesNAColor = "0";
  1660. reverseTextList = "0";
  1661. bitmapBounds = "16 16";
  1662. };
  1663. new GuiTextEditCtrl() {
  1664. internalName = "TextEdit";
  1665. canSaveDynamicFields = "0";
  1666. Enabled = "1";
  1667. isContainer = "0";
  1668. Profile = "GuiDropdownTextEditProfile";
  1669. HorizSizing = "width";
  1670. VertSizing = "bottom";
  1671. position = "4 4";
  1672. Extent = "107 18";
  1673. MinExtent = "8 2";
  1674. canSave = "1";
  1675. Visible = "1";
  1676. hovertime = "1000";
  1677. Margin = "0 0 0 0";
  1678. Padding = "0 0 0 0";
  1679. AnchorTop = "1";
  1680. AnchorBottom = "0";
  1681. AnchorLeft = "1";
  1682. AnchorRight = "0";
  1683. text = "None";
  1684. maxLength = "1024";
  1685. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl);";
  1686. };
  1687. new GuiBitmapButtonCtrl( PEP_NewParticleButton ) {
  1688. canSaveDynamicFields = "0";
  1689. Enabled = "1";
  1690. isContainer = "0";
  1691. Profile = "ToolsGuiDefaultProfile";
  1692. HorizSizing = "left";
  1693. VertSizing = "bottom";
  1694. position = "131 5";
  1695. Extent = "17 17";
  1696. MinExtent = "8 2";
  1697. canSave = "1";
  1698. Visible = "1";
  1699. hovertime = "1000";
  1700. groupNum = "-1";
  1701. buttonType = "PushButton";
  1702. useMouseEvents = "0";
  1703. bitmap = "tools/gui/images/new";
  1704. tooltip = "Add New Particle To Current Emitter";
  1705. useModifiers = "1";
  1706. };
  1707. new GuiBitmapButtonCtrl() {
  1708. canSaveDynamicFields = "0";
  1709. Enabled = "1";
  1710. isContainer = "0";
  1711. Profile = "ToolsGuiDefaultProfile";
  1712. HorizSizing = "left";
  1713. VertSizing = "bottom";
  1714. position = "147 5";
  1715. Extent = "17 17";
  1716. MinExtent = "8 2";
  1717. canSave = "1";
  1718. Visible = "1";
  1719. hovertime = "1000";
  1720. groupNum = "-1";
  1721. buttonType = "PushButton";
  1722. useMouseEvents = "0";
  1723. bitmap = "tools/gui/images/save-icon";
  1724. command = "PE_ParticleEditor.saveParticle( PE_ParticleEditor.currParticle );";
  1725. tooltip = "Save Current Particle";
  1726. };
  1727. new GuiBitmapButtonCtrl() {
  1728. canSaveDynamicFields = "0";
  1729. Enabled = "1";
  1730. isContainer = "0";
  1731. Profile = "ToolsGuiDefaultProfile";
  1732. HorizSizing = "left";
  1733. VertSizing = "bottom";
  1734. position = "164 5";
  1735. Extent = "17 17";
  1736. MinExtent = "8 2";
  1737. canSave = "1";
  1738. Visible = "1";
  1739. Command = "PE_ParticleEditor.showDeleteDialog();";
  1740. hovertime = "1000";
  1741. groupNum = "-1";
  1742. buttonType = "PushButton";
  1743. useMouseEvents = "0";
  1744. bitmap = "tools/gui/images/delete";
  1745. tooltip = "Delete Current Particle";
  1746. };
  1747. };
  1748. new GuiRolloutCtrl() {
  1749. class = "BehaviorQuickEditRollout";
  1750. superclass = LBQuickEditRollout;
  1751. Profile = "GuiRolloutProfile";
  1752. HorizSizing = "width";
  1753. VertSizing = "bottom";
  1754. Position = "0 0";
  1755. Extent = "197 0";
  1756. Caption = "Basic";
  1757. Margin = "4 4 4 0";
  1758. DragSizable = false;
  1759. container = true;
  1760. parentRollout = %this.rollout;
  1761. object = %behavior;
  1762. new GuiStackControl() {
  1763. StackingType = "Vertical";
  1764. HorizStacking = "Left to Right";
  1765. VertStacking = "Top to Bottom";
  1766. Padding = "0";
  1767. canSaveDynamicFields = "0";
  1768. Enabled = "1";
  1769. isContainer = "1";
  1770. Profile = "ToolsGuiDefaultProfile";
  1771. HorizSizing = "width";
  1772. VertSizing = "bottom";
  1773. Position = "1 3";
  1774. Extent = "197 16";
  1775. MinExtent = "16 16";
  1776. canSave = "1";
  1777. isDecoy = "0";
  1778. Visible = "1";
  1779. tooltipprofile = "ToolsGuiToolTipProfile";
  1780. hovertime = "1000";
  1781. new GuiContainer(){ // particle texture map
  1782. profile="ToolsGuiDefaultProfile";
  1783. isContainer = "1";
  1784. position = "0 0";
  1785. Extent = "185 52";
  1786. HorizSizing = "width";
  1787. new GuiBitmapCtrl() {
  1788. canSaveDynamicFields = "0";
  1789. Enabled = "1";
  1790. isContainer = "0";
  1791. Profile = "ToolsGuiDefaultProfile";
  1792. HorizSizing = "right";
  1793. VertSizing = "bottom";
  1794. position = "1 1";
  1795. Extent = "48 48";
  1796. MinExtent = "8 2";
  1797. canSave = "1";
  1798. Visible = "1";
  1799. hovertime = "1000";
  1800. bitmap = "tools/materialEditor/gui/unknownImage";
  1801. wrap = "0";
  1802. };
  1803. new GuiTextCtrl() {
  1804. canSaveDynamicFields = "0";
  1805. Enabled = "1";
  1806. isContainer = "0";
  1807. Profile = "EditorTextProfile";
  1808. HorizSizing = "right";
  1809. VertSizing = "bottom";
  1810. position = "56 -2";
  1811. Extent = "72 18";
  1812. MinExtent = "8 2";
  1813. canSave = "1";
  1814. Visible = "1";
  1815. hovertime = "1000";
  1816. Margin = "0 0 0 0";
  1817. Padding = "0 0 0 0";
  1818. AnchorTop = "1";
  1819. AnchorBottom = "0";
  1820. AnchorLeft = "1";
  1821. AnchorRight = "0";
  1822. text = "Texture Map";
  1823. maxLength = "1024";
  1824. };
  1825. new GuiBitmapButtonCtrl() {
  1826. internalName = "PEP_previewImage";
  1827. canSaveDynamicFields = "0";
  1828. Enabled = "1";
  1829. isContainer = "0";
  1830. Profile = "ToolsGuiDefaultProfile";
  1831. HorizSizing = "right";
  1832. VertSizing = "bottom";
  1833. position = "1 1";
  1834. Extent = "48 48";
  1835. MinExtent = "8 2";
  1836. canSave = "1";
  1837. Visible = "1";
  1838. Command = "";
  1839. tooltipprofile = "ToolsGuiDefaultProfile";
  1840. ToolTip = "Edit Selected Particle.";
  1841. hovertime = "1000";
  1842. groupNum = "-1";
  1843. buttonType = "PushButton";
  1844. useMouseEvents = "0";
  1845. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1846. };
  1847. new GuiBitmapButtonCtrl() {
  1848. canSaveDynamicFields = "0";
  1849. Enabled = "1";
  1850. isContainer = "0";
  1851. Profile = "ToolsGuiDefaultProfile";
  1852. HorizSizing = "right";
  1853. VertSizing = "bottom";
  1854. position = "1 1";
  1855. Extent = "48 48";
  1856. MinExtent = "8 2";
  1857. canSave = "1";
  1858. Visible = "1";
  1859. Command = "";
  1860. tooltipprofile = "ToolsGuiDefaultProfile";
  1861. ToolTip = "Edit Selected Particle.";
  1862. hovertime = "1000";
  1863. groupNum = "-1";
  1864. buttonType = "PushButton";
  1865. useMouseEvents = "0";
  1866. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1867. Command = "PE_ParticleEditor.updateParticleTexture(1);";
  1868. };
  1869. new GuiCheckBoxCtrl() {
  1870. internalName = "PEP_inverseAlpha";
  1871. HorizSizing = "width";
  1872. VertSizing = "bottom";
  1873. position = "55 14";
  1874. Extent = "84 18";
  1875. MinExtent = "8 2";
  1876. text = "Inverse Alpha";
  1877. command = "PE_ParticleEditor.updateParticle( \"useInvAlpha\", $ThisControl.getValue());";
  1878. };
  1879. new GuiTextEditCtrl(PEP_textureName) {
  1880. internalName = "PEP_previewImageName";
  1881. canSaveDynamicFields = "0";
  1882. Enabled = "1";
  1883. isContainer = "0";
  1884. Profile = "ToolsGuiTextEditProfile";
  1885. HorizSizing = "width";
  1886. VertSizing = "bottom";
  1887. position = "55 31";
  1888. Extent = "120 18";
  1889. MinExtent = "8 2";
  1890. canSave = "1";
  1891. Visible = "1";
  1892. hovertime = "1000";
  1893. Margin = "0 0 0 0";
  1894. Padding = "0 0 0 0";
  1895. AnchorTop = "1";
  1896. AnchorBottom = "0";
  1897. AnchorLeft = "1";
  1898. AnchorRight = "0";
  1899. text = "None";
  1900. maxLength = "1024";
  1901. };
  1902. new GuiButtonCtrl(){
  1903. profile="ToolsGuiButtonProfile";
  1904. text ="Edit";
  1905. HorizSizing = "left";
  1906. VertSizing = "bottom";
  1907. position = "138 0";
  1908. Extent = "36 18" ;
  1909. buttonType = "PushButton";
  1910. Command = "PE_ParticleEditor.updateParticleTexture(1);";
  1911. };
  1912. };
  1913. new GuiControl(){ // Spacer ----------------------------
  1914. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  1915. //visible = false;
  1916. new GuiBitmapCtrl(){
  1917. position="0 3"; extent ="188 2"; HorizSizing = "width";
  1918. bitmap ="tools/gui/images/separator-v";
  1919. };
  1920. };// end spacer ----------------------------------------
  1921. new GuiControl(){ // particle life
  1922. class = "AggregateControl";
  1923. isContainer = "1";
  1924. HorizSizing = "width";
  1925. VertSizing = "bottom";
  1926. Position = $PE_guielement_pos_single_container ;
  1927. Extent = $PE_guielement_ext_single_container ;
  1928. new GuiTextCtrl() {
  1929. canSaveDynamicFields = "0";
  1930. Enabled = "1";
  1931. isContainer = "0";
  1932. Profile = "ToolsGuiTextProfile";
  1933. HorizSizing = "width";
  1934. VertSizing = "bottom";
  1935. position = $PE_guielement_pos_name;
  1936. Extent = $PE_guielement_ext_name;
  1937. MinExtent = "8 2";
  1938. canSave = "1";
  1939. Visible = "1";
  1940. hovertime = "1000";
  1941. Margin = "0 0 0 0";
  1942. Padding = "0 0 0 0";
  1943. AnchorTop = "1";
  1944. AnchorBottom = "0";
  1945. AnchorLeft = "1";
  1946. AnchorRight = "0";
  1947. text = "Life";
  1948. maxLength = "255";
  1949. };
  1950. new GuiSliderCtrl(PEP_lifetimeMS) {
  1951. internalName = "PEP_lifetimeMS_slider";
  1952. canSaveDynamicFields = "0";
  1953. Enabled = "1";
  1954. isContainer = "0";
  1955. Profile = "ToolsGuiSliderProfile";
  1956. HorizSizing = "left";
  1957. VertSizing = "bottom";
  1958. position = $PE_guielement_pos_slider;
  1959. Extent = $PE_guielement_ext_slider;
  1960. MinExtent = "8 2";
  1961. canSave = "1";
  1962. Visible = "1";
  1963. Command = "PE_ParticleEditor.updateLifeFields( false, $ThisControl.getValue(), true, true );";
  1964. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateLifeFields( false, $ThisControl.getValue(), true, false );";
  1965. hovertime = "1000";
  1966. range = "1 9000";
  1967. ticks = "0";
  1968. value = "3000";
  1969. };
  1970. new GuiTextEditCtrl() {
  1971. internalName = "PEP_lifetimeMS_textEdit";
  1972. Profile = "ToolsGuiTextEditProfile";
  1973. HorizSizing = "left";
  1974. VertSizing = "bottom";
  1975. position = $PE_guielement_pos_value;
  1976. Extent = $PE_guielement_ext_value;
  1977. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateLifeFields( false, $ThisControl.getText() );";
  1978. };
  1979. };
  1980. new GuiControl(){ // particle life Random
  1981. class = "AggregateControl";
  1982. isContainer = "1";
  1983. HorizSizing = "width";
  1984. VertSizing = "bottom";
  1985. Position = $PE_guielement_pos_single_container ;
  1986. Extent = $PE_guielement_ext_single_container ;
  1987. new GuiTextCtrl() {
  1988. canSaveDynamicFields = "0";
  1989. Enabled = "1";
  1990. isContainer = "0";
  1991. Profile = "ToolsGuiTextProfile";
  1992. HorizSizing = "width";
  1993. VertSizing = "bottom";
  1994. position = $PE_guielement_pos_name;
  1995. Extent = $PE_guielement_ext_name;
  1996. MinExtent = "8 2";
  1997. canSave = "1";
  1998. Visible = "1";
  1999. hovertime = "1000";
  2000. Margin = "0 0 0 0";
  2001. Padding = "0 0 0 0";
  2002. AnchorTop = "1";
  2003. AnchorBottom = "0";
  2004. AnchorLeft = "1";
  2005. AnchorRight = "0";
  2006. text = "Life Random";
  2007. maxLength = "255";
  2008. };
  2009. new GuiSliderCtrl(PEP_lifetimeVarianceMS) {
  2010. internalName = "PEP_lifetimeVarianceMS_slider";
  2011. canSaveDynamicFields = "0";
  2012. Enabled = "1";
  2013. isContainer = "0";
  2014. Profile = "ToolsGuiSliderProfile";
  2015. HorizSizing = "left";
  2016. VertSizing = "bottom";
  2017. position = $PE_guielement_pos_slider;
  2018. Extent = $PE_guielement_ext_slider;
  2019. MinExtent = "8 2";
  2020. canSave = "1";
  2021. Visible = "1";
  2022. Command = "PE_ParticleEditor.updateLifeFields( true, $ThisControl.getValue(), true, true );";
  2023. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateLifeFields( true, $ThisControl.getValue(), true, false );";
  2024. hovertime = "1000";
  2025. range = "0 8999";
  2026. ticks = "0";
  2027. value = "3000";
  2028. };
  2029. new GuiTextEditCtrl() {
  2030. internalName = "PEP_lifetimeVarianceMS_textEdit";
  2031. Profile = "ToolsGuiTextEditProfile";
  2032. HorizSizing = "left";
  2033. VertSizing = "bottom";
  2034. position = $PE_guielement_pos_value;
  2035. Extent = $PE_guielement_ext_value;
  2036. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateLifeFields( true, $ThisControl.getText() );";
  2037. };
  2038. };
  2039. }; // end stack
  2040. }; // end "Particles Basic" rollout
  2041. new GuiRolloutCtrl() {
  2042. class = "BehaviorQuickEditRollout";
  2043. superclass = LBQuickEditRollout;
  2044. Profile = "GuiRolloutProfile";
  2045. HorizSizing = "width";
  2046. VertSizing = "bottom";
  2047. Position = "0 0";
  2048. Extent = "197 0";
  2049. Caption = "Motion";
  2050. Margin = "4 4 4 0";
  2051. DragSizable = false;
  2052. container = true;
  2053. parentRollout = %this.rollout;
  2054. object = %behavior;
  2055. new GuiStackControl() {
  2056. StackingType = "Vertical";
  2057. HorizStacking = "Left to Right";
  2058. VertStacking = "Top to Bottom";
  2059. Padding = "0";
  2060. canSaveDynamicFields = "0";
  2061. Enabled = "1";
  2062. isContainer = "1";
  2063. Profile = "ToolsGuiDefaultProfile";
  2064. HorizSizing = "width";
  2065. VertSizing = "bottom";
  2066. Position = "1 3";
  2067. Extent = "197 16";
  2068. MinExtent = "16 16";
  2069. canSave = "1";
  2070. isDecoy = "0";
  2071. Visible = "1";
  2072. tooltipprofile = "ToolsGuiToolTipProfile";
  2073. hovertime = "1000";
  2074. new GuiControl(){ // Particle Initial speed
  2075. class = "AggregateControl";
  2076. isContainer = "1";
  2077. HorizSizing = "width";
  2078. VertSizing = "bottom";
  2079. Position = $PE_guielement_pos_single_container ;
  2080. Extent = $PE_guielement_ext_single_container ;
  2081. new GuiTextCtrl() {
  2082. Profile = "ToolsGuiTextProfile";
  2083. HorizSizing = "width";
  2084. VertSizing = "bottom";
  2085. position = $PE_guielement_pos_name;
  2086. Extent = $PE_guielement_ext_name;
  2087. text = "Initial Speed";
  2088. };
  2089. new GuiSliderCtrl(PEP_inheritedVelFactor) {
  2090. internalName = "PEP_inheritedVelFactor_slider";
  2091. canSaveDynamicFields = "0";
  2092. Enabled = "1";
  2093. isContainer = "0";
  2094. Profile = "ToolsGuiSliderProfile";
  2095. HorizSizing = "left";
  2096. VertSizing = "bottom";
  2097. position = $PE_guielement_pos_slider;
  2098. Extent = $PE_guielement_ext_slider;
  2099. MinExtent = "8 2";
  2100. canSave = "1";
  2101. Visible = "1";
  2102. Command = "PE_ParticleEditor.updateParticle( \"inheritedVelFactor\", $ThisControl.getValue(), true, true );";
  2103. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"inheritedVelFactor\", $ThisControl.getValue(), true, false );";
  2104. hovertime = "1000";
  2105. range = "0 10";
  2106. ticks = "0";
  2107. value = "0";
  2108. };
  2109. new GuiTextEditCtrl() {
  2110. internalName = "PEP_inheritedVelFactor_textEdit";
  2111. Profile = "ToolsGuiTextEditProfile";
  2112. HorizSizing = "left";
  2113. VertSizing = "bottom";
  2114. position = $PE_guielement_pos_value;
  2115. Extent = $PE_guielement_ext_value;
  2116. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"inheritedVelFactor\", $ThisControl.getText());";
  2117. };
  2118. };
  2119. new GuiControl(){ // Particle Acceleration
  2120. class = "AggregateControl";
  2121. isContainer = "1";
  2122. HorizSizing = "width";
  2123. VertSizing = "bottom";
  2124. Position = $PE_guielement_pos_single_container ;
  2125. Extent = $PE_guielement_ext_single_container ;
  2126. new GuiTextCtrl() {
  2127. Profile = "ToolsGuiTextProfile";
  2128. HorizSizing = "width";
  2129. VertSizing = "bottom";
  2130. position = $PE_guielement_pos_name;
  2131. Extent = $PE_guielement_ext_name;
  2132. text = "Acceleration";
  2133. };
  2134. new GuiSliderCtrl(PEP_constantAcceleration) {
  2135. internalName = "PEP_constantAcceleration_slider";
  2136. canSaveDynamicFields = "0";
  2137. Enabled = "1";
  2138. isContainer = "0";
  2139. Profile = "ToolsGuiSliderProfile";
  2140. HorizSizing = "left";
  2141. VertSizing = "bottom";
  2142. position = $PE_guielement_pos_slider;
  2143. Extent = $PE_guielement_ext_slider;
  2144. MinExtent = "8 2";
  2145. canSave = "1";
  2146. Visible = "1";
  2147. Command = "PE_ParticleEditor.updateParticle( \"constantAcceleration\", $ThisControl.getValue(), true, true );";
  2148. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"constantAcceleration\", $ThisControl.getValue(), true, false);";
  2149. hovertime = "1000";
  2150. range = "-10 10";
  2151. ticks = "0";
  2152. value = "0";
  2153. };
  2154. new GuiTextEditCtrl() {
  2155. internalName = "PEP_constantAcceleration_textEdit";
  2156. Profile = "ToolsGuiTextEditProfile";
  2157. HorizSizing = "left";
  2158. VertSizing = "bottom";
  2159. position = $PE_guielement_pos_value;
  2160. Extent = $PE_guielement_ext_value;
  2161. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"constantAcceleration\", $ThisControl.getText());";
  2162. };
  2163. };
  2164. new GuiControl(){ // Spacer ----------------------------
  2165. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  2166. new GuiBitmapCtrl(){
  2167. position="0 3"; extent ="188 2"; HorizSizing = "width";
  2168. bitmap ="tools/gui/images/separator-v";
  2169. };
  2170. };// end spacer ----------------------------------------
  2171. new GuiControl(){ // Particle Gravity
  2172. class = "AggregateControl";
  2173. isContainer = "1";
  2174. HorizSizing = "width";
  2175. VertSizing = "bottom";
  2176. Position = $PE_guielement_pos_single_container ;
  2177. Extent = $PE_guielement_ext_single_container ;
  2178. new GuiBitmapCtrl(){ // 0 Gravity
  2179. HorizSizing = "left";
  2180. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2)-1 SPC "0";
  2181. Extent = "2 18";
  2182. minExtent = "0 0";
  2183. bitmap = "tools/gui/images/separator-h";
  2184. tooltip = "0 Gravity";
  2185. };
  2186. new GuiTextCtrl() {
  2187. Profile = "ToolsGuiTextProfile";
  2188. HorizSizing = "width";
  2189. VertSizing = "bottom";
  2190. position = $PE_guielement_pos_name;
  2191. Extent = $PE_guielement_ext_name;
  2192. text = "Gravity";
  2193. };
  2194. new GuiSliderCtrl(PEP_gravityCoefficient) {
  2195. internalName = "PEP_gravityCoefficient_slider";
  2196. canSaveDynamicFields = "0";
  2197. Enabled = "1";
  2198. isContainer = "0";
  2199. Profile = "ToolsGuiSliderProfile";
  2200. HorizSizing = "left";
  2201. VertSizing = "bottom";
  2202. position = $PE_guielement_pos_slider;
  2203. Extent = $PE_guielement_ext_slider;
  2204. MinExtent = "8 2";
  2205. canSave = "1";
  2206. Visible = "1";
  2207. Command = "PE_ParticleEditor.updateParticle( \"gravityCoefficient\", $ThisControl.getValue(), true, true );";
  2208. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"gravityCoefficient\", $ThisControl.getValue(), true, false );";
  2209. hovertime = "1000";
  2210. range = "-1 1";
  2211. ticks = "0";
  2212. value = "0";
  2213. };
  2214. new GuiTextEditCtrl() {
  2215. internalName = "PEP_gravityCoefficient_textEdit";
  2216. Profile = "ToolsGuiTextEditProfile";
  2217. HorizSizing = "left";
  2218. VertSizing = "bottom";
  2219. position = $PE_guielement_pos_value;
  2220. Extent = $PE_guielement_ext_value;
  2221. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"gravityCoefficient\", $ThisControl.getText());";
  2222. };
  2223. };
  2224. new GuiControl(){ // Particle Drag
  2225. class = "AggregateControl";
  2226. isContainer = "1";
  2227. HorizSizing = "width";
  2228. VertSizing = "bottom";
  2229. Position = $PE_guielement_pos_single_container ;
  2230. Extent = $PE_guielement_ext_single_container ;
  2231. new GuiTextCtrl() {
  2232. Profile = "ToolsGuiTextProfile";
  2233. HorizSizing = "width";
  2234. VertSizing = "bottom";
  2235. position = $PE_guielement_pos_name;
  2236. Extent = $PE_guielement_ext_name;
  2237. text = "Drag";
  2238. };
  2239. new GuiSliderCtrl(PEP_dragCoefficient) {
  2240. internalName = "PEP_dragCoefficient_slider";
  2241. canSaveDynamicFields = "0";
  2242. Enabled = "1";
  2243. isContainer = "0";
  2244. Profile = "ToolsGuiSliderProfile";
  2245. HorizSizing = "left";
  2246. VertSizing = "bottom";
  2247. position = $PE_guielement_pos_slider;
  2248. Extent = $PE_guielement_ext_slider;
  2249. MinExtent = "8 2";
  2250. canSave = "1";
  2251. Visible = "1";
  2252. Command = "PE_ParticleEditor.updateParticle( \"dragCoefficient\", $ThisControl.getValue(), true, true );";
  2253. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"dragCoefficient\", $ThisControl.getValue(), true, false );";
  2254. hovertime = "1000";
  2255. range = "0 1";
  2256. ticks = "0";
  2257. value = "0.298143";
  2258. };
  2259. new GuiTextEditCtrl() {
  2260. internalName = "PEP_dragCoefficient_textEdit";
  2261. Profile = "ToolsGuiTextEditProfile";
  2262. HorizSizing = "left";
  2263. VertSizing = "bottom";
  2264. position = $PE_guielement_pos_value;
  2265. Extent = $PE_guielement_ext_value;
  2266. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"dragCoefficient\", $ThisControl.getText());";
  2267. };
  2268. }; //End Particle Drag
  2269. new GuiControl(){ // Particle Wind
  2270. class = "AggregateControl";
  2271. isContainer = "1";
  2272. HorizSizing = "width";
  2273. VertSizing = "bottom";
  2274. Position = $PE_guielement_pos_single_container ;
  2275. Extent = $PE_guielement_ext_single_container ;
  2276. new GuiTextCtrl() {
  2277. Profile = "ToolsGuiTextProfile";
  2278. HorizSizing = "width";
  2279. VertSizing = "bottom";
  2280. position = $PE_guielement_pos_name;
  2281. Extent = $PE_guielement_ext_name;
  2282. text = "Wind Coeff";
  2283. };
  2284. new GuiSliderCtrl(PEP_windCoefficient) {
  2285. internalName = "PEP_windCoefficient_slider";
  2286. canSaveDynamicFields = "0";
  2287. Enabled = "1";
  2288. isContainer = "0";
  2289. Profile = "ToolsGuiSliderProfile";
  2290. HorizSizing = "left";
  2291. VertSizing = "bottom";
  2292. position = $PE_guielement_pos_slider;
  2293. Extent = $PE_guielement_ext_slider;
  2294. MinExtent = "8 2";
  2295. canSave = "1";
  2296. Visible = "1";
  2297. Command = "PE_ParticleEditor.updateParticle( \"windCoefficient\", $ThisControl.getValue(), true, true );";
  2298. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"windCoefficient\", $ThisControl.getValue(), true, false );";
  2299. hovertime = "1000";
  2300. range = "0 1";
  2301. ticks = "0";
  2302. value = "0.298143";
  2303. };
  2304. new GuiTextEditCtrl() {
  2305. internalName = "PEP_windCoefficient_textEdit";
  2306. Profile = "ToolsGuiTextEditProfile";
  2307. HorizSizing = "left";
  2308. VertSizing = "bottom";
  2309. position = $PE_guielement_pos_value;
  2310. Extent = $PE_guielement_ext_value;
  2311. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"windCoefficient\", $ThisControl.getText());";
  2312. };
  2313. };
  2314. }; // end stack
  2315. }; // end "motion" rollout
  2316. new GuiRolloutCtrl() {
  2317. class = "BehaviorQuickEditRollout";
  2318. superclass = LBQuickEditRollout;
  2319. Profile = "GuiRolloutProfile";
  2320. HorizSizing = "width";
  2321. VertSizing = "bottom";
  2322. Position = "0 0";
  2323. Extent = "197 0";
  2324. Caption = "Spin";
  2325. Margin = "4 4 4 0";
  2326. DragSizable = false;
  2327. container = true;
  2328. parentRollout = %this.rollout;
  2329. object = %behavior;
  2330. new GuiStackControl() {
  2331. StackingType = "Vertical";
  2332. HorizStacking = "Left to Right";
  2333. VertStacking = "Top to Bottom";
  2334. Padding = "0";
  2335. canSaveDynamicFields = "0";
  2336. Enabled = "1";
  2337. isContainer = "1";
  2338. Profile = "ToolsGuiDefaultProfile";
  2339. HorizSizing = "width";
  2340. VertSizing = "bottom";
  2341. Position = "1 3";
  2342. Extent = "197 16";
  2343. MinExtent = "16 16";
  2344. canSave = "1";
  2345. isDecoy = "0";
  2346. Visible = "1";
  2347. tooltipprofile = "ToolsGuiToolTipProfile";
  2348. hovertime = "1000";
  2349. new GuiControl(){ // Particle spin Min
  2350. class = "AggregateControl";
  2351. isContainer = "1";
  2352. HorizSizing = "width";
  2353. VertSizing = "bottom";
  2354. Position = $PE_guielement_pos_single_container ;
  2355. Extent = $PE_guielement_ext_single_container ;
  2356. new GuiBitmapCtrl(){ // No Spin
  2357. HorizSizing = "left";
  2358. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2)-1 SPC "0";
  2359. Extent = "2 18";
  2360. minExtent = "0 0";
  2361. bitmap = "tools/gui/images/separator-h";
  2362. tooltip = "No Spin";
  2363. };
  2364. new GuiTextCtrl() {
  2365. Profile = "ToolsGuiTextProfile";
  2366. HorizSizing = "width";
  2367. VertSizing = "bottom";
  2368. position = $PE_guielement_pos_name;
  2369. Extent = $PE_guielement_ext_name;
  2370. text = "Spin Min";
  2371. };
  2372. new GuiSliderCtrl(PEP_spinRandomMin) {
  2373. internalName = "PEP_spinRandomMin_slider";
  2374. canSaveDynamicFields = "0";
  2375. Enabled = "1";
  2376. isContainer = "0";
  2377. Profile = "ToolsGuiSliderProfile";
  2378. HorizSizing = "left";
  2379. VertSizing = "bottom";
  2380. position = $PE_guielement_pos_slider;
  2381. Extent = $PE_guielement_ext_slider;
  2382. MinExtent = "8 2";
  2383. canSave = "1";
  2384. Visible = "1";
  2385. Command = "PE_ParticleEditor.updateSpinFields( true, $ThisControl.getValue(), true, true );";
  2386. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateSpinFields( true, $ThisControl.getValue(), true, false );";
  2387. hovertime = "1000";
  2388. range = "-1000 999";
  2389. ticks = "0";
  2390. value = "0";
  2391. };
  2392. new GuiTextEditCtrl() {
  2393. internalName = "PEP_spinRandomMin_textEdit";
  2394. Profile = "ToolsGuiTextEditProfile";
  2395. HorizSizing = "left";
  2396. VertSizing = "bottom";
  2397. position = $PE_guielement_pos_value;
  2398. Extent = $PE_guielement_ext_value;
  2399. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateSpinFields( true, $ThisControl.getText() );";
  2400. };
  2401. };
  2402. new GuiControl(){ // Particle Spin Max
  2403. class = "AggregateControl";
  2404. isContainer = "1";
  2405. HorizSizing = "width";
  2406. VertSizing = "bottom";
  2407. Position = $PE_guielement_pos_single_container ;
  2408. Extent = $PE_guielement_ext_single_container ;
  2409. new GuiBitmapCtrl(){ // No Spin
  2410. HorizSizing = "left";
  2411. position = getWord($PE_guielement_pos_slider,0)+mCeil(getWord($PE_guielement_ext_slider,0)/2)-1 SPC "0";
  2412. Extent = "2 18";
  2413. minExtent = "0 0";
  2414. bitmap = "tools/gui/images/separator-h";
  2415. tooltip = "No Spin";
  2416. };
  2417. new GuiTextCtrl() {
  2418. Profile = "ToolsGuiTextProfile";
  2419. HorizSizing = "width";
  2420. VertSizing = "bottom";
  2421. position = $PE_guielement_pos_name;
  2422. Extent = $PE_guielement_ext_name;
  2423. text = "Spin Max";
  2424. };
  2425. new GuiSliderCtrl(PEP_spinRandomMax) {
  2426. internalName = "PEP_spinRandomMax_slider";
  2427. canSaveDynamicFields = "0";
  2428. Enabled = "1";
  2429. isContainer = "0";
  2430. Profile = "ToolsGuiSliderProfile";
  2431. HorizSizing = "left";
  2432. VertSizing = "bottom";
  2433. position = $PE_guielement_pos_slider;
  2434. Extent = $PE_guielement_ext_slider;
  2435. MinExtent = "8 2";
  2436. canSave = "1";
  2437. Visible = "1";
  2438. Command = "PE_ParticleEditor.updateSpinFields( false, $ThisControl.getValue(), true, true );";
  2439. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateSpinFields( false, $ThisControl.getValue(), true, false );";
  2440. hovertime = "1000";
  2441. range = "-999 1000";
  2442. ticks = "0";
  2443. value = "0";
  2444. };
  2445. new GuiTextEditCtrl() {
  2446. internalName = "PEP_spinRandomMax_textEdit";
  2447. Profile = "ToolsGuiTextEditProfile";
  2448. HorizSizing = "left";
  2449. VertSizing = "bottom";
  2450. position = $PE_guielement_pos_value;
  2451. Extent = $PE_guielement_ext_value;
  2452. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateSpinFields( false, $ThisControl.getText() );";
  2453. };
  2454. };
  2455. new GuiControl(){ // Spacer ----------------------------
  2456. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  2457. new GuiBitmapCtrl(){
  2458. position="0 3"; extent ="188 2"; HorizSizing = "width";
  2459. bitmap ="tools/gui/images/separator-v";
  2460. };
  2461. };// end spacer ----------------------------------------
  2462. new GuiControl(){ // Particle spin Speed
  2463. class = "AggregateControl";
  2464. isContainer = "1";
  2465. HorizSizing = "width";
  2466. VertSizing = "bottom";
  2467. Position = $PE_guielement_pos_single_container ;
  2468. Extent = $PE_guielement_ext_single_container ;
  2469. new GuiTextCtrl() {
  2470. Profile = "ToolsGuiTextProfile";
  2471. HorizSizing = "width";
  2472. VertSizing = "bottom";
  2473. position = $PE_guielement_pos_name;
  2474. Extent = $PE_guielement_ext_name;
  2475. text = "Spin Speed";
  2476. };
  2477. new GuiSliderCtrl(PEP_spinSpeed) {
  2478. internalName = "PEP_spinSpeed_slider";
  2479. canSaveDynamicFields = "0";
  2480. Enabled = "1";
  2481. isContainer = "0";
  2482. Profile = "ToolsGuiSliderProfile";
  2483. HorizSizing = "left";
  2484. VertSizing = "bottom";
  2485. position = $PE_guielement_pos_slider;
  2486. Extent = $PE_guielement_ext_slider;
  2487. MinExtent = "8 2";
  2488. canSave = "1";
  2489. Visible = "1";
  2490. hovertime = "1000";
  2491. range = "0 1";
  2492. ticks = "0";
  2493. value = "0";
  2494. Command = "PE_ParticleEditor.updateParticle( \"spinSpeed\", $ThisControl.getValue(), true, true );";
  2495. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"spinSpeed\", $ThisControl.getValue(), true, false );";
  2496. };
  2497. new GuiTextEditCtrl() {
  2498. internalName = "PEP_spinSpeed_textEdit";
  2499. Profile = "ToolsGuiTextEditProfile";
  2500. HorizSizing = "left";
  2501. VertSizing = "bottom";
  2502. position = $PE_guielement_pos_value;
  2503. Extent = $PE_guielement_ext_value;
  2504. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"spinSpeed\", $ThisControl.getText());";
  2505. };
  2506. };
  2507. }; // end stack
  2508. }; // end "Spin" rollout
  2509. new GuiRolloutCtrl() {
  2510. class = "BehaviorQuickEditRollout";
  2511. superclass = LBQuickEditRollout;
  2512. Profile = "GuiRolloutProfile";
  2513. HorizSizing = "width";
  2514. VertSizing = "bottom";
  2515. Position = "0 0";
  2516. Extent = "197 0";
  2517. Caption = "Animation";
  2518. Margin = "4 4 4 0";
  2519. DragSizable = false;
  2520. container = true;
  2521. parentRollout = %this.rollout;
  2522. object = %behavior;
  2523. new GuiStackControl() {
  2524. StackingType = "Vertical";
  2525. HorizStacking = "Left to Right";
  2526. VertStacking = "Top to Bottom";
  2527. Padding = "0";
  2528. canSaveDynamicFields = "0";
  2529. Enabled = "1";
  2530. isContainer = "1";
  2531. Profile = "ToolsGuiDefaultProfile";
  2532. HorizSizing = "width";
  2533. VertSizing = "bottom";
  2534. Position = "1 3";
  2535. Extent = "197 16";
  2536. MinExtent = "16 16";
  2537. canSave = "1";
  2538. isDecoy = "0";
  2539. Visible = "1";
  2540. tooltipprofile = "ToolsGuiToolTipProfile";
  2541. hovertime = "1000";
  2542. new GuiCheckBoxCtrl() {
  2543. internalName = "PEP_animateTexture";
  2544. HorizSizing = "width";
  2545. VertSizing = "bottom";
  2546. position = "55 14";
  2547. Extent = "84 18";
  2548. MinExtent = "8 2";
  2549. text = "Animate Texture";
  2550. command = "PE_ParticleEditor.updateParticle( \"animateTexture\", $ThisControl.getValue());";
  2551. };
  2552. new GuiControl(){ // Particle framesPerSec
  2553. class = "AggregateControl";
  2554. isContainer = "1";
  2555. HorizSizing = "width";
  2556. VertSizing = "bottom";
  2557. Position = $PE_guielement_pos_single_container ;
  2558. Extent = $PE_guielement_ext_single_container ;
  2559. new GuiTextCtrl() {
  2560. Profile = "ToolsGuiTextProfile";
  2561. HorizSizing = "width";
  2562. VertSizing = "bottom";
  2563. position = $PE_guielement_pos_name;
  2564. Extent = $PE_guielement_ext_name;
  2565. text = "framesPerSec";
  2566. };
  2567. new GuiSliderCtrl(PEP_framesPerSec) {
  2568. internalName = "PEP_framesPerSec_slider";
  2569. canSaveDynamicFields = "0";
  2570. Enabled = "1";
  2571. isContainer = "0";
  2572. Profile = "ToolsGuiSliderProfile";
  2573. HorizSizing = "left";
  2574. VertSizing = "bottom";
  2575. position = $PE_guielement_pos_slider;
  2576. Extent = $PE_guielement_ext_slider;
  2577. MinExtent = "8 2";
  2578. canSave = "1";
  2579. Visible = "1";
  2580. hovertime = "1000";
  2581. range = "0 60";
  2582. ticks = "0";
  2583. value = "0";
  2584. Command = "PE_ParticleEditor.updateParticle( \"framesPerSec\", $ThisControl.getValue(), true, true );";
  2585. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"framesPerSec\", $ThisControl.getValue(), true, false );";
  2586. };
  2587. new GuiTextEditCtrl() {
  2588. internalName = "PEP_framesPerSec_textEdit";
  2589. Profile = "ToolsGuiTextEditProfile";
  2590. HorizSizing = "left";
  2591. VertSizing = "bottom";
  2592. position = $PE_guielement_pos_value;
  2593. Extent = $PE_guielement_ext_value;
  2594. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"framesPerSec\", $ThisControl.getText());";
  2595. };
  2596. }; // end framesPerSec
  2597. new GuiControl(){ // Particle animTexFramesList
  2598. class = "AggregateControl";
  2599. isContainer = "1";
  2600. HorizSizing = "width";
  2601. VertSizing = "bottom";
  2602. Position = $PE_guielement_pos_single_container;
  2603. Extent = $PE_guielement_ext_single_container;
  2604. new GuiTextCtrl() {
  2605. Profile = "ToolsGuiTextProfile";
  2606. HorizSizing = "width";
  2607. VertSizing = "bottom";
  2608. position = $PE_guielement_pos_name;
  2609. Extent = $PE_guielement_ext_name;
  2610. text = "animTexFrames";
  2611. };
  2612. new GuiTextEditCtrl() {
  2613. internalName = "PEP_animTexFramesList_textEdit";
  2614. Profile = "ToolsGuiTextEditProfile";
  2615. HorizSizing = "left";
  2616. VertSizing = "bottom";
  2617. position = $PE_guielement_pos_textedit;
  2618. Extent = $PE_guielement_ext_textedit;
  2619. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"animTexFrames\", $ThisControl.getText());";
  2620. };
  2621. }; // end animTexFramesList
  2622. new GuiControl(){ // Particle animTileCount
  2623. class = "AggregateControl";
  2624. isContainer = "1";
  2625. HorizSizing = "width";
  2626. VertSizing = "bottom";
  2627. Position = $PE_guielement_pos_single_container;
  2628. Extent = $PE_guielement_ext_single_container;
  2629. new GuiTextCtrl() {
  2630. Profile = "ToolsGuiTextProfile";
  2631. HorizSizing = "width";
  2632. VertSizing = "bottom";
  2633. position = $PE_guielement_pos_name;
  2634. Extent = $PE_guielement_ext_name;
  2635. text = "TileCount (X Y)";
  2636. };
  2637. new GuiTextEditCtrl() {
  2638. internalName = "PEP_animTileCount_textEdit";
  2639. Profile = "ToolsGuiTextEditProfile";
  2640. HorizSizing = "left";
  2641. VertSizing = "bottom";
  2642. position = $PE_guielement_pos_value;
  2643. Extent = $PE_guielement_ext_value;
  2644. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"animTexTiling\", $ThisControl.getText());";
  2645. };
  2646. }; // end animTileCount
  2647. }; // end stack
  2648. }; // end "Anim" rollout
  2649. new GuiRolloutCtrl() {
  2650. class = "BehaviorQuickEditRollout";
  2651. superclass = LBQuickEditRollout;
  2652. Profile = "GuiRolloutProfile";
  2653. HorizSizing = "width";
  2654. VertSizing = "bottom";
  2655. Position = "0 0";
  2656. Extent = "197 0";
  2657. Caption = "Overtime";
  2658. Margin = "4 4 4 0";
  2659. DragSizable = false;
  2660. container = true;
  2661. parentRollout = %this.rollout;
  2662. object = %behavior;
  2663. new GuiStackControl() {
  2664. StackingType = "Vertical";
  2665. HorizStacking = "Left to Right";
  2666. VertStacking = "Top to Bottom";
  2667. Padding = "0";
  2668. canSaveDynamicFields = "0";
  2669. Enabled = "1";
  2670. isContainer = "1";
  2671. Profile = "ToolsGuiDefaultProfile";
  2672. HorizSizing = "width";
  2673. VertSizing = "bottom";
  2674. Position = "1 3";
  2675. Extent = "197 16";
  2676. MinExtent = "16 16";
  2677. canSave = "1";
  2678. isDecoy = "0";
  2679. Visible = "1";
  2680. tooltipprofile = "ToolsGuiToolTipProfile";
  2681. hovertime = "1000";
  2682. new GuiControl(){ // Particle Point Colors
  2683. class = "";
  2684. isContainer = "1";
  2685. HorizSizing = "width";
  2686. VertSizing = "bottom";
  2687. Position = $PE_guielement_pos_single_container ;
  2688. Extent = $PE_guielement_ext_single_container ;
  2689. new GuiTextCtrl() {
  2690. Profile = "ToolsGuiTextProfile";
  2691. HorizSizing = "width";
  2692. VertSizing = "bottom";
  2693. position = $PE_guielement_pos_name;
  2694. Extent = $PE_guielement_ext_name;
  2695. text = "Colors";
  2696. };
  2697. new GuiSwatchButtonCtrl(PE_ColorTintSwatch0) {
  2698. canSaveDynamicFields = "0";
  2699. Enabled = "1";
  2700. isContainer = "0";
  2701. Profile = "GuiInspectorSwatchButtonProfile";
  2702. HorizSizing = "left";
  2703. VertSizing = "bottom";
  2704. position = "75 0";
  2705. Extent = $PE_guielement_ext_colorpicker;
  2706. MinExtent = "8 2";
  2707. canSave = "1";
  2708. Visible = "1";
  2709. Command = "getColorF( PE_ParticleEditor.currParticle.colors[0], \"PE_ColorTintSwatch0.updateParticleColor\");";
  2710. altCommand = "$ThisControl.updateParticleColor( $ThisControl.color );";
  2711. hovertime = "1000";
  2712. groupNum = "-1";
  2713. buttonType = "PushButton";
  2714. useMouseEvents = "1";
  2715. arrayNum = "0";
  2716. class = "PE_ColorTintSwatch";
  2717. };
  2718. new GuiSwatchButtonCtrl(PE_ColorTintSwatch1) {
  2719. canSaveDynamicFields = "0";
  2720. Enabled = "1";
  2721. isContainer = "0";
  2722. Profile = "GuiInspectorSwatchButtonProfile";
  2723. HorizSizing = "left";
  2724. VertSizing = "bottom";
  2725. position = "102 0";
  2726. Extent = $PE_guielement_ext_colorpicker;
  2727. MinExtent = "8 2";
  2728. canSave = "1";
  2729. Visible = "1";
  2730. Command = "getColorF( PE_ParticleEditor.currParticle.colors[1], \"PE_ColorTintSwatch1.updateParticleColor\");";
  2731. altCommand = "$ThisControl.updateParticleColor( $ThisControl.color );";
  2732. hovertime = "1000";
  2733. groupNum = "-1";
  2734. buttonType = "PushButton";
  2735. useMouseEvents = "1";
  2736. arrayNum = "1";
  2737. class = "PE_ColorTintSwatch";
  2738. };
  2739. new GuiSwatchButtonCtrl(PE_ColorTintSwatch2) {
  2740. canSaveDynamicFields = "0";
  2741. Enabled = "1";
  2742. isContainer = "0";
  2743. Profile = "GuiInspectorSwatchButtonProfile";
  2744. HorizSizing = "left";
  2745. VertSizing = "bottom";
  2746. position = "129 0";
  2747. Extent = $PE_guielement_ext_colorpicker;
  2748. MinExtent = "8 2";
  2749. canSave = "1";
  2750. Visible = "1";
  2751. Command = "getColorF( PE_ParticleEditor.currParticle.colors[2], \"PE_ColorTintSwatch2.updateParticleColor\");";
  2752. altCommand = "$ThisControl.updateParticleColor( $ThisControl.color );";
  2753. hovertime = "1000";
  2754. groupNum = "-1";
  2755. buttonType = "PushButton";
  2756. useMouseEvents = "1";
  2757. arrayNum = "2";
  2758. class = "PE_ColorTintSwatch";
  2759. };
  2760. new GuiSwatchButtonCtrl(PE_ColorTintSwatch3) {
  2761. canSaveDynamicFields = "0";
  2762. Enabled = "1";
  2763. isContainer = "0";
  2764. Profile = "GuiInspectorSwatchButtonProfile";
  2765. HorizSizing = "left";
  2766. VertSizing = "bottom";
  2767. position = "156 0";
  2768. Extent = $PE_guielement_ext_colorpicker;
  2769. MinExtent = "8 2";
  2770. canSave = "1";
  2771. Visible = "1";
  2772. Command = "getColorF( PE_ParticleEditor.currParticle.colors[3], \"PE_ColorTintSwatch3.updateParticleColor\");";
  2773. altCommand = "$ThisControl.updateParticleColor( $ThisControl.color );";
  2774. hovertime = "1000";
  2775. groupNum = "-1";
  2776. buttonType = "PushButton";
  2777. useMouseEvents = "1";
  2778. arrayNum = "3";
  2779. class = "PE_ColorTintSwatch";
  2780. };
  2781. };
  2782. new GuiControl(){ // Spacer ----------------------------
  2783. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  2784. new GuiBitmapCtrl(){
  2785. position="0 3"; extent ="188 2"; HorizSizing = "width";
  2786. bitmap ="tools/gui/images/separator-v";
  2787. };
  2788. };// end spacer ----------------------------------------
  2789. new GuiControl(){ // Particle Point Size
  2790. class = "AggregateControl";
  2791. isContainer = "1";
  2792. HorizSizing = "width";
  2793. VertSizing = "bottom";
  2794. Position = $PE_guielement_pos_single_container ;
  2795. Extent = $PE_guielement_ext_single_container ;
  2796. new GuiTextCtrl() {
  2797. Profile = "ToolsGuiTextProfile";
  2798. HorizSizing = "width";
  2799. VertSizing = "bottom";
  2800. position = $PE_guielement_pos_name;
  2801. Extent = $PE_guielement_ext_name;
  2802. text = "Size 1";
  2803. };
  2804. new GuiSliderCtrl() {
  2805. internalName = "PEP_pointSize_slider0";
  2806. canSaveDynamicFields = "0";
  2807. Enabled = "1";
  2808. isContainer = "0";
  2809. Profile = "ToolsGuiSliderProfile";
  2810. HorizSizing = "left";
  2811. VertSizing = "bottom";
  2812. position = $PE_guielement_pos_slider;
  2813. Extent = $PE_guielement_ext_slider;
  2814. MinExtent = "8 2";
  2815. canSave = "1";
  2816. Visible = "1";
  2817. Command = "";
  2818. hovertime = "1000";
  2819. range = "0 50";
  2820. ticks = "0";
  2821. value = "0";
  2822. Command = "PE_ParticleEditor.updateParticle( \"sizes[0]\", $ThisControl.getValue(), true, true );";
  2823. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[0]\", $ThisControl.getValue(), true, false );";
  2824. };
  2825. new GuiTextEditCtrl() {
  2826. internalName = "PEP_pointSize_textEdit0";
  2827. Profile = "ToolsGuiTextEditProfile";
  2828. HorizSizing = "left";
  2829. VertSizing = "bottom";
  2830. position = $PE_guielement_pos_value;
  2831. Extent = $PE_guielement_ext_value;
  2832. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[0]\", $ThisControl.getText());";
  2833. };
  2834. };
  2835. new GuiControl(){ // Particle Point Size
  2836. class = "AggregateControl";
  2837. isContainer = "1";
  2838. HorizSizing = "width";
  2839. VertSizing = "bottom";
  2840. Position = $PE_guielement_pos_single_container ;
  2841. Extent = $PE_guielement_ext_single_container ;
  2842. new GuiTextCtrl() {
  2843. Profile = "ToolsGuiTextProfile";
  2844. HorizSizing = "width";
  2845. VertSizing = "bottom";
  2846. position = $PE_guielement_pos_name;
  2847. Extent = $PE_guielement_ext_name;
  2848. text = "Size 2";
  2849. };
  2850. new GuiSliderCtrl() {
  2851. internalName = "PEP_pointSize_slider1";
  2852. canSaveDynamicFields = "0";
  2853. Enabled = "1";
  2854. isContainer = "0";
  2855. Profile = "ToolsGuiSliderProfile";
  2856. HorizSizing = "left";
  2857. VertSizing = "bottom";
  2858. position = $PE_guielement_pos_slider;
  2859. Extent = $PE_guielement_ext_slider;
  2860. MinExtent = "8 2";
  2861. canSave = "1";
  2862. Visible = "1";
  2863. Command = "";
  2864. hovertime = "1000";
  2865. range = "0 50";
  2866. ticks = "0";
  2867. value = "0";
  2868. Command = "PE_ParticleEditor.updateParticle( \"sizes[1]\", $ThisControl.getValue(), true, true );";
  2869. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[1]\", $ThisControl.getValue(), true, false );";
  2870. };
  2871. new GuiTextEditCtrl() {
  2872. internalName = "PEP_pointSize_textEdit1";
  2873. Profile = "ToolsGuiTextEditProfile";
  2874. HorizSizing = "left";
  2875. VertSizing = "bottom";
  2876. position = $PE_guielement_pos_value;
  2877. Extent = $PE_guielement_ext_value;
  2878. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[1]\", $ThisControl.getText());";
  2879. };
  2880. };
  2881. new GuiControl(){ // Particle Point Size
  2882. class = "AggregateControl";
  2883. isContainer = "1";
  2884. HorizSizing = "width";
  2885. VertSizing = "bottom";
  2886. Position = $PE_guielement_pos_single_container ;
  2887. Extent = $PE_guielement_ext_single_container ;
  2888. new GuiTextCtrl() {
  2889. Profile = "ToolsGuiTextProfile";
  2890. HorizSizing = "width";
  2891. VertSizing = "bottom";
  2892. position = $PE_guielement_pos_name;
  2893. Extent = $PE_guielement_ext_name;
  2894. text = "Size 3";
  2895. };
  2896. new GuiSliderCtrl() {
  2897. internalName = "PEP_pointSize_slider2";
  2898. canSaveDynamicFields = "0";
  2899. Enabled = "1";
  2900. isContainer = "0";
  2901. Profile = "ToolsGuiSliderProfile";
  2902. HorizSizing = "left";
  2903. VertSizing = "bottom";
  2904. position = $PE_guielement_pos_slider;
  2905. Extent = $PE_guielement_ext_slider;
  2906. MinExtent = "8 2";
  2907. canSave = "1";
  2908. Visible = "1";
  2909. Command = "";
  2910. hovertime = "1000";
  2911. range = "0 50";
  2912. ticks = "0";
  2913. value = "0";
  2914. Command = "PE_ParticleEditor.updateParticle( \"sizes[2]\", $ThisControl.getValue(), true, true );";
  2915. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[2]\", $ThisControl.getValue(), true, false );";
  2916. };
  2917. new GuiTextEditCtrl() {
  2918. internalName = "PEP_pointSize_textEdit2";
  2919. Profile = "ToolsGuiTextEditProfile";
  2920. HorizSizing = "left";
  2921. VertSizing = "bottom";
  2922. position = $PE_guielement_pos_value;
  2923. Extent = $PE_guielement_ext_value;
  2924. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[2]\", $ThisControl.getText());";
  2925. };
  2926. };
  2927. new GuiControl(){ // Particle Point Size
  2928. class = "AggregateControl";
  2929. isContainer = "1";
  2930. HorizSizing = "width";
  2931. VertSizing = "bottom";
  2932. Position = $PE_guielement_pos_single_container ;
  2933. Extent = $PE_guielement_ext_single_container ;
  2934. new GuiTextCtrl() {
  2935. Profile = "ToolsGuiTextProfile";
  2936. HorizSizing = "width";
  2937. VertSizing = "bottom";
  2938. position = $PE_guielement_pos_name;
  2939. Extent = $PE_guielement_ext_name;
  2940. text = "Size 4";
  2941. };
  2942. new GuiSliderCtrl() {
  2943. internalName = "PEP_pointSize_slider3";
  2944. canSaveDynamicFields = "0";
  2945. Enabled = "1";
  2946. isContainer = "0";
  2947. Profile = "ToolsGuiSliderProfile";
  2948. HorizSizing = "left";
  2949. VertSizing = "bottom";
  2950. position = $PE_guielement_pos_slider;
  2951. Extent = $PE_guielement_ext_slider;
  2952. MinExtent = "8 2";
  2953. canSave = "1";
  2954. Visible = "1";
  2955. Command = "";
  2956. hovertime = "1000";
  2957. range = "0 50";
  2958. ticks = "0";
  2959. value = "0";
  2960. Command = "PE_ParticleEditor.updateParticle( \"sizes[3]\", $ThisControl.getValue(), true, true );";
  2961. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[3]\", $ThisControl.getValue(), true, false );";
  2962. };
  2963. new GuiTextEditCtrl() {
  2964. internalName = "PEP_pointSize_textEdit3";
  2965. Profile = "ToolsGuiTextEditProfile";
  2966. HorizSizing = "left";
  2967. VertSizing = "bottom";
  2968. position = $PE_guielement_pos_value;
  2969. Extent = $PE_guielement_ext_value;
  2970. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"sizes[3]\", $ThisControl.getText());";
  2971. };
  2972. };
  2973. new GuiControl(){ // Spacer ----------------------------
  2974. isContainer = "1"; HorizSizing = "width"; Position = "0 0"; Extent = "194 8";
  2975. new GuiBitmapCtrl(){
  2976. position="0 3"; extent ="188 2"; HorizSizing = "width";
  2977. bitmap ="tools/gui/images/separator-v";
  2978. };
  2979. };// end spacer ----------------------------------------
  2980. new GuiControl(){ // Particle Point Time
  2981. class = "AggregateControl";
  2982. isContainer = "1";
  2983. HorizSizing = "width";
  2984. VertSizing = "bottom";
  2985. Position = $PE_guielement_pos_single_container ;
  2986. Extent = $PE_guielement_ext_single_container ;
  2987. new GuiTextCtrl() {
  2988. Profile = "ToolsGuiTextProfile";
  2989. HorizSizing = "width";
  2990. VertSizing = "bottom";
  2991. position = $PE_guielement_pos_name;
  2992. Extent = $PE_guielement_ext_name;
  2993. text = "Time 1";
  2994. };
  2995. new GuiSliderCtrl() {
  2996. internalName = "PEP_pointTime_slider0";
  2997. canSaveDynamicFields = "0";
  2998. Enabled = "1";
  2999. isContainer = "0";
  3000. Profile = "ToolsGuiSliderProfile";
  3001. HorizSizing = "left";
  3002. VertSizing = "bottom";
  3003. position = $PE_guielement_pos_slider;
  3004. Extent = $PE_guielement_ext_slider;
  3005. MinExtent = "8 2";
  3006. canSave = "1";
  3007. Visible = "1";
  3008. Command = "";
  3009. hovertime = "1000";
  3010. range = "0 1";
  3011. ticks = "0";
  3012. value = "0";
  3013. Command = "PE_ParticleEditor.updateParticle( \"times[0]\", $ThisControl.getValue(), true, true );";
  3014. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[0]\", $ThisControl.getValue(), true, false );";
  3015. };
  3016. new GuiTextEditCtrl() {
  3017. internalName = "PEP_pointTime_textEdit0";
  3018. Profile = "ToolsGuiTextEditProfile";
  3019. HorizSizing = "left";
  3020. VertSizing = "bottom";
  3021. position = $PE_guielement_pos_value;
  3022. Extent = $PE_guielement_ext_value;
  3023. altCommand = "$ThisControl.setText(mClamp( $ThisControl.getValue(), 0.0, 1.0)); $ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[0]\", $ThisControl.getText());";
  3024. };
  3025. };
  3026. new GuiControl(){ // Particle Point Time
  3027. class = "AggregateControl";
  3028. isContainer = "1";
  3029. HorizSizing = "width";
  3030. VertSizing = "bottom";
  3031. Position = $PE_guielement_pos_single_container ;
  3032. Extent = $PE_guielement_ext_single_container ;
  3033. new GuiTextCtrl() {
  3034. Profile = "ToolsGuiTextProfile";
  3035. HorizSizing = "width";
  3036. VertSizing = "bottom";
  3037. position = $PE_guielement_pos_name;
  3038. Extent = $PE_guielement_ext_name;
  3039. text = "Time 2";
  3040. };
  3041. new GuiSliderCtrl() {
  3042. internalName = "PEP_pointTime_slider1";
  3043. canSaveDynamicFields = "0";
  3044. Enabled = "1";
  3045. isContainer = "0";
  3046. Profile = "ToolsGuiSliderProfile";
  3047. HorizSizing = "left";
  3048. VertSizing = "bottom";
  3049. position = $PE_guielement_pos_slider;
  3050. Extent = $PE_guielement_ext_slider;
  3051. MinExtent = "8 2";
  3052. canSave = "1";
  3053. Visible = "1";
  3054. Command = "";
  3055. hovertime = "1000";
  3056. range = "0 1";
  3057. ticks = "0";
  3058. value = "0";
  3059. Command = "PE_ParticleEditor.updateParticle( \"times[1]\", $ThisControl.getValue(), true, true );";
  3060. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[1]\", $ThisControl.getValue(), true, false );";
  3061. };
  3062. new GuiTextEditCtrl() {
  3063. internalName = "PEP_pointTime_textEdit1";
  3064. Profile = "ToolsGuiTextEditProfile";
  3065. HorizSizing = "left";
  3066. VertSizing = "bottom";
  3067. position = $PE_guielement_pos_value;
  3068. Extent = $PE_guielement_ext_value;
  3069. altCommand = "$ThisControl.setText(mClamp( $ThisControl.getValue(), 0.0, 1.0)); $ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[1]\", $ThisControl.getText());";
  3070. };
  3071. };
  3072. new GuiControl(){ // Particle Point Time
  3073. class = "AggregateControl";
  3074. isContainer = "1";
  3075. HorizSizing = "width";
  3076. VertSizing = "bottom";
  3077. Position = $PE_guielement_pos_single_container ;
  3078. Extent = $PE_guielement_ext_single_container ;
  3079. new GuiTextCtrl() {
  3080. Profile = "ToolsGuiTextProfile";
  3081. HorizSizing = "width";
  3082. VertSizing = "bottom";
  3083. position = $PE_guielement_pos_name;
  3084. Extent = $PE_guielement_ext_name;
  3085. text = "Time 3";
  3086. };
  3087. new GuiSliderCtrl() {
  3088. internalName = "PEP_pointTime_slider2";
  3089. canSaveDynamicFields = "0";
  3090. Enabled = "1";
  3091. isContainer = "0";
  3092. Profile = "ToolsGuiSliderProfile";
  3093. HorizSizing = "left";
  3094. VertSizing = "bottom";
  3095. position = $PE_guielement_pos_slider;
  3096. Extent = $PE_guielement_ext_slider;
  3097. MinExtent = "8 2";
  3098. canSave = "1";
  3099. Visible = "1";
  3100. Command = "";
  3101. hovertime = "1000";
  3102. range = "0 1";
  3103. ticks = "0";
  3104. value = "0";
  3105. Command = "PE_ParticleEditor.updateParticle( \"times[2]\", $ThisControl.getValue(), true, true );";
  3106. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[2]\", $ThisControl.getValue(), true, false );";
  3107. };
  3108. new GuiTextEditCtrl() {
  3109. internalName = "PEP_pointTime_textEdit2";
  3110. Profile = "ToolsGuiTextEditProfile";
  3111. HorizSizing = "left";
  3112. VertSizing = "bottom";
  3113. position = $PE_guielement_pos_value;
  3114. Extent = $PE_guielement_ext_value;
  3115. altCommand = "$ThisControl.setText(mClamp( $ThisControl.getValue(), 0.0, 1.0)); $ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[2]\", $ThisControl.getText());";
  3116. };
  3117. };
  3118. new GuiControl(){ // Particle Point Time
  3119. class = "AggregateControl";
  3120. isContainer = "1";
  3121. HorizSizing = "width";
  3122. VertSizing = "bottom";
  3123. Position = $PE_guielement_pos_single_container ;
  3124. Extent = $PE_guielement_ext_single_container ;
  3125. new GuiTextCtrl() {
  3126. Profile = "ToolsGuiTextProfile";
  3127. HorizSizing = "width";
  3128. VertSizing = "bottom";
  3129. position = $PE_guielement_pos_name;
  3130. Extent = $PE_guielement_ext_name;
  3131. text = "Time 4";
  3132. };
  3133. new GuiSliderCtrl() {
  3134. internalName = "PEP_pointTime_slider3";
  3135. canSaveDynamicFields = "0";
  3136. Enabled = "1";
  3137. isContainer = "0";
  3138. Profile = "ToolsGuiSliderProfile";
  3139. HorizSizing = "left";
  3140. VertSizing = "bottom";
  3141. position = $PE_guielement_pos_slider;
  3142. Extent = $PE_guielement_ext_slider;
  3143. MinExtent = "8 2";
  3144. canSave = "1";
  3145. Visible = "1";
  3146. Command = "";
  3147. hovertime = "1000";
  3148. range = "0 1";
  3149. ticks = "0";
  3150. value = "0";
  3151. Command = "PE_ParticleEditor.updateParticle( \"times[3]\", $ThisControl.getValue(), true, true );";
  3152. altCommand = "$ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[3]\", $ThisControl.getValue(), true, false );";
  3153. };
  3154. new GuiTextEditCtrl() {
  3155. internalName = "PEP_pointTime_textEdit3";
  3156. Profile = "ToolsGuiTextEditProfile";
  3157. HorizSizing = "left";
  3158. VertSizing = "bottom";
  3159. position = $PE_guielement_pos_value;
  3160. Extent = $PE_guielement_ext_value;
  3161. altCommand = "$ThisControl.setText(mClamp( $ThisControl.getValue(), 0.0, 1.0)); $ThisControl.getParent().updateFromChild($ThisControl); PE_ParticleEditor.updateParticle( \"times[3]\", $ThisControl.getText());";
  3162. };
  3163. };
  3164. }; // end stack
  3165. }; // end "Overtime" rollout
  3166. };// end stack "Particles"
  3167. };// end scroll "Particles"
  3168. };// end tab page "Particles"
  3169. };// end tab book
  3170. new GuiBitmapButtonCtrl() {
  3171. canSaveDynamicFields = "0";
  3172. Enabled = "1";
  3173. isContainer = "0";
  3174. Profile = "ToolsGuiButtonProfile";
  3175. HorizSizing = "left";
  3176. VertSizing = "bottom";
  3177. Position = "169 25";
  3178. Extent = "18 18";
  3179. MinExtent = "8 2";
  3180. canSave = "1";
  3181. Visible = "1";
  3182. Command = "ParticleEditor.updateEmitterNode();";
  3183. tooltipprofile = "ToolsGuiToolTipProfile";
  3184. ToolTip = "Play Particle Effect from Start";
  3185. hovertime = "1000";
  3186. bitmap = "tools/particleEditor/images/play_btn";
  3187. buttonType = "PushButton";
  3188. groupNum = "-1";
  3189. text = "";
  3190. useMouseEvents = "0";
  3191. };
  3192. new GuiBitmapButtonCtrl() {
  3193. canSaveDynamicFields = "0";
  3194. Enabled = "1";
  3195. isContainer = "0";
  3196. Profile = "ToolsGuiButtonProfile";
  3197. HorizSizing = "left";
  3198. VertSizing = "bottom";
  3199. Position = "189 26";
  3200. Extent = "16 16";
  3201. MinExtent = "8 2";
  3202. canSave = "1";
  3203. Visible = "1";
  3204. Command = "ParticleEditor.resetEmitterNode();";
  3205. tooltipprofile = "ToolsGuiToolTipProfile";
  3206. ToolTip = "Drops Particle Effect in front of the Camera";
  3207. hovertime = "1000";
  3208. bitmap = "tools/classIcons/camera";
  3209. buttonType = "PushButton";
  3210. groupNum = "-1";
  3211. text = "";
  3212. useMouseEvents = "0";
  3213. };
  3214. };// end window
  3215. //--- OBJECT WRITE END ---