guiMaterialPropertiesWindow.ed.gui 225 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212
  1. //--- OBJECT WRITE BEGIN ---
  2. %guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
  3. canSaveDynamicFields = "0";
  4. internalName = "MatEdPropertiesWindowContainer";
  5. Enabled = "1";
  6. isContainer = "1";
  7. Profile = "ToolsGuiDefaultProfile";
  8. HorizSizing = "right";
  9. VertSizing = "bottom";
  10. Position = "0 0";
  11. Extent = "1024 768";
  12. MinExtent = "8 2";
  13. canSave = "1";
  14. Visible = "1";
  15. hovertime = "1000";
  16. new GuiWindowCollapseCtrl(MaterialEditorPropertiesWindow) {
  17. canSaveDynamicFields = "0";
  18. internalName = "MatEdPropertiesWindow";
  19. Enabled = "1";
  20. isContainer = "1";
  21. Profile = "ToolsGuiWindowProfile";
  22. HorizSizing = "windowRelative";
  23. VertSizing = "windowRelative";
  24. Extent = "210 446";
  25. MinExtent = "210 316";
  26. Position = getWord($pref::Video::mode, 0) - 209
  27. SPC getWord(EditorGuiToolbar.extent, 1) + getWord(MaterialEditorPreviewWindow.extent, 1) - 2;
  28. canSave = "1";
  29. Visible = "1";
  30. hovertime = "1000";
  31. Margin = "4 4 4 4";
  32. Padding = "0 0 0 0";
  33. AnchorTop = "1";
  34. AnchorBottom = "0";
  35. AnchorLeft = "1";
  36. AnchorRight = "0";
  37. resizeWidth = "1";
  38. resizeHeight = "1";
  39. canMove = "1";
  40. canClose = "0";
  41. canMinimize = "0";
  42. canMaximize = "0";
  43. closeCommand = "MaterialEditorPropertiesWindow.setVisible(false);";
  44. minSize = "50 50";
  45. EdgeSnap = "1";
  46. text = "Material Properties";
  47. new GuiContainer(){ // Client group
  48. isContainer = "1";
  49. Docking = "Client";
  50. Margin = "3 1 3 3";
  51. Position = "4 24";
  52. Extent = "202 668";
  53. new GuiContainer(){ // container to prevent transparent collapsing from effecting children.
  54. Position = "0 21";
  55. Extent = "202 39";
  56. isContainer = "1";
  57. HorizSizing = "width";
  58. Visible = "1";
  59. new GuiContainer(MatEdMaterialMode){ // Edit Mode
  60. Position = "0 0";
  61. Extent = "202 39";
  62. isContainer = "1";
  63. HorizSizing = "width";
  64. Visible = "0";
  65. new GuiTextCtrl(){
  66. Position = "1 1";
  67. Extent = "39 16";
  68. Profile = "ToolsGuiTextRightProfile";
  69. text = "Material";
  70. };
  71. new GuiTextEditCtrl(){
  72. internalName = "selMaterialName";
  73. Profile = "ToolsGuiTextEditProfile";
  74. AltCommand = "MaterialEditorGui.setMaterialDirty();MaterialEditorGui.updateActiveMaterialName($ThisControl.getText());"; // needs hookup
  75. HorizSizing = "width";
  76. VertSizing = "bottom";
  77. Position = "45 0";
  78. Extent = "158 18";
  79. text = "";
  80. HorizSizing = "width";
  81. };
  82. new GuiTextCtrl(){
  83. Position = "1 21";
  84. Extent = "39 16";
  85. Profile = "ToolsGuiTextRightProfile";
  86. text = "Target";
  87. };
  88. new GuiTextCtrl(){ // mesh name should not include the path
  89. internalName = "selMaterialMapTo"; // will use the first child found with that name if called from a previous parent even if it is invisable.
  90. Position = "46 21";
  91. Extent = "141 16";
  92. HorizSizing = "width";
  93. VertSizing = "bottom";
  94. text = "";
  95. };
  96. };
  97. new GuiContainer(MatEdTargetMode){ // Selection Mode
  98. Position = "0 0";
  99. Extent = "202 39";
  100. isContainer = "1";
  101. HorizSizing = "width";
  102. Visible = "1";
  103. new GuiBitmapButtonCtrl(){
  104. Profile = "ToolsGuiButtonProfile";
  105. Position = "186 23";
  106. Extent = "17 17";
  107. HorizSizing = "left";
  108. tooltip = "Swap material on the object with existing";
  109. bitmap = "tools/materialEditor/gui/change-material-btn";
  110. command = "materialSelector.showDialog(\"MaterialEditorGui.showMaterialChangeSaveDialog\");";
  111. };
  112. new GuiTextEditCtrl(){
  113. internalName = "selMaterialName";
  114. Profile = "ToolsGuiTextEditProfile";
  115. AltCommand = "MaterialEditorGui.setMaterialDirty();MaterialEditorGui.updateActiveMaterialName($ThisControl.getText());"; // needs hookup
  116. HorizSizing = "width";
  117. VertSizing = "bottom";
  118. Position = "76 21";
  119. Extent = "107 18";
  120. text = "myMaterial 1";
  121. HorizSizing = "width";
  122. };
  123. new GuiTextCtrl(){ // mesh name should not include the path
  124. internalName = "selMaterialMapTo";
  125. Profile = "ToolsGuiTextRightProfile";
  126. Position = "1 1";
  127. Extent = "70 16";
  128. HorizSizing = "right";
  129. VertSizing = "bottom";
  130. text = "";
  131. };
  132. new GuiTextCtrl(){
  133. Profile = "ToolsGuiTextRightProfile";
  134. Position = "1 21";
  135. Extent = "70 16";
  136. HorizSizing = "right";
  137. VertSizing = "bottom";
  138. text = "Material";
  139. };
  140. new GuiPopupMenuCtrlEx(SubMaterialSelector){ // needs hookup will show the name of the current mesh Maped to
  141. Profile = "ToolsGuiPopUpMenuProfile";
  142. Position = "76 0";
  143. Extent = "126 17";
  144. HorizSizing = "width";
  145. VertSizing = "bottom";
  146. text = "";
  147. tooltip = "Target Material";
  148. Command = "SubMaterialSelector.onSelect();";
  149. reverseTextList = "0";
  150. };
  151. };
  152. };
  153. // make this shorter ////////////////////////////////////////////////////////////////////////////
  154. new GuiScrollCtrl(matEd_scrollControl) {
  155. canSaveDynamicFields = "0";
  156. Enabled = "1";
  157. isContainer = "1";
  158. Profile = "ToolsGuiScrollProfile";
  159. HorizSizing = "width";
  160. VertSizing = "height"; //height
  161. position = "0 65";
  162. Extent = "202 603";
  163. MinExtent = "8 2";
  164. canSave = "1";
  165. Visible = "1";
  166. hovertime = "1000";
  167. willFirstRespond = "1";
  168. hScrollBar = "alwaysOff";
  169. vScrollBar = "dynamic";
  170. lockHorizScroll = "true";
  171. lockVertScroll = "false";
  172. constantThumbHeight = "0";
  173. childMargin = "0 0";
  174. new GuiStackControl(MatEd_scrollContents) {
  175. StackingType = "Vertical";
  176. HorizStacking = "Left to Right";
  177. VertStacking = "Top to Bottom";
  178. Padding = "0";
  179. isContainer = "1";
  180. Profile = "ToolsGuiDefaultProfile";
  181. HorizSizing = "width";
  182. VertSizing = "bottom";
  183. position = "0 0";
  184. Extent = "187 0";
  185. MinExtent = "8 2";
  186. canSave = "1";
  187. isDecoy = "0";
  188. Visible = "1";
  189. tooltipprofile = "ToolsGuiToolTipProfile";
  190. hovertime = "1000";
  191. new GuiPopUpMenuCtrl() {
  192. canSaveDynamicFields = "0";
  193. internalName = "MaterialLayerCtrl";
  194. Enabled = "1";
  195. isContainer = "0";
  196. Profile = "ToolsGuiPopUpMenuTabProfile";
  197. HorizSizing = "right";
  198. VertSizing = "bottom";
  199. position = "0 0";
  200. Extent = "112 18";
  201. MinExtent = "8 2";
  202. canSave = "1";
  203. Visible = "1";
  204. Command = "MaterialEditorGui.changeLayer( $ThisControl.getText() );";
  205. ToolTip = "Changes the material layer being edited";
  206. hovertime = "1000";
  207. text = "Layer 0";
  208. maxLength = "1024";
  209. maxPopupHeight = "200";
  210. sbUsesNAColor = "0";
  211. reverseTextList = "0";
  212. bitmapBounds = "16 16";
  213. };
  214. new GuiRolloutCtrl() {
  215. class = "BehaviorQuickEditRollout";
  216. superclass = LBQuickEditRollout;
  217. Profile = "GuiRolloutProfile";
  218. HorizSizing = "width";
  219. VertSizing = "bottom";
  220. Position = "0 0";
  221. Extent = "185 0";
  222. Caption = "Basic Texture Maps";
  223. Margin = "4 4 4 0";
  224. DragSizable = false;
  225. container = true;
  226. parentRollout = %this.rollout;
  227. object = %behavior;
  228. new GuiStackControl() {
  229. StackingType = "Vertical";
  230. HorizStacking = "Left to Right";
  231. VertStacking = "Top to Bottom";
  232. Padding = "0";
  233. canSaveDynamicFields = "0";
  234. Enabled = "1";
  235. isContainer = "1";
  236. Profile = "ToolsGuiDefaultProfile";
  237. HorizSizing = "width";
  238. VertSizing = "bottom";
  239. Position = "1 3";
  240. Extent = "185 16";
  241. MinExtent = "16 16";
  242. canSave = "1";
  243. isDecoy = "0";
  244. Visible = "1";
  245. tooltipprofile = "ToolsGuiToolTipProfile";
  246. hovertime = "1000";
  247. new GuiContainer(){ // Diffuse Map
  248. profile="ToolsGuiDefaultProfile";
  249. isContainer = "1";
  250. position = "6 21";
  251. Extent = "185 52";
  252. HorizSizing = "width";
  253. new GuiBitmapCtrl() {
  254. canSaveDynamicFields = "0";
  255. internalName = "diffuseMapDisplayBitmap";
  256. Enabled = "1";
  257. isContainer = "0";
  258. Profile = "ToolsGuiDefaultProfile";
  259. HorizSizing = "right";
  260. VertSizing = "bottom";
  261. position = "1 1";
  262. Extent = "48 48";
  263. MinExtent = "8 2";
  264. canSave = "1";
  265. Visible = "1";
  266. hovertime = "1000";
  267. bitmap = "tools/materialEditor/gui/unknownImage";
  268. wrap = "0";
  269. };
  270. new GuiBitmapButtonCtrl() {
  271. canSaveDynamicFields = "0";
  272. Enabled = "1";
  273. isContainer = "0";
  274. Profile = "ToolsGuiDefaultProfile";
  275. HorizSizing = "right";
  276. VertSizing = "bottom";
  277. position = "1 1";
  278. Extent = "48 48";
  279. MinExtent = "8 2";
  280. canSave = "1";
  281. Visible = "1";
  282. Command = "MaterialEditorGui.updateTextureMap(\"diffuse\", 1);";
  283. tooltipprofile = "ToolsGuiDefaultProfile";
  284. ToolTip = "Change the Active Diffuse Map for this layer";
  285. hovertime = "1000";
  286. groupNum = "-1";
  287. buttonType = "PushButton";
  288. useMouseEvents = "0";
  289. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  290. };
  291. new GuiTextCtrl() {
  292. canSaveDynamicFields = "0";
  293. Enabled = "1";
  294. isContainer = "0";
  295. Profile = "EditorTextProfile";
  296. HorizSizing = "right";
  297. VertSizing = "bottom";
  298. position = "56 -3";
  299. Extent = "72 18";
  300. MinExtent = "8 2";
  301. canSave = "1";
  302. Visible = "1";
  303. hovertime = "1000";
  304. Margin = "0 0 0 0";
  305. Padding = "0 0 0 0";
  306. AnchorTop = "1";
  307. AnchorBottom = "0";
  308. AnchorLeft = "1";
  309. AnchorRight = "0";
  310. text = "Diffuse Map";
  311. maxLength = "1024";
  312. };
  313. new GuiTextCtrl() {
  314. canSaveDynamicFields = "0";
  315. internalName = "diffuseMapNameText";
  316. Enabled = "1";
  317. isContainer = "0";
  318. Profile = "ToolsGuiTextProfile";
  319. HorizSizing = "width";
  320. VertSizing = "bottom";
  321. position = "56 16";
  322. Extent = "134 17";
  323. MinExtent = "8 2";
  324. canSave = "1";
  325. Visible = "1";
  326. hovertime = "1000";
  327. Margin = "0 0 0 0";
  328. Padding = "0 0 0 0";
  329. AnchorTop = "1";
  330. AnchorBottom = "0";
  331. AnchorLeft = "1";
  332. AnchorRight = "0";
  333. text = "None";
  334. maxLength = "1024";
  335. };
  336. new GuiSwatchButtonCtrl() {
  337. canSaveDynamicFields = "0";
  338. internalName = "colorTintSwatch";
  339. Enabled = "1";
  340. isContainer = "0";
  341. Profile = "GuiInspectorSwatchButtonProfile";
  342. HorizSizing = "right";
  343. VertSizing = "bottom";
  344. position = "55 33";
  345. Extent = "16 16";
  346. MinExtent = "8 2";
  347. canSave = "1";
  348. Visible = "1";
  349. Command = "getColorF(materialEd_PreviewMaterial.diffuseColor[MaterialEditorGui.currentLayer], \"MaterialEditorGui.updateColorMultiply\");";
  350. hovertime = "1000";
  351. groupNum = "-1";
  352. buttonType = "PushButton";
  353. useMouseEvents = "0";
  354. };
  355. new GuiTextCtrl(){
  356. profile="ToolsGuiDefaultProfile";
  357. text = "Color";
  358. position = "74 34";
  359. Extent = "30 15";
  360. };
  361. new GuiButtonCtrl(){
  362. profile="ToolsGuiButtonProfile";
  363. text ="Edit";
  364. HorizSizing = "left";
  365. VertSizing = "bottom";
  366. position = "134 34";
  367. Extent = "40 16";
  368. buttonType = "PushButton";
  369. command = "MaterialEditorGui.updateTextureMap(\"diffuse\", 1);";
  370. };
  371. new GuiBitmapButtonCtrl() {
  372. canSaveDynamicFields = "0";
  373. Enabled = "1";
  374. isContainer = "0";
  375. Profile = "ToolsGuiDefaultProfile";
  376. HorizSizing = "left";
  377. VertSizing = "bottom";
  378. position = "177 34";
  379. Extent = "16 16";
  380. MinExtent = "8 2";
  381. canSave = "1";
  382. Visible = "1";
  383. Command = "MaterialEditorGui.updateTextureMap(\"diffuse\", 0);";
  384. hovertime = "1000";
  385. groupNum = "-1";
  386. buttonType = "PushButton";
  387. useMouseEvents = "0";
  388. bitmap = "tools/gui/images/delete";
  389. };
  390. };
  391. new GuiBitmapCtrl(){
  392. position="6 75";
  393. extent ="175 2";
  394. HorizSizing = "width";
  395. bitmap ="tools/gui/images/separator-v";
  396. };
  397. new GuiContainer(){ // Normal Map
  398. profile="ToolsGuiDefaultProfile";
  399. isContainer = "1";
  400. position = "6 79";
  401. Extent = "185 52";
  402. HorizSizing = "width";
  403. new GuiBitmapCtrl() {
  404. canSaveDynamicFields = "0";
  405. internalName = "normalMapDisplayBitmap";
  406. Enabled = "1";
  407. isContainer = "0";
  408. Profile = "ToolsGuiDefaultProfile";
  409. HorizSizing = "right";
  410. VertSizing = "bottom";
  411. position = "1 1";
  412. Extent = "48 48";
  413. MinExtent = "8 2";
  414. canSave = "1";
  415. Visible = "1";
  416. hovertime = "1000";
  417. bitmap = "tools/materialEditor/gui/unknownImage";
  418. wrap = "0";
  419. };
  420. new GuiTextCtrl() {
  421. canSaveDynamicFields = "0";
  422. Enabled = "1";
  423. isContainer = "0";
  424. Profile = "EditorTextProfile";
  425. HorizSizing = "right";
  426. VertSizing = "bottom";
  427. position = "56 -3";
  428. Extent = "72 18";
  429. MinExtent = "8 2";
  430. canSave = "1";
  431. Visible = "1";
  432. hovertime = "1000";
  433. Margin = "0 0 0 0";
  434. Padding = "0 0 0 0";
  435. AnchorTop = "1";
  436. AnchorBottom = "0";
  437. AnchorLeft = "1";
  438. AnchorRight = "0";
  439. text = "Normal Map";
  440. maxLength = "1024";
  441. };
  442. new GuiBitmapButtonCtrl() {
  443. canSaveDynamicFields = "0";
  444. Enabled = "1";
  445. isContainer = "0";
  446. Profile = "ToolsGuiDefaultProfile";
  447. HorizSizing = "right";
  448. VertSizing = "bottom";
  449. position = "1 1";
  450. Extent = "48 48";
  451. MinExtent = "8 2";
  452. canSave = "1";
  453. Visible = "1";
  454. Command = "MaterialEditorGui.updateTextureMap(\"normal\", 1);";
  455. tooltipprofile = "ToolsGuiDefaultProfile";
  456. ToolTip = "Change the active Normal Map for this layer.";
  457. hovertime = "1000";
  458. groupNum = "-1";
  459. buttonType = "PushButton";
  460. useMouseEvents = "0";
  461. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  462. };
  463. new GuiTextCtrl() {
  464. canSaveDynamicFields = "0";
  465. internalName = "normalMapNameText";
  466. Enabled = "1";
  467. isContainer = "0";
  468. Profile = "ToolsGuiTextProfile";
  469. HorizSizing = "width";
  470. VertSizing = "bottom";
  471. position = "56 16";
  472. Extent = "143 17";
  473. MinExtent = "8 2";
  474. canSave = "1";
  475. Visible = "1";
  476. hovertime = "1000";
  477. Margin = "0 0 0 0";
  478. Padding = "0 0 0 0";
  479. AnchorTop = "1";
  480. AnchorBottom = "0";
  481. AnchorLeft = "1";
  482. AnchorRight = "0";
  483. text = "None";
  484. maxLength = "1024";
  485. };
  486. new GuiButtonCtrl(){
  487. profile="ToolsGuiButtonProfile";
  488. text ="Edit";
  489. HorizSizing = "left";
  490. VertSizing = "bottom";
  491. position = "134 34";
  492. Extent = "40 16";
  493. buttonType = "PushButton";
  494. command = "MaterialEditorGui.updateTextureMap(\"normal\", 1);";
  495. };
  496. new GuiBitmapButtonCtrl() {
  497. canSaveDynamicFields = "0";
  498. Enabled = "1";
  499. isContainer = "0";
  500. Profile = "ToolsGuiDefaultProfile";
  501. HorizSizing = "left";
  502. VertSizing = "bottom";
  503. position = "177 34";
  504. Extent = "16 16";
  505. MinExtent = "8 2";
  506. canSave = "1";
  507. Visible = "1";
  508. Command = "MaterialEditorGui.updateTextureMap(\"normal\", 0);";
  509. hovertime = "1000";
  510. groupNum = "-1";
  511. buttonType = "PushButton";
  512. useMouseEvents = "0";
  513. bitmap = "tools/gui/images/delete";
  514. };
  515. };
  516. };
  517. };
  518. new GuiRolloutCtrl() { // Light Influence Properties Group
  519. class = "BehaviorQuickEditRollout";
  520. superclass = LBQuickEditRollout;
  521. Profile = "GuiRolloutProfile";
  522. HorizSizing = "width";
  523. VertSizing = "bottom";
  524. Position = "0 0";
  525. Extent = "202 0";
  526. Caption = "Light Influence Maps";
  527. Expanded = false;
  528. Margin = "4 4 4 0";
  529. DragSizable = false;
  530. container = true;
  531. parentRollout = %this.rollout;
  532. object = %behavior;
  533. object = %behavior;
  534. new GuiStackControl() {
  535. StackingType = "Vertical";
  536. HorizStacking = "Left to Right";
  537. VertStacking = "Top to Bottom";
  538. Padding = "0";
  539. canSaveDynamicFields = "0";
  540. Enabled = "1";
  541. isContainer = "1";
  542. Profile = "ToolsGuiDefaultProfile";
  543. HorizSizing = "width";
  544. VertSizing = "bottom";
  545. Position = "1 3";
  546. Extent = "185 16";
  547. MinExtent = "16 16";
  548. canSave = "1";
  549. isDecoy = "0";
  550. Visible = "1";
  551. tooltipprofile = "ToolsGuiToolTipProfile";
  552. hovertime = "1000";
  553. new GuiContainer(){
  554. profile = "ToolsGuiTransparentProfile";
  555. isContainer = "1";
  556. position = "0 0";
  557. Extent = "185 50";
  558. HorizSizing = "width";
  559. new GuiTextCtrl() {
  560. HorizSizing = "right";
  561. VertSizing = "bottom";
  562. position = "9 4";
  563. Extent = "72 16";
  564. text = "Roughness";
  565. Profile = "ToolsGuiTextProfile";
  566. };
  567. new GuiTextCtrl() {
  568. HorizSizing = "right";
  569. VertSizing = "bottom";
  570. position = "9 26";
  571. Extent = "72 16";
  572. text = "Metalness";
  573. Profile = "ToolsGuiTextProfile";
  574. };
  575. new GuiControl() {
  576. class = "AggregateControl";
  577. position = "91 4";
  578. Extent = "96 20";
  579. new GuiSliderCtrl() {
  580. canSaveDynamicFields = "0";
  581. internalName = "RoughnessSlider";
  582. Enabled = "1";
  583. isContainer = "0";
  584. Profile = "ToolsGuiSliderProfile";
  585. HorizSizing = "right";
  586. VertSizing = "bottom";
  587. position = "0 1";
  588. Extent = "61 14";
  589. MinExtent = "8 2";
  590. canSave = "1";
  591. Visible = "1";
  592. Command = "MaterialEditorGui.updateActiveMaterial(\"Roughness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  593. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"Roughness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  594. tooltipprofile = "ToolsGuiDefaultProfile";
  595. ToolTip = "Sets Roughness.";
  596. hovertime = "1000";
  597. range = "0 1";
  598. ticks = "0";
  599. value = "0";
  600. };
  601. new GuiTextEditCtrl() {
  602. canSaveDynamicFields = "0";
  603. internalName = "RoughnessTextEdit";
  604. Enabled = "1";
  605. isContainer = "0";
  606. Profile = "ToolsGuiTextEditProfile";
  607. HorizSizing = "right";
  608. VertSizing = "bottom";
  609. position = "64 0";
  610. Extent = "29 18";
  611. MinExtent = "8 2";
  612. canSave = "1";
  613. Visible = "1";
  614. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"Roughness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  615. hovertime = "1000";
  616. AnchorTop = "1";
  617. AnchorBottom = "0";
  618. AnchorLeft = "1";
  619. AnchorRight = "0";
  620. text = "0";
  621. };
  622. };
  623. new GuiControl() {
  624. class = "AggregateControl";
  625. position = "91 26";
  626. Extent = "96 20";
  627. new GuiSliderCtrl() {
  628. canSaveDynamicFields = "0";
  629. internalName = "MetalnessSlider";
  630. Enabled = "1";
  631. isContainer = "0";
  632. Profile = "ToolsGuiSliderProfile";
  633. HorizSizing = "right";
  634. VertSizing = "bottom";
  635. position = "0 1";
  636. Extent = "61 14";
  637. MinExtent = "8 2";
  638. canSave = "1";
  639. Visible = "1";
  640. Command = "MaterialEditorGui.updateActiveMaterial(\"Metalness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  641. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"Metalness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  642. tooltipprofile = "ToolsGuiDefaultProfile";
  643. ToolTip = "Sets Metalness.";
  644. hovertime = "1000";
  645. range = "0 1";
  646. ticks = "0";
  647. value = "0";
  648. };
  649. new GuiTextEditCtrl() {
  650. canSaveDynamicFields = "0";
  651. internalName = "MetalnessTextEdit";
  652. Enabled = "1";
  653. isContainer = "0";
  654. Profile = "ToolsGuiTextEditProfile";
  655. HorizSizing = "right";
  656. VertSizing = "bottom";
  657. position = "64 0";
  658. Extent = "29 18";
  659. MinExtent = "8 2";
  660. canSave = "1";
  661. Visible = "1";
  662. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"Metalness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  663. hovertime = "1000";
  664. AnchorTop = "1";
  665. AnchorBottom = "0";
  666. AnchorLeft = "1";
  667. AnchorRight = "0";
  668. text = "0";
  669. };
  670. };
  671. };
  672. new GuiContainer(){ // spec Map options
  673. profile="ToolsGuiDefaultProfile";
  674. isContainer = "1";
  675. position = "6 364";
  676. Extent = "185 20";
  677. HorizSizing = "width";
  678. new GuiCheckBoxCtrl() {
  679. canSaveDynamicFields = "0";
  680. internalName = "isSRGBCheckbox";
  681. Enabled = "1";
  682. isContainer = "0";
  683. Profile = "ToolsGuiCheckBoxProfile";
  684. HorizSizing = "right";
  685. VertSizing = "bottom";
  686. position = "5 2";
  687. Extent = "57 16";
  688. MinExtent = "8 2";
  689. canSave = "1";
  690. Visible = "1";
  691. Command = "MaterialEditorGui.updateActiveMaterial(\"isSRGb[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  692. tooltipprofile = "ToolsGuiDefaultProfile";
  693. ToolTip = "Substance Designer Workaround.";
  694. hovertime = "1000";
  695. text = "isSRGB";
  696. groupNum = "-1";
  697. buttonType = "ToggleButton";
  698. useMouseEvents = "0";
  699. useInactiveState = "0";
  700. };
  701. new GuiCheckBoxCtrl() {
  702. canSaveDynamicFields = "0";
  703. internalName = "invertRoughnessCheckbox";
  704. Enabled = "1";
  705. isContainer = "0";
  706. Profile = "ToolsGuiCheckBoxProfile";
  707. HorizSizing = "right";
  708. VertSizing = "bottom";
  709. position = "70 2";
  710. Extent = "107 16";
  711. MinExtent = "8 2";
  712. canSave = "1";
  713. Visible = "1";
  714. Command = "MaterialEditorGui.updateActiveMaterial(\"invertRoughness[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  715. tooltipprofile = "ToolsGuiDefaultProfile";
  716. ToolTip = "Treat as Roughest = 1.0, not 0.0";
  717. hovertime = "1000";
  718. text = "Invert Roughness";
  719. groupNum = "-1";
  720. buttonType = "ToggleButton";
  721. useMouseEvents = "0";
  722. useInactiveState = "0";
  723. };
  724. };
  725. new GuiBitmapCtrl() {
  726. bitmap = "tools/gui/images/separator-v";
  727. wrap = "0";
  728. position = "6 75";
  729. extent = "175 2";
  730. minExtent = "8 2";
  731. horizSizing = "width";
  732. vertSizing = "bottom";
  733. profile = "GuiDefaultProfile";
  734. visible = "1";
  735. active = "1";
  736. tooltipProfile = "GuiToolTipProfile";
  737. hovertime = "1000";
  738. isContainer = "0";
  739. canSave = "1";
  740. canSaveDynamicFields = "0";
  741. };
  742. new GuiContainer(){ // spec Map
  743. profile="ToolsGuiDefaultProfile";
  744. isContainer = "1";
  745. position = "6 364";
  746. Extent = "185 52";
  747. HorizSizing = "width";
  748. new GuiBitmapCtrl() {
  749. canSaveDynamicFields = "0";
  750. internalName = "ORMConfigMapDisplayBitmap";
  751. Enabled = "1";
  752. isContainer = "0";
  753. Profile = "ToolsGuiDefaultProfile";
  754. HorizSizing = "right";
  755. VertSizing = "bottom";
  756. position = "1 1";
  757. Extent = "48 48";
  758. MinExtent = "8 2";
  759. canSave = "1";
  760. Visible = "1";
  761. hovertime = "1000";
  762. bitmap = "tools/materialEditor/gui/unknownImage";
  763. wrap = "0";
  764. };
  765. new GuiTextCtrl() {
  766. canSaveDynamicFields = "0";
  767. Enabled = "1";
  768. isContainer = "0";
  769. Profile = "EditorTextProfile";
  770. HorizSizing = "right";
  771. VertSizing = "bottom";
  772. position = "56 -3";
  773. Extent = "72 18";
  774. MinExtent = "8 2";
  775. canSave = "1";
  776. Visible = "1";
  777. hovertime = "1000";
  778. Margin = "0 0 0 0";
  779. Padding = "0 0 0 0";
  780. AnchorTop = "1";
  781. AnchorBottom = "0";
  782. AnchorLeft = "1";
  783. AnchorRight = "0";
  784. text = "ORM(Config)Map";
  785. maxLength = "1024";
  786. };
  787. new GuiBitmapButtonCtrl() {
  788. canSaveDynamicFields = "0";
  789. Enabled = "1";
  790. isContainer = "0";
  791. Profile = "ToolsGuiDefaultProfile";
  792. HorizSizing = "right";
  793. VertSizing = "bottom";
  794. position = "1 1";
  795. Extent = "48 48";
  796. MinExtent = "8 2";
  797. canSave = "1";
  798. Visible = "1";
  799. Command = "MaterialEditorGui.updateORMConfigMap(1);";
  800. tooltipprofile = "ToolsGuiDefaultProfile";
  801. ToolTip = "Change the packed spec map for this layer. \n Roughness (R), Ambient Occlusion (G), and Metalness(B))";
  802. hovertime = "1000";
  803. groupNum = "-1";
  804. buttonType = "PushButton";
  805. useMouseEvents = "0";
  806. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  807. };
  808. new GuiTextCtrl() {
  809. canSaveDynamicFields = "0";
  810. internalName = "ORMConfigMapNameText";
  811. Enabled = "1";
  812. isContainer = "0";
  813. Profile = "ToolsGuiTextProfile";
  814. HorizSizing = "width";
  815. VertSizing = "bottom";
  816. position = "56 16";
  817. Extent = "143 17";
  818. MinExtent = "8 2";
  819. canSave = "1";
  820. Visible = "1";
  821. hovertime = "1000";
  822. Margin = "0 0 0 0";
  823. Padding = "0 0 0 0";
  824. AnchorTop = "1";
  825. AnchorBottom = "0";
  826. AnchorLeft = "1";
  827. AnchorRight = "0";
  828. text = "None";
  829. maxLength = "1024";
  830. };
  831. new GuiButtonCtrl(){
  832. profile="ToolsGuiButtonProfile";
  833. text ="Edit";
  834. HorizSizing = "left";
  835. VertSizing = "bottom";
  836. position = "134 34";
  837. Extent = "40 16";
  838. buttonType = "PushButton";
  839. command="MaterialEditorGui.updateORMConfigMap(1);";
  840. };
  841. new GuiBitmapButtonCtrl() {
  842. canSaveDynamicFields = "0";
  843. Enabled = "1";
  844. isContainer = "0";
  845. Profile = "ToolsGuiDefaultProfile";
  846. HorizSizing = "left";
  847. VertSizing = "bottom";
  848. position = "177 34";
  849. Extent = "16 16";
  850. MinExtent = "8 2";
  851. canSave = "1";
  852. Visible = "1";
  853. Command = "MaterialEditorGui.updateORMConfigMap(0);";
  854. hovertime = "1000";
  855. groupNum = "-1";
  856. buttonType = "PushButton";
  857. useMouseEvents = "0";
  858. bitmap = "tools/gui/images/delete";
  859. };
  860. };
  861. new GuiBitmapCtrl() {
  862. bitmap = "tools/gui/images/separator-v";
  863. wrap = "0";
  864. position = "6 75";
  865. extent = "175 2";
  866. minExtent = "8 2";
  867. horizSizing = "width";
  868. vertSizing = "bottom";
  869. profile = "ToolsGuiButtonProfile";
  870. visible = "1";
  871. active = "1";
  872. tooltipProfile = "GuiToolTipProfile";
  873. hovertime = "1000";
  874. isContainer = "0";
  875. canSave = "1";
  876. canSaveDynamicFields = "0";
  877. };
  878. new GuiContainer(){ // save composite Map
  879. profile="ToolsGuiDefaultProfile";
  880. isContainer = "1";
  881. position = "0 364";
  882. Extent = "185 20";
  883. HorizSizing = "width";
  884. new GuiTextCtrl() {
  885. canSaveDynamicFields = "0";
  886. Enabled = "1";
  887. isContainer = "0";
  888. Profile = "ToolsGuiDefaultProfile";
  889. HorizSizing = "left";
  890. VertSizing = "bottom";
  891. position = "16 2";
  892. Extent = "100 18";
  893. MinExtent = "8 2";
  894. canSave = "1";
  895. Visible = "1";
  896. hovertime = "1000";
  897. Margin = "0 0 0 0";
  898. Padding = "0 0 0 0";
  899. AnchorTop = "1";
  900. AnchorBottom = "0";
  901. AnchorLeft = "1";
  902. AnchorRight = "0";
  903. text = "Save Composite:";
  904. maxLength = "1024";
  905. };
  906. new GuiBitmapButtonCtrl() {
  907. bitmap = "tools/gui/images/save-icon";
  908. bitmapMode = "Stretched";
  909. autoFitExtents = "0";
  910. useModifiers = "0";
  911. useStates = "1";
  912. groupNum = "-1";
  913. buttonType = "PushButton";
  914. useMouseEvents = "0";
  915. position = "125 2";
  916. extent = "16 16";
  917. minExtent = "8 2";
  918. horizSizing = "left";
  919. vertSizing = "bottom";
  920. profile = "ToolsGuiButtonProfile";
  921. visible = "1";
  922. active = "1";
  923. command = "MaterialEditorGui.saveCompositeMap();";
  924. tooltipProfile = "GuiToolTipProfile";
  925. hovertime = "1000";
  926. isContainer = "0";
  927. canSave = "1";
  928. canSaveDynamicFields = "0";
  929. };
  930. };
  931. new GuiBitmapCtrl() {
  932. bitmap = "tools/gui/images/separator-v";
  933. wrap = "0";
  934. position = "6 75";
  935. extent = "175 2";
  936. minExtent = "8 2";
  937. horizSizing = "width";
  938. vertSizing = "bottom";
  939. profile = "ToolsGuiButtonProfile";
  940. visible = "1";
  941. active = "1";
  942. tooltipProfile = "GuiToolTipProfile";
  943. hovertime = "1000";
  944. isContainer = "0";
  945. canSave = "1";
  946. canSaveDynamicFields = "0";
  947. };
  948. new GuiContainer() {
  949. margin = "0 0 0 0";
  950. padding = "0 0 0 0";
  951. anchorTop = "1";
  952. anchorBottom = "0";
  953. anchorLeft = "1";
  954. anchorRight = "0";
  955. position = "6 364";
  956. extent = "185 52";
  957. minExtent = "8 2";
  958. horizSizing = "width";
  959. vertSizing = "bottom";
  960. profile = "GuiDefaultProfile";
  961. visible = "1";
  962. active = "1";
  963. tooltipProfile = "GuiToolTipProfile";
  964. hovertime = "1000";
  965. isContainer = "1";
  966. canSave = "1";
  967. canSaveDynamicFields = "0";
  968. new GuiBitmapCtrl() {
  969. bitmap = "tools/materialeditor/gui/unknownImage";
  970. wrap = "0";
  971. position = "1 1";
  972. extent = "48 48";
  973. minExtent = "8 2";
  974. horizSizing = "right";
  975. vertSizing = "bottom";
  976. profile = "ToolsGuiButtonProfile";
  977. visible = "1";
  978. active = "1";
  979. tooltipProfile = "GuiToolTipProfile";
  980. hovertime = "1000";
  981. isContainer = "0";
  982. internalName = "roughMapDisplayBitmap";
  983. canSave = "1";
  984. canSaveDynamicFields = "0";
  985. };
  986. new GuiTextCtrl() {
  987. text = "Roughness";
  988. maxLength = "1024";
  989. margin = "0 0 0 0";
  990. padding = "0 0 0 0";
  991. anchorTop = "1";
  992. anchorBottom = "0";
  993. anchorLeft = "1";
  994. anchorRight = "0";
  995. position = "56 5";
  996. extent = "35 8";
  997. minExtent = "8 2";
  998. horizSizing = "right";
  999. vertSizing = "bottom";
  1000. profile = "ToolsGuiTextProfile";
  1001. visible = "1";
  1002. active = "1";
  1003. tooltipProfile = "GuiToolTipProfile";
  1004. hovertime = "1000";
  1005. isContainer = "0";
  1006. canSave = "1";
  1007. canSaveDynamicFields = "0";
  1008. };
  1009. new GuiBitmapButtonCtrl() {
  1010. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1011. bitmapMode = "Stretched";
  1012. autoFitExtents = "0";
  1013. useModifiers = "0";
  1014. useStates = "1";
  1015. groupNum = "-1";
  1016. buttonType = "PushButton";
  1017. useMouseEvents = "0";
  1018. position = "1 1";
  1019. extent = "48 48";
  1020. minExtent = "8 2";
  1021. horizSizing = "right";
  1022. vertSizing = "bottom";
  1023. profile = "ToolsGuiButtonProfile";
  1024. visible = "1";
  1025. active = "1";
  1026. command = "MaterialEditorGui.updateroughMap(1);";
  1027. tooltipProfile = "GuiToolTipProfile";
  1028. tooltip = "Change the Roughness map for this layer.";
  1029. hovertime = "1000";
  1030. isContainer = "0";
  1031. canSave = "1";
  1032. canSaveDynamicFields = "0";
  1033. };
  1034. new GuiTextCtrl() {
  1035. text = "None";
  1036. maxLength = "1024";
  1037. margin = "0 0 0 0";
  1038. padding = "0 0 0 0";
  1039. anchorTop = "1";
  1040. anchorBottom = "0";
  1041. anchorLeft = "1";
  1042. anchorRight = "0";
  1043. position = "56 17";
  1044. extent = "143 17";
  1045. minExtent = "8 2";
  1046. horizSizing = "width";
  1047. vertSizing = "bottom";
  1048. profile = "ToolsGuiTextProfile";
  1049. visible = "1";
  1050. active = "1";
  1051. tooltipProfile = "GuiToolTipProfile";
  1052. hovertime = "1000";
  1053. isContainer = "0";
  1054. internalName = "roughMapNameText";
  1055. canSave = "1";
  1056. canSaveDynamicFields = "0";
  1057. };
  1058. new GuiButtonCtrl() {
  1059. text = "Edit";
  1060. groupNum = "-1";
  1061. buttonType = "PushButton";
  1062. useMouseEvents = "0";
  1063. position = "134 34";
  1064. extent = "40 16";
  1065. minExtent = "8 2";
  1066. horizSizing = "left";
  1067. vertSizing = "bottom";
  1068. profile = "ToolsGuiButtonProfile";
  1069. visible = "1";
  1070. active = "1";
  1071. command = "MaterialEditorGui.updateroughMap(1);";
  1072. tooltipProfile = "GuiToolTipProfile";
  1073. hovertime = "1000";
  1074. isContainer = "0";
  1075. canSave = "1";
  1076. canSaveDynamicFields = "0";
  1077. };
  1078. new GuiBitmapButtonCtrl() {
  1079. bitmap = "tools/gui/images/delete";
  1080. bitmapMode = "Stretched";
  1081. autoFitExtents = "0";
  1082. useModifiers = "0";
  1083. useStates = "1";
  1084. groupNum = "-1";
  1085. buttonType = "PushButton";
  1086. useMouseEvents = "0";
  1087. position = "177 34";
  1088. extent = "16 16";
  1089. minExtent = "8 2";
  1090. horizSizing = "left";
  1091. vertSizing = "bottom";
  1092. profile = "ToolsGuiButtonProfile";
  1093. visible = "1";
  1094. active = "1";
  1095. command = "MaterialEditorGui.updateroughMap(0);";
  1096. tooltipProfile = "GuiToolTipProfile";
  1097. hovertime = "1000";
  1098. isContainer = "0";
  1099. canSave = "1";
  1100. canSaveDynamicFields = "0";
  1101. };
  1102. new GuiRadioCtrl(roughChanBtn0) {
  1103. text = "R";
  1104. groupNum = "1";
  1105. buttonType = "RadioButton";
  1106. useMouseEvents = "0";
  1107. position = "100 5";
  1108. extent = "20 10";
  1109. minExtent = "8 2";
  1110. horizSizing = "right";
  1111. vertSizing = "bottom";
  1112. profile = "ToolsGuiRadioProfile";
  1113. visible = "1";
  1114. active = "1";
  1115. command = "MaterialEditorGui.setRoughChan(0);";
  1116. tooltipProfile = "GuiToolTipProfile";
  1117. hovertime = "1000";
  1118. isContainer = "0";
  1119. canSave = "1";
  1120. canSaveDynamicFields = "0";
  1121. };
  1122. new GuiRadioCtrl(roughChanBtn1) {
  1123. text = "G";
  1124. groupNum = "1";
  1125. buttonType = "RadioButton";
  1126. useMouseEvents = "0";
  1127. position = "121 5";
  1128. extent = "20 10";
  1129. minExtent = "8 2";
  1130. horizSizing = "right";
  1131. vertSizing = "bottom";
  1132. profile = "ToolsGuiRadioProfile";
  1133. visible = "1";
  1134. active = "1";
  1135. command = "MaterialEditorGui.setRoughChan(1);";
  1136. tooltipProfile = "GuiToolTipProfile";
  1137. hovertime = "1000";
  1138. isContainer = "0";
  1139. canSave = "1";
  1140. canSaveDynamicFields = "0";
  1141. };
  1142. new GuiRadioCtrl(roughChanBtn2) {
  1143. text = "B";
  1144. groupNum = "1";
  1145. buttonType = "RadioButton";
  1146. useMouseEvents = "0";
  1147. position = "142 5";
  1148. extent = "20 10";
  1149. minExtent = "8 2";
  1150. horizSizing = "right";
  1151. vertSizing = "bottom";
  1152. profile = "ToolsGuiRadioProfile";
  1153. visible = "1";
  1154. active = "1";
  1155. command = "MaterialEditorGui.setRoughChan(2);";
  1156. tooltipProfile = "GuiToolTipProfile";
  1157. hovertime = "1000";
  1158. isContainer = "0";
  1159. canSave = "1";
  1160. canSaveDynamicFields = "0";
  1161. };
  1162. new GuiRadioCtrl(roughChanBtn3) {
  1163. text = "A";
  1164. groupNum = "1";
  1165. buttonType = "RadioButton";
  1166. useMouseEvents = "0";
  1167. position = "163 5";
  1168. extent = "20 10";
  1169. minExtent = "8 2";
  1170. horizSizing = "right";
  1171. vertSizing = "bottom";
  1172. profile = "ToolsGuiRadioProfile";
  1173. visible = "1";
  1174. active = "1";
  1175. command = "MaterialEditorGui.setRoughChan(3);";
  1176. tooltipProfile = "GuiToolTipProfile";
  1177. hovertime = "1000";
  1178. isContainer = "0";
  1179. canSave = "1";
  1180. canSaveDynamicFields = "0";
  1181. };
  1182. };
  1183. new GuiContainer() {
  1184. margin = "0 0 0 0";
  1185. padding = "0 0 0 0";
  1186. anchorTop = "1";
  1187. anchorBottom = "0";
  1188. anchorLeft = "1";
  1189. anchorRight = "0";
  1190. position = "6 364";
  1191. extent = "185 52";
  1192. minExtent = "8 2";
  1193. horizSizing = "width";
  1194. vertSizing = "bottom";
  1195. profile = "GuiDefaultProfile";
  1196. visible = "1";
  1197. active = "1";
  1198. tooltipProfile = "GuiToolTipProfile";
  1199. hovertime = "1000";
  1200. isContainer = "1";
  1201. canSave = "1";
  1202. canSaveDynamicFields = "0";
  1203. new GuiBitmapCtrl() {
  1204. bitmap = "tools/materialeditor/gui/unknownImage";
  1205. wrap = "0";
  1206. position = "1 1";
  1207. extent = "48 48";
  1208. minExtent = "8 2";
  1209. horizSizing = "right";
  1210. vertSizing = "bottom";
  1211. profile = "ToolsGuiButtonProfile";
  1212. visible = "1";
  1213. active = "1";
  1214. tooltipProfile = "GuiToolTipProfile";
  1215. hovertime = "1000";
  1216. isContainer = "0";
  1217. internalName = "aoMapDisplayBitmap";
  1218. canSave = "1";
  1219. canSaveDynamicFields = "0";
  1220. };
  1221. new GuiTextCtrl() {
  1222. text = "ao";
  1223. maxLength = "1024";
  1224. margin = "0 0 0 0";
  1225. padding = "0 0 0 0";
  1226. anchorTop = "1";
  1227. anchorBottom = "0";
  1228. anchorLeft = "1";
  1229. anchorRight = "0";
  1230. position = "56 5";
  1231. extent = "35 8";
  1232. minExtent = "8 2";
  1233. horizSizing = "right";
  1234. vertSizing = "bottom";
  1235. profile = "ToolsGuiTextProfile";
  1236. visible = "1";
  1237. active = "1";
  1238. tooltipProfile = "GuiToolTipProfile";
  1239. hovertime = "1000";
  1240. isContainer = "0";
  1241. canSave = "1";
  1242. canSaveDynamicFields = "0";
  1243. };
  1244. new GuiBitmapButtonCtrl() {
  1245. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1246. bitmapMode = "Stretched";
  1247. autoFitExtents = "0";
  1248. useModifiers = "0";
  1249. useStates = "1";
  1250. groupNum = "-1";
  1251. buttonType = "PushButton";
  1252. useMouseEvents = "0";
  1253. position = "1 1";
  1254. extent = "48 48";
  1255. minExtent = "8 2";
  1256. horizSizing = "right";
  1257. vertSizing = "bottom";
  1258. profile = "ToolsGuiButtonProfile";
  1259. visible = "1";
  1260. active = "1";
  1261. command = "MaterialEditorGui.updateaoMap(1);";
  1262. tooltipProfile = "GuiToolTipProfile";
  1263. tooltip = "Change the AO map for this layer.";
  1264. hovertime = "1000";
  1265. isContainer = "0";
  1266. canSave = "1";
  1267. canSaveDynamicFields = "0";
  1268. };
  1269. new GuiTextCtrl() {
  1270. text = "None";
  1271. maxLength = "1024";
  1272. margin = "0 0 0 0";
  1273. padding = "0 0 0 0";
  1274. anchorTop = "1";
  1275. anchorBottom = "0";
  1276. anchorLeft = "1";
  1277. anchorRight = "0";
  1278. position = "56 17";
  1279. extent = "143 17";
  1280. minExtent = "8 2";
  1281. horizSizing = "width";
  1282. vertSizing = "bottom";
  1283. profile = "ToolsGuiTextProfile";
  1284. visible = "1";
  1285. active = "1";
  1286. tooltipProfile = "GuiToolTipProfile";
  1287. hovertime = "1000";
  1288. isContainer = "0";
  1289. internalName = "aoMapNameText";
  1290. canSave = "1";
  1291. canSaveDynamicFields = "0";
  1292. };
  1293. new GuiButtonCtrl() {
  1294. text = "Edit";
  1295. groupNum = "-1";
  1296. buttonType = "PushButton";
  1297. useMouseEvents = "0";
  1298. position = "134 34";
  1299. extent = "40 16";
  1300. minExtent = "8 2";
  1301. horizSizing = "left";
  1302. vertSizing = "bottom";
  1303. profile = "ToolsGuiButtonProfile";
  1304. visible = "1";
  1305. active = "1";
  1306. command = "MaterialEditorGui.updateaoMap(1);";
  1307. tooltipProfile = "GuiToolTipProfile";
  1308. hovertime = "1000";
  1309. isContainer = "0";
  1310. canSave = "1";
  1311. canSaveDynamicFields = "0";
  1312. };
  1313. new GuiBitmapButtonCtrl() {
  1314. bitmap = "tools/gui/images/delete";
  1315. bitmapMode = "Stretched";
  1316. autoFitExtents = "0";
  1317. useModifiers = "0";
  1318. useStates = "1";
  1319. groupNum = "-1";
  1320. buttonType = "PushButton";
  1321. useMouseEvents = "0";
  1322. position = "177 34";
  1323. extent = "16 16";
  1324. minExtent = "8 2";
  1325. horizSizing = "left";
  1326. vertSizing = "bottom";
  1327. profile = "ToolsGuiButtonProfile";
  1328. visible = "1";
  1329. active = "1";
  1330. command = "MaterialEditorGui.updateaoMap(0);";
  1331. tooltipProfile = "GuiToolTipProfile";
  1332. hovertime = "1000";
  1333. isContainer = "0";
  1334. canSave = "1";
  1335. canSaveDynamicFields = "0";
  1336. };
  1337. new GuiRadioCtrl(aoChanBtn0) {
  1338. text = "R";
  1339. groupNum = "2";
  1340. buttonType = "RadioButton";
  1341. useMouseEvents = "0";
  1342. position = "100 5";
  1343. extent = "20 10";
  1344. minExtent = "8 2";
  1345. horizSizing = "right";
  1346. vertSizing = "bottom";
  1347. profile = "ToolsGuiRadioProfile";
  1348. visible = "1";
  1349. active = "1";
  1350. command = "MaterialEditorGui.setAOChan(0);";
  1351. tooltipProfile = "GuiToolTipProfile";
  1352. hovertime = "1000";
  1353. isContainer = "0";
  1354. canSave = "1";
  1355. canSaveDynamicFields = "0";
  1356. };
  1357. new GuiRadioCtrl(aoChanBtn1) {
  1358. text = "G";
  1359. groupNum = "2";
  1360. buttonType = "RadioButton";
  1361. useMouseEvents = "0";
  1362. position = "121 5";
  1363. extent = "20 10";
  1364. minExtent = "8 2";
  1365. horizSizing = "right";
  1366. vertSizing = "bottom";
  1367. profile = "ToolsGuiRadioProfile";
  1368. visible = "1";
  1369. active = "1";
  1370. command = "MaterialEditorGui.setAOChan(1);";
  1371. tooltipProfile = "GuiToolTipProfile";
  1372. hovertime = "1000";
  1373. isContainer = "0";
  1374. canSave = "1";
  1375. canSaveDynamicFields = "0";
  1376. };
  1377. new GuiRadioCtrl(aoChanBtn2) {
  1378. text = "B";
  1379. groupNum = "2";
  1380. buttonType = "RadioButton";
  1381. useMouseEvents = "0";
  1382. position = "142 5";
  1383. extent = "20 10";
  1384. minExtent = "8 2";
  1385. horizSizing = "right";
  1386. vertSizing = "bottom";
  1387. profile = "ToolsGuiRadioProfile";
  1388. visible = "1";
  1389. active = "1";
  1390. command = "MaterialEditorGui.setAOChan(2);";
  1391. tooltipProfile = "GuiToolTipProfile";
  1392. hovertime = "1000";
  1393. isContainer = "0";
  1394. canSave = "1";
  1395. canSaveDynamicFields = "0";
  1396. };
  1397. new GuiRadioCtrl(aoChanBtn3) {
  1398. text = "A";
  1399. groupNum = "2";
  1400. buttonType = "RadioButton";
  1401. useMouseEvents = "0";
  1402. position = "163 5";
  1403. extent = "20 10";
  1404. minExtent = "8 2";
  1405. horizSizing = "right";
  1406. vertSizing = "bottom";
  1407. profile = "ToolsGuiRadioProfile";
  1408. visible = "1";
  1409. active = "1";
  1410. command = "MaterialEditorGui.setAOChan(3);";
  1411. tooltipProfile = "GuiToolTipProfile";
  1412. hovertime = "1000";
  1413. isContainer = "0";
  1414. canSave = "1";
  1415. canSaveDynamicFields = "0";
  1416. };
  1417. };
  1418. new GuiContainer() {
  1419. margin = "0 0 0 0";
  1420. padding = "0 0 0 0";
  1421. anchorTop = "1";
  1422. anchorBottom = "0";
  1423. anchorLeft = "1";
  1424. anchorRight = "0";
  1425. position = "6 364";
  1426. extent = "185 52";
  1427. minExtent = "8 2";
  1428. horizSizing = "width";
  1429. vertSizing = "bottom";
  1430. profile = "GuiDefaultProfile";
  1431. visible = "1";
  1432. active = "1";
  1433. tooltipProfile = "GuiToolTipProfile";
  1434. hovertime = "1000";
  1435. isContainer = "1";
  1436. canSave = "1";
  1437. canSaveDynamicFields = "0";
  1438. new GuiBitmapCtrl() {
  1439. bitmap = "tools/materialeditor/gui/unknownImage";
  1440. wrap = "0";
  1441. position = "1 1";
  1442. extent = "48 48";
  1443. minExtent = "8 2";
  1444. horizSizing = "right";
  1445. vertSizing = "bottom";
  1446. profile = "ToolsGuiButtonProfile";
  1447. visible = "1";
  1448. active = "1";
  1449. tooltipProfile = "GuiToolTipProfile";
  1450. hovertime = "1000";
  1451. isContainer = "0";
  1452. internalName = "metalMapDisplayBitmap";
  1453. canSave = "1";
  1454. canSaveDynamicFields = "0";
  1455. };
  1456. new GuiTextCtrl() {
  1457. text = "metal";
  1458. maxLength = "1024";
  1459. margin = "0 0 0 0";
  1460. padding = "0 0 0 0";
  1461. anchorTop = "1";
  1462. anchorBottom = "0";
  1463. anchorLeft = "1";
  1464. anchorRight = "0";
  1465. position = "56 5";
  1466. extent = "35 8";
  1467. minExtent = "8 2";
  1468. horizSizing = "right";
  1469. vertSizing = "bottom";
  1470. profile = "ToolsGuiTextProfile";
  1471. visible = "1";
  1472. active = "1";
  1473. tooltipProfile = "GuiToolTipProfile";
  1474. hovertime = "1000";
  1475. isContainer = "0";
  1476. canSave = "1";
  1477. canSaveDynamicFields = "0";
  1478. };
  1479. new GuiBitmapButtonCtrl() {
  1480. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1481. bitmapMode = "Stretched";
  1482. autoFitExtents = "0";
  1483. useModifiers = "0";
  1484. useStates = "1";
  1485. groupNum = "-1";
  1486. buttonType = "PushButton";
  1487. useMouseEvents = "0";
  1488. position = "1 1";
  1489. extent = "48 48";
  1490. minExtent = "8 2";
  1491. horizSizing = "right";
  1492. vertSizing = "bottom";
  1493. profile = "ToolsGuiButtonProfile";
  1494. visible = "1";
  1495. active = "1";
  1496. command = "MaterialEditorGui.updatemetalMap(1);";
  1497. tooltipProfile = "GuiToolTipProfile";
  1498. tooltip = "Change the Metalness Map for this layer.";
  1499. hovertime = "1000";
  1500. isContainer = "0";
  1501. canSave = "1";
  1502. canSaveDynamicFields = "0";
  1503. };
  1504. new GuiTextCtrl() {
  1505. text = "None";
  1506. maxLength = "1024";
  1507. margin = "0 0 0 0";
  1508. padding = "0 0 0 0";
  1509. anchorTop = "1";
  1510. anchorBottom = "0";
  1511. anchorLeft = "1";
  1512. anchorRight = "0";
  1513. position = "56 17";
  1514. extent = "143 17";
  1515. minExtent = "8 2";
  1516. horizSizing = "width";
  1517. vertSizing = "bottom";
  1518. profile = "ToolsGuiTextProfile";
  1519. visible = "1";
  1520. active = "1";
  1521. tooltipProfile = "GuiToolTipProfile";
  1522. hovertime = "1000";
  1523. isContainer = "0";
  1524. internalName = "metalMapNameText";
  1525. canSave = "1";
  1526. canSaveDynamicFields = "0";
  1527. };
  1528. new GuiButtonCtrl() {
  1529. text = "Edit";
  1530. groupNum = "-1";
  1531. buttonType = "PushButton";
  1532. useMouseEvents = "0";
  1533. position = "134 34";
  1534. extent = "40 16";
  1535. minExtent = "8 2";
  1536. horizSizing = "left";
  1537. vertSizing = "bottom";
  1538. profile = "ToolsGuiButtonProfile";
  1539. visible = "1";
  1540. active = "1";
  1541. command = "MaterialEditorGui.updatemetalMap(1);";
  1542. tooltipProfile = "GuiToolTipProfile";
  1543. hovertime = "1000";
  1544. isContainer = "0";
  1545. canSave = "1";
  1546. canSaveDynamicFields = "0";
  1547. };
  1548. new GuiBitmapButtonCtrl() {
  1549. bitmap = "tools/gui/images/delete";
  1550. bitmapMode = "Stretched";
  1551. autoFitExtents = "0";
  1552. useModifiers = "0";
  1553. useStates = "1";
  1554. groupNum = "-1";
  1555. buttonType = "PushButton";
  1556. useMouseEvents = "0";
  1557. position = "177 34";
  1558. extent = "16 16";
  1559. minExtent = "8 2";
  1560. horizSizing = "left";
  1561. vertSizing = "bottom";
  1562. profile = "ToolsGuiButtonProfile";
  1563. visible = "1";
  1564. active = "1";
  1565. command = "MaterialEditorGui.updatemetalMap(0);";
  1566. tooltipProfile = "GuiToolTipProfile";
  1567. hovertime = "1000";
  1568. isContainer = "0";
  1569. canSave = "1";
  1570. canSaveDynamicFields = "0";
  1571. };
  1572. new GuiRadioCtrl(metalChanBtn0) {
  1573. text = "R";
  1574. groupNum = "3";
  1575. buttonType = "RadioButton";
  1576. useMouseEvents = "0";
  1577. position = "100 5";
  1578. extent = "20 10";
  1579. minExtent = "8 2";
  1580. horizSizing = "right";
  1581. vertSizing = "bottom";
  1582. profile = "ToolsGuiRadioProfile";
  1583. visible = "1";
  1584. active = "1";
  1585. command = "MaterialEditorGui.setMetalChan(0);";
  1586. tooltipProfile = "GuiToolTipProfile";
  1587. hovertime = "1000";
  1588. isContainer = "0";
  1589. canSave = "1";
  1590. canSaveDynamicFields = "0";
  1591. };
  1592. new GuiRadioCtrl(metalChanBtn1) {
  1593. text = "G";
  1594. groupNum = "3";
  1595. buttonType = "RadioButton";
  1596. useMouseEvents = "0";
  1597. position = "121 5";
  1598. extent = "20 10";
  1599. minExtent = "8 2";
  1600. horizSizing = "right";
  1601. vertSizing = "bottom";
  1602. profile = "ToolsGuiRadioProfile";
  1603. visible = "1";
  1604. active = "1";
  1605. command = "MaterialEditorGui.setMetalChan(1);";
  1606. tooltipProfile = "GuiToolTipProfile";
  1607. hovertime = "1000";
  1608. isContainer = "0";
  1609. canSave = "1";
  1610. canSaveDynamicFields = "0";
  1611. };
  1612. new GuiRadioCtrl(metalChanBtn2) {
  1613. text = "B";
  1614. groupNum = "3";
  1615. buttonType = "RadioButton";
  1616. useMouseEvents = "0";
  1617. position = "142 5";
  1618. extent = "20 10";
  1619. minExtent = "8 2";
  1620. horizSizing = "right";
  1621. vertSizing = "bottom";
  1622. profile = "ToolsGuiRadioProfile";
  1623. visible = "1";
  1624. active = "1";
  1625. command = "MaterialEditorGui.setMetalChan(2);";
  1626. tooltipProfile = "GuiToolTipProfile";
  1627. hovertime = "1000";
  1628. isContainer = "0";
  1629. canSave = "1";
  1630. canSaveDynamicFields = "0";
  1631. };
  1632. new GuiRadioCtrl(metalChanBtn3) {
  1633. text = "A";
  1634. groupNum = "3";
  1635. buttonType = "RadioButton";
  1636. useMouseEvents = "0";
  1637. position = "163 5";
  1638. extent = "20 10";
  1639. minExtent = "8 2";
  1640. horizSizing = "right";
  1641. vertSizing = "bottom";
  1642. profile = "ToolsGuiRadioProfile";
  1643. visible = "1";
  1644. active = "1";
  1645. command = "MaterialEditorGui.setMetalChan(3);";
  1646. tooltipProfile = "GuiToolTipProfile";
  1647. hovertime = "1000";
  1648. isContainer = "0";
  1649. canSave = "1";
  1650. canSaveDynamicFields = "0";
  1651. };
  1652. };
  1653. new GuiBitmapCtrl() {
  1654. bitmap = "tools/gui/images/separator-v";
  1655. wrap = "0";
  1656. position = "6 75";
  1657. extent = "175 2";
  1658. minExtent = "8 2";
  1659. horizSizing = "width";
  1660. vertSizing = "bottom";
  1661. profile = "ToolsGuiButtonProfile";
  1662. visible = "1";
  1663. active = "1";
  1664. tooltipProfile = "GuiToolTipProfile";
  1665. hovertime = "1000";
  1666. isContainer = "0";
  1667. canSave = "1";
  1668. canSaveDynamicFields = "0";
  1669. };
  1670. new GuiContainer() {
  1671. margin = "0 0 0 0";
  1672. padding = "0 0 0 0";
  1673. anchorTop = "1";
  1674. anchorBottom = "0";
  1675. anchorLeft = "1";
  1676. anchorRight = "0";
  1677. position = "6 364";
  1678. extent = "185 67";
  1679. minExtent = "8 2";
  1680. horizSizing = "width";
  1681. vertSizing = "bottom";
  1682. profile = "GuiDefaultProfile";
  1683. visible = "1";
  1684. active = "1";
  1685. tooltipProfile = "GuiToolTipProfile";
  1686. hovertime = "1000";
  1687. isContainer = "1";
  1688. canSave = "1";
  1689. canSaveDynamicFields = "0";
  1690. new GuiBitmapCtrl() {
  1691. bitmap = "tools/materialeditor/gui/unknownImage";
  1692. wrap = "0";
  1693. position = "1 1";
  1694. extent = "48 48";
  1695. minExtent = "8 2";
  1696. horizSizing = "right";
  1697. vertSizing = "bottom";
  1698. profile = "ToolsGuiButtonProfile";
  1699. visible = "1";
  1700. active = "1";
  1701. tooltipProfile = "GuiToolTipProfile";
  1702. hovertime = "1000";
  1703. isContainer = "0";
  1704. internalName = "glowMapDisplayBitmap";
  1705. canSave = "1";
  1706. canSaveDynamicFields = "0";
  1707. };
  1708. new GuiTextCtrl() {
  1709. text = "glow";
  1710. maxLength = "1024";
  1711. margin = "0 0 0 0";
  1712. padding = "0 0 0 0";
  1713. anchorTop = "1";
  1714. anchorBottom = "0";
  1715. anchorLeft = "1";
  1716. anchorRight = "0";
  1717. position = "56 5";
  1718. extent = "35 8";
  1719. minExtent = "8 2";
  1720. horizSizing = "right";
  1721. vertSizing = "bottom";
  1722. profile = "ToolsGuiTextProfile";
  1723. visible = "1";
  1724. active = "1";
  1725. tooltipProfile = "GuiToolTipProfile";
  1726. hovertime = "1000";
  1727. isContainer = "0";
  1728. canSave = "1";
  1729. canSaveDynamicFields = "0";
  1730. };
  1731. new GuiBitmapButtonCtrl() {
  1732. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1733. bitmapMode = "Stretched";
  1734. autoFitExtents = "0";
  1735. useModifiers = "0";
  1736. useStates = "1";
  1737. groupNum = "-1";
  1738. buttonType = "PushButton";
  1739. useMouseEvents = "0";
  1740. position = "1 1";
  1741. extent = "48 48";
  1742. minExtent = "8 2";
  1743. horizSizing = "right";
  1744. vertSizing = "bottom";
  1745. profile = "ToolsGuiButtonProfile";
  1746. visible = "1";
  1747. active = "1";
  1748. command = "MaterialEditorGui.updateglowMap(1);";
  1749. tooltipProfile = "GuiToolTipProfile";
  1750. tooltip = "Change the glowness Map for this layer.";
  1751. hovertime = "1000";
  1752. isContainer = "0";
  1753. canSave = "1";
  1754. canSaveDynamicFields = "0";
  1755. };
  1756. new GuiTextCtrl() {
  1757. text = "None";
  1758. maxLength = "1024";
  1759. margin = "0 0 0 0";
  1760. padding = "0 0 0 0";
  1761. anchorTop = "1";
  1762. anchorBottom = "0";
  1763. anchorLeft = "1";
  1764. anchorRight = "0";
  1765. position = "56 17";
  1766. extent = "143 17";
  1767. minExtent = "8 2";
  1768. horizSizing = "width";
  1769. vertSizing = "bottom";
  1770. profile = "ToolsGuiTextProfile";
  1771. visible = "1";
  1772. active = "1";
  1773. tooltipProfile = "GuiToolTipProfile";
  1774. hovertime = "1000";
  1775. isContainer = "0";
  1776. internalName = "glowMapNameText";
  1777. canSave = "1";
  1778. canSaveDynamicFields = "0";
  1779. };
  1780. new GuiButtonCtrl() {
  1781. text = "Edit";
  1782. groupNum = "-1";
  1783. buttonType = "PushButton";
  1784. useMouseEvents = "0";
  1785. position = "134 34";
  1786. extent = "40 16";
  1787. minExtent = "8 2";
  1788. horizSizing = "left";
  1789. vertSizing = "bottom";
  1790. profile = "ToolsGuiButtonProfile";
  1791. visible = "1";
  1792. active = "1";
  1793. command = "MaterialEditorGui.updateglowMap(1);";
  1794. tooltipProfile = "GuiToolTipProfile";
  1795. hovertime = "1000";
  1796. isContainer = "0";
  1797. canSave = "1";
  1798. canSaveDynamicFields = "0";
  1799. };
  1800. new GuiBitmapButtonCtrl() {
  1801. bitmap = "tools/gui/images/delete";
  1802. bitmapMode = "Stretched";
  1803. autoFitExtents = "0";
  1804. useModifiers = "0";
  1805. useStates = "1";
  1806. groupNum = "-1";
  1807. buttonType = "PushButton";
  1808. useMouseEvents = "0";
  1809. position = "177 34";
  1810. extent = "16 16";
  1811. minExtent = "8 2";
  1812. horizSizing = "left";
  1813. vertSizing = "bottom";
  1814. profile = "ToolsGuiButtonProfile";
  1815. visible = "1";
  1816. active = "1";
  1817. command = "MaterialEditorGui.updateglowMap(0);";
  1818. tooltipProfile = "GuiToolTipProfile";
  1819. hovertime = "1000";
  1820. isContainer = "0";
  1821. canSave = "1";
  1822. canSaveDynamicFields = "0";
  1823. };
  1824. new GuiTextCtrl() {
  1825. HorizSizing = "right";
  1826. VertSizing = "bottom";
  1827. position = "9 48";
  1828. Extent = "72 16";
  1829. text = "GlowMul";
  1830. Profile = "ToolsGuiTextProfile";
  1831. };
  1832. new GuiControl() {
  1833. class = "AggregateControl";
  1834. position = "91 48";
  1835. Extent = "96 20";
  1836. new GuiSliderCtrl() {
  1837. canSaveDynamicFields = "0";
  1838. internalName = "GlowMulSlider";
  1839. Enabled = "1";
  1840. isContainer = "0";
  1841. Profile = "ToolsGuiSliderProfile";
  1842. HorizSizing = "right";
  1843. VertSizing = "bottom";
  1844. position = "0 1";
  1845. Extent = "61 14";
  1846. MinExtent = "8 2";
  1847. canSave = "1";
  1848. Visible = "1";
  1849. Command = "MaterialEditorGui.updateActiveMaterial(\"GlowMul[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1850. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"GlowMul[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1851. tooltipprofile = "ToolsGuiDefaultProfile";
  1852. ToolTip = "Sets GlowMul.";
  1853. hovertime = "1000";
  1854. range = "0 20";
  1855. ticks = "0";
  1856. value = "0";
  1857. };
  1858. new GuiTextEditCtrl() {
  1859. canSaveDynamicFields = "0";
  1860. internalName = "GlowMulTextEdit";
  1861. Enabled = "1";
  1862. isContainer = "0";
  1863. Profile = "ToolsGuiTextEditProfile";
  1864. HorizSizing = "right";
  1865. VertSizing = "bottom";
  1866. position = "64 0";
  1867. Extent = "29 18";
  1868. MinExtent = "8 2";
  1869. canSave = "1";
  1870. Visible = "1";
  1871. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"GlowMul[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1872. hovertime = "1000";
  1873. AnchorTop = "1";
  1874. AnchorBottom = "0";
  1875. AnchorLeft = "1";
  1876. AnchorRight = "0";
  1877. text = "0";
  1878. };
  1879. };
  1880. };
  1881. };
  1882. };
  1883. new GuiRolloutCtrl(advancedTextureMapsRollout) {
  1884. class = "BehaviorQuickEditRollout";
  1885. superclass = LBQuickEditRollout;
  1886. Profile = "GuiRolloutProfile";
  1887. HorizSizing = "width";
  1888. VertSizing = "bottom";
  1889. Position = "0 0";
  1890. Extent = "185 0";
  1891. Caption = "Advanced Texture Maps";
  1892. Expanded = false;
  1893. Margin = "4 4 4 0";
  1894. DragSizable = false;
  1895. container = true;
  1896. parentRollout = %this.rollout;
  1897. object = %behavior;
  1898. new GuiStackControl() {
  1899. StackingType = "Vertical";
  1900. HorizStacking = "Left to Right";
  1901. VertStacking = "Top to Bottom";
  1902. Padding = "0";
  1903. canSaveDynamicFields = "0";
  1904. Enabled = "1";
  1905. isContainer = "1";
  1906. Profile = "ToolsGuiDefaultProfile";
  1907. HorizSizing = "width";
  1908. VertSizing = "bottom";
  1909. Position = "1 3";
  1910. Extent = "185 16";
  1911. MinExtent = "16 16";
  1912. canSave = "1";
  1913. isDecoy = "0";
  1914. Visible = "1";
  1915. tooltipprofile = "ToolsGuiToolTipProfile";
  1916. hovertime = "1000";
  1917. new GuiContainer(){ // Detail Map
  1918. profile="ToolsGuiDefaultProfile";
  1919. isContainer = "1";
  1920. position = "6 193";
  1921. Extent = "185 52";
  1922. HorizSizing = "width";
  1923. new GuiBitmapCtrl() {
  1924. canSaveDynamicFields = "0";
  1925. internalName = "detailMapDisplayBitmap";
  1926. Enabled = "1";
  1927. isContainer = "0";
  1928. Profile = "ToolsGuiDefaultProfile";
  1929. HorizSizing = "right";
  1930. VertSizing = "bottom";
  1931. position = "1 1";
  1932. Extent = "48 48";
  1933. MinExtent = "8 2";
  1934. canSave = "1";
  1935. Visible = "1";
  1936. hovertime = "1000";
  1937. bitmap = "tools/materialEditor/gui/unknownImage";
  1938. wrap = "0";
  1939. };
  1940. new GuiBitmapButtonCtrl() {
  1941. canSaveDynamicFields = "0";
  1942. Enabled = "1";
  1943. isContainer = "0";
  1944. Profile = "ToolsGuiDefaultProfile";
  1945. HorizSizing = "right";
  1946. VertSizing = "bottom";
  1947. position = "1 1";
  1948. Extent = "48 48";
  1949. MinExtent = "8 2";
  1950. canSave = "1";
  1951. Visible = "1";
  1952. Command = "MaterialEditorGui.updateTextureMap(\"detail\", 1);";
  1953. tooltipprofile = "ToolsGuiDefaultProfile";
  1954. ToolTip = "Change the active Detail Map for this layer.";
  1955. hovertime = "1000";
  1956. groupNum = "-1";
  1957. buttonType = "PushButton";
  1958. useMouseEvents = "0";
  1959. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1960. };
  1961. new GuiTextCtrl() { // Detailmap Scale text
  1962. profile="ToolsGuiDefaultProfile";
  1963. position = "56 34";
  1964. Extent = "29 16";
  1965. text ="Scale";
  1966. };
  1967. new GuiTextEditCtrl() { // Detailmap Scale
  1968. profile="ToolsGuiNumericTextEditProfile";
  1969. internalName = "detailScaleTextEdit";
  1970. position = "87 33";
  1971. Extent = "28 18";
  1972. text ="0";
  1973. maxLength = "2";
  1974. AltCommand = "MaterialEditorGui.updateDetailScale($ThisControl.getText());";
  1975. };
  1976. new GuiTextCtrl() {
  1977. canSaveDynamicFields = "0";
  1978. Enabled = "1";
  1979. isContainer = "0";
  1980. Profile = "EditorTextProfile";
  1981. HorizSizing = "right";
  1982. VertSizing = "bottom";
  1983. position = "56 -3";
  1984. Extent = "72 18";
  1985. MinExtent = "8 2";
  1986. canSave = "1";
  1987. Visible = "1";
  1988. hovertime = "1000";
  1989. Margin = "0 0 0 0";
  1990. Padding = "0 0 0 0";
  1991. AnchorTop = "1";
  1992. AnchorBottom = "0";
  1993. AnchorLeft = "1";
  1994. AnchorRight = "0";
  1995. text = "Detail Map";
  1996. maxLength = "1024";
  1997. };
  1998. new GuiTextCtrl() {
  1999. canSaveDynamicFields = "0";
  2000. internalName = "detailMapNameText";
  2001. Enabled = "1";
  2002. isContainer = "0";
  2003. Profile = "ToolsGuiTextProfile";
  2004. HorizSizing = "width";
  2005. VertSizing = "bottom";
  2006. position = "56 16";
  2007. Extent = "143 17";
  2008. MinExtent = "8 2";
  2009. canSave = "1";
  2010. Visible = "1";
  2011. hovertime = "1000";
  2012. Margin = "0 0 0 0";
  2013. Padding = "0 0 0 0";
  2014. AnchorTop = "1";
  2015. AnchorBottom = "0";
  2016. AnchorLeft = "1";
  2017. AnchorRight = "0";
  2018. text = "None";
  2019. maxLength = "1024";
  2020. };
  2021. new GuiButtonCtrl(){
  2022. profile="ToolsGuiButtonProfile";
  2023. text ="Edit";
  2024. HorizSizing = "left";
  2025. VertSizing = "bottom";
  2026. position = "134 34";
  2027. Extent = "40 16";
  2028. buttonType = "PushButton";
  2029. command = "MaterialEditorGui.updateTextureMap(\"detail\", 1);";
  2030. };
  2031. new GuiBitmapButtonCtrl() {
  2032. canSaveDynamicFields = "0";
  2033. Enabled = "1";
  2034. isContainer = "0";
  2035. Profile = "ToolsGuiDefaultProfile";
  2036. HorizSizing = "left";
  2037. VertSizing = "bottom";
  2038. position = "177 34";
  2039. Extent = "16 16";
  2040. MinExtent = "8 2";
  2041. canSave = "1";
  2042. Visible = "1";
  2043. Command = "MaterialEditorGui.updateTextureMap(\"detail\", 0);";
  2044. hovertime = "1000";
  2045. groupNum = "-1";
  2046. buttonType = "PushButton";
  2047. useMouseEvents = "0";
  2048. bitmap = "tools/gui/images/delete";
  2049. };
  2050. };
  2051. new GuiBitmapCtrl(){
  2052. position="6 246";
  2053. extent ="175 2";
  2054. HorizSizing = "width";
  2055. bitmap ="tools/gui/images/separator-v";
  2056. };
  2057. new GuiContainer(){ // Detail Normal Map
  2058. profile="ToolsGuiDefaultProfile";
  2059. isContainer = "1";
  2060. position = "6 136";
  2061. Extent = "185 52";
  2062. HorizSizing = "width";
  2063. new GuiBitmapCtrl() {
  2064. canSaveDynamicFields = "0";
  2065. internalName = "detailNormalMapDisplayBitmap";
  2066. Enabled = "1";
  2067. isContainer = "0";
  2068. Profile = "ToolsGuiDefaultProfile";
  2069. HorizSizing = "right";
  2070. VertSizing = "bottom";
  2071. position = "1 1";
  2072. Extent = "48 48";
  2073. MinExtent = "8 2";
  2074. canSave = "1";
  2075. Visible = "1";
  2076. hovertime = "1000";
  2077. bitmap = "tools/materialEditor/gui/unknownImage";
  2078. wrap = "0";
  2079. };
  2080. new GuiBitmapButtonCtrl() {
  2081. canSaveDynamicFields = "0";
  2082. Enabled = "1";
  2083. isContainer = "0";
  2084. Profile = "ToolsGuiDefaultProfile";
  2085. HorizSizing = "right";
  2086. VertSizing = "bottom";
  2087. position = "1 1";
  2088. Extent = "48 48";
  2089. MinExtent = "8 2";
  2090. canSave = "1";
  2091. Visible = "1";
  2092. Command = "MaterialEditorGui.updateTextureMap(\"detailNormal\", 1);";
  2093. tooltipprofile = "ToolsGuiDefaultProfile";
  2094. ToolTip = "Change the active DetailNormal Map for this layer.";
  2095. hovertime = "1000";
  2096. groupNum = "-1";
  2097. buttonType = "PushButton";
  2098. useMouseEvents = "0";
  2099. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  2100. };
  2101. new GuiTextCtrl() { // Detail Normal Map Strength text
  2102. profile="ToolsGuiDefaultProfile";
  2103. position = "56 34";
  2104. Extent = "29 16";
  2105. text ="Strength";
  2106. };
  2107. new GuiTextEditCtrl() { // Detail Normal Map Strength
  2108. profile="ToolsGuiNumericTextEditProfile";
  2109. internalName = "detailNormalStrengthTextEdit";
  2110. position = "87 33";
  2111. Extent = "28 18";
  2112. text ="0";
  2113. maxLength = "3";
  2114. AltCommand = "MaterialEditorGui.updateDetailNormalStrength($ThisControl.getText());";
  2115. };
  2116. new GuiTextCtrl() {
  2117. canSaveDynamicFields = "0";
  2118. Enabled = "1";
  2119. isContainer = "0";
  2120. Profile = "EditorTextProfile";
  2121. HorizSizing = "right";
  2122. VertSizing = "bottom";
  2123. position = "56 -3";
  2124. Extent = "72 18";
  2125. MinExtent = "8 2";
  2126. canSave = "1";
  2127. Visible = "1";
  2128. hovertime = "1000";
  2129. Margin = "0 0 0 0";
  2130. Padding = "0 0 0 0";
  2131. AnchorTop = "1";
  2132. AnchorBottom = "0";
  2133. AnchorLeft = "1";
  2134. AnchorRight = "0";
  2135. text = "Detail Normal Map";
  2136. maxLength = "1024";
  2137. };
  2138. new GuiTextCtrl() {
  2139. canSaveDynamicFields = "0";
  2140. internalName = "detailNormalMapNameText";
  2141. Enabled = "1";
  2142. isContainer = "0";
  2143. Profile = "ToolsGuiTextProfile";
  2144. HorizSizing = "width";
  2145. VertSizing = "bottom";
  2146. position = "56 16";
  2147. Extent = "143 17";
  2148. MinExtent = "8 2";
  2149. canSave = "1";
  2150. Visible = "1";
  2151. hovertime = "1000";
  2152. Margin = "0 0 0 0";
  2153. Padding = "0 0 0 0";
  2154. AnchorTop = "1";
  2155. AnchorBottom = "0";
  2156. AnchorLeft = "1";
  2157. AnchorRight = "0";
  2158. text = "None";
  2159. maxLength = "1024";
  2160. };
  2161. new GuiButtonCtrl(){
  2162. profile="ToolsGuiButtonProfile";
  2163. text ="Edit";
  2164. HorizSizing = "left";
  2165. VertSizing = "bottom";
  2166. position = "134 34";
  2167. Extent = "40 16";
  2168. buttonType = "PushButton";
  2169. command = "MaterialEditorGui.updateTextureMap(\"detailNormal\", 1);";
  2170. };
  2171. new GuiBitmapButtonCtrl() {
  2172. canSaveDynamicFields = "0";
  2173. Enabled = "1";
  2174. isContainer = "0";
  2175. Profile = "ToolsGuiDefaultProfile";
  2176. HorizSizing = "left";
  2177. VertSizing = "bottom";
  2178. position = "177 34";
  2179. Extent = "16 16";
  2180. MinExtent = "8 2";
  2181. canSave = "1";
  2182. Visible = "1";
  2183. Command = "MaterialEditorGui.updateTextureMap(\"detailNormal\", 0);";
  2184. hovertime = "1000";
  2185. groupNum = "-1";
  2186. buttonType = "PushButton";
  2187. useMouseEvents = "0";
  2188. bitmap = "tools/gui/images/delete";
  2189. };
  2190. };
  2191. new GuiBitmapCtrl(){
  2192. position="6 189";
  2193. extent ="175 2";
  2194. HorizSizing = "width";
  2195. bitmap ="tools/gui/images/separator-v";
  2196. };
  2197. new GuiContainer(){ // Overlay Map
  2198. profile="ToolsGuiDefaultProfile";
  2199. isContainer = "1";
  2200. position = "6 136";
  2201. Extent = "185 52";
  2202. HorizSizing = "width";
  2203. new GuiBitmapCtrl() {
  2204. canSaveDynamicFields = "0";
  2205. internalName = "overlayMapDisplayBitmap";
  2206. Enabled = "1";
  2207. isContainer = "0";
  2208. Profile = "ToolsGuiDefaultProfile";
  2209. HorizSizing = "right";
  2210. VertSizing = "bottom";
  2211. position = "1 1";
  2212. Extent = "48 48";
  2213. MinExtent = "8 2";
  2214. canSave = "1";
  2215. Visible = "1";
  2216. hovertime = "1000";
  2217. bitmap = "tools/materialEditor/gui/unknownImage";
  2218. wrap = "0";
  2219. };
  2220. new GuiBitmapButtonCtrl() {
  2221. canSaveDynamicFields = "0";
  2222. Enabled = "1";
  2223. isContainer = "0";
  2224. Profile = "ToolsGuiDefaultProfile";
  2225. HorizSizing = "right";
  2226. VertSizing = "bottom";
  2227. position = "1 1";
  2228. Extent = "48 48";
  2229. MinExtent = "8 2";
  2230. canSave = "1";
  2231. Visible = "1";
  2232. Command = "MaterialEditorGui.updateTextureMap(\"overlay\", 1);";
  2233. tooltipprofile = "ToolsGuiDefaultProfile";
  2234. ToolTip = "Change the active Overlay Map for this layer.";
  2235. hovertime = "1000";
  2236. groupNum = "-1";
  2237. buttonType = "PushButton";
  2238. useMouseEvents = "0";
  2239. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  2240. };
  2241. new GuiTextCtrl() {
  2242. canSaveDynamicFields = "0";
  2243. Enabled = "1";
  2244. isContainer = "0";
  2245. Profile = "EditorTextProfile";
  2246. HorizSizing = "right";
  2247. VertSizing = "bottom";
  2248. position = "56 -3";
  2249. Extent = "72 18";
  2250. MinExtent = "8 2";
  2251. canSave = "1";
  2252. Visible = "1";
  2253. hovertime = "1000";
  2254. Margin = "0 0 0 0";
  2255. Padding = "0 0 0 0";
  2256. AnchorTop = "1";
  2257. AnchorBottom = "0";
  2258. AnchorLeft = "1";
  2259. AnchorRight = "0";
  2260. text = "Overlay Map";
  2261. maxLength = "1024";
  2262. };
  2263. new GuiTextCtrl() {
  2264. canSaveDynamicFields = "0";
  2265. internalName = "overlayMapNameText";
  2266. Enabled = "1";
  2267. isContainer = "0";
  2268. Profile = "ToolsGuiTextProfile";
  2269. HorizSizing = "width";
  2270. VertSizing = "bottom";
  2271. position = "56 16";
  2272. Extent = "143 17";
  2273. MinExtent = "8 2";
  2274. canSave = "1";
  2275. Visible = "1";
  2276. hovertime = "1000";
  2277. Margin = "0 0 0 0";
  2278. Padding = "0 0 0 0";
  2279. AnchorTop = "1";
  2280. AnchorBottom = "0";
  2281. AnchorLeft = "1";
  2282. AnchorRight = "0";
  2283. text = "None";
  2284. maxLength = "1024";
  2285. };
  2286. new GuiButtonCtrl(){
  2287. profile="ToolsGuiButtonProfile";
  2288. text ="Edit";
  2289. HorizSizing = "left";
  2290. VertSizing = "bottom";
  2291. position = "134 34";
  2292. Extent = "40 16";
  2293. buttonType = "PushButton";
  2294. command = "MaterialEditorGui.updateTextureMap(\"overlay\", 1);";
  2295. };
  2296. new GuiBitmapButtonCtrl() {
  2297. canSaveDynamicFields = "0";
  2298. Enabled = "1";
  2299. isContainer = "0";
  2300. Profile = "ToolsGuiDefaultProfile";
  2301. HorizSizing = "left";
  2302. VertSizing = "bottom";
  2303. position = "177 34";
  2304. Extent = "16 16";
  2305. MinExtent = "8 2";
  2306. canSave = "1";
  2307. Visible = "1";
  2308. Command = "MaterialEditorGui.updateTextureMap(\"overlay\", 0);";
  2309. hovertime = "1000";
  2310. groupNum = "-1";
  2311. buttonType = "PushButton";
  2312. useMouseEvents = "0";
  2313. bitmap = "tools/gui/images/delete";
  2314. };
  2315. };
  2316. new GuiBitmapCtrl(){
  2317. position="6 189";
  2318. extent ="175 2";
  2319. HorizSizing = "width";
  2320. bitmap ="tools/gui/images/separator-v";
  2321. };
  2322. new GuiContainer(){ // light Map
  2323. profile="ToolsGuiDefaultProfile";
  2324. isContainer = "1";
  2325. position = "6 250";
  2326. Extent = "185 52";
  2327. HorizSizing = "width";
  2328. new GuiBitmapCtrl() {
  2329. canSaveDynamicFields = "0";
  2330. internalName = "lightMapDisplayBitmap";
  2331. Enabled = "1";
  2332. isContainer = "0";
  2333. Profile = "ToolsGuiDefaultProfile";
  2334. HorizSizing = "right";
  2335. VertSizing = "bottom";
  2336. position = "1 1";
  2337. Extent = "48 48";
  2338. MinExtent = "8 2";
  2339. canSave = "1";
  2340. Visible = "1";
  2341. hovertime = "1000";
  2342. bitmap = "tools/materialEditor/gui/unknownImage";
  2343. wrap = "0";
  2344. };
  2345. new GuiTextCtrl() {
  2346. canSaveDynamicFields = "0";
  2347. Enabled = "1";
  2348. isContainer = "0";
  2349. Profile = "EditorTextProfile";
  2350. HorizSizing = "right";
  2351. VertSizing = "bottom";
  2352. position = "56 -3";
  2353. Extent = "72 18";
  2354. MinExtent = "8 2";
  2355. canSave = "1";
  2356. Visible = "1";
  2357. hovertime = "1000";
  2358. Margin = "0 0 0 0";
  2359. Padding = "0 0 0 0";
  2360. AnchorTop = "1";
  2361. AnchorBottom = "0";
  2362. AnchorLeft = "1";
  2363. AnchorRight = "0";
  2364. text = "Light Map";
  2365. maxLength = "1024";
  2366. };
  2367. new GuiBitmapButtonCtrl() {
  2368. canSaveDynamicFields = "0";
  2369. Enabled = "1";
  2370. isContainer = "0";
  2371. Profile = "ToolsGuiDefaultProfile";
  2372. HorizSizing = "right";
  2373. VertSizing = "bottom";
  2374. position = "1 1";
  2375. Extent = "48 48";
  2376. MinExtent = "8 2";
  2377. canSave = "1";
  2378. Visible = "1";
  2379. Command = "MaterialEditorGui.updateTextureMap(\"light\", 1);";
  2380. tooltipprofile = "ToolsGuiDefaultProfile";
  2381. ToolTip = "Change the active light Map for this layer.";
  2382. hovertime = "1000";
  2383. groupNum = "-1";
  2384. buttonType = "PushButton";
  2385. useMouseEvents = "0";
  2386. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  2387. };
  2388. new GuiTextCtrl() {
  2389. canSaveDynamicFields = "0";
  2390. internalName = "lightMapNameText";
  2391. Enabled = "1";
  2392. isContainer = "0";
  2393. Profile = "ToolsGuiTextProfile";
  2394. HorizSizing = "width";
  2395. VertSizing = "bottom";
  2396. position = "56 16";
  2397. Extent = "143 17";
  2398. MinExtent = "8 2";
  2399. canSave = "1";
  2400. Visible = "1";
  2401. hovertime = "1000";
  2402. Margin = "0 0 0 0";
  2403. Padding = "0 0 0 0";
  2404. AnchorTop = "1";
  2405. AnchorBottom = "0";
  2406. AnchorLeft = "1";
  2407. AnchorRight = "0";
  2408. text = "None";
  2409. maxLength = "1024";
  2410. };
  2411. new GuiButtonCtrl(){
  2412. profile="ToolsGuiButtonProfile";
  2413. text ="Edit";
  2414. HorizSizing = "left";
  2415. VertSizing = "bottom";
  2416. position = "134 34";
  2417. Extent = "40 16";
  2418. buttonType = "PushButton";
  2419. command="MaterialEditorGui.updateTextureMap(\"light\", 1);";
  2420. };
  2421. new GuiBitmapButtonCtrl() {
  2422. canSaveDynamicFields = "0";
  2423. Enabled = "1";
  2424. isContainer = "0";
  2425. Profile = "ToolsGuiDefaultProfile";
  2426. HorizSizing = "left";
  2427. VertSizing = "bottom";
  2428. position = "177 34";
  2429. Extent = "16 16";
  2430. MinExtent = "8 2";
  2431. canSave = "1";
  2432. Visible = "1";
  2433. Command = "MaterialEditorGui.updateTextureMap(\"light\", 0);";
  2434. hovertime = "1000";
  2435. groupNum = "-1";
  2436. buttonType = "PushButton";
  2437. useMouseEvents = "0";
  2438. bitmap = "tools/gui/images/delete";
  2439. };
  2440. };
  2441. new GuiBitmapCtrl(){
  2442. position="6 303";
  2443. extent ="175 2";
  2444. HorizSizing = "width";
  2445. bitmap ="tools/gui/images/separator-v";
  2446. };
  2447. new GuiContainer(){ // tone Map
  2448. profile="ToolsGuiDefaultProfile";
  2449. isContainer = "1";
  2450. position = "6 307";
  2451. Extent = "185 52";
  2452. HorizSizing = "width";
  2453. new GuiBitmapCtrl() {
  2454. canSaveDynamicFields = "0";
  2455. internalName = "toneMapDisplayBitmap";
  2456. Enabled = "1";
  2457. isContainer = "0";
  2458. Profile = "ToolsGuiDefaultProfile";
  2459. HorizSizing = "right";
  2460. VertSizing = "bottom";
  2461. position = "1 1";
  2462. Extent = "48 48";
  2463. MinExtent = "8 2";
  2464. canSave = "1";
  2465. Visible = "1";
  2466. hovertime = "1000";
  2467. bitmap = "tools/materialEditor/gui/unknownImage";
  2468. wrap = "0";
  2469. };
  2470. new GuiTextCtrl() {
  2471. canSaveDynamicFields = "0";
  2472. Enabled = "1";
  2473. isContainer = "0";
  2474. Profile = "EditorTextProfile";
  2475. HorizSizing = "right";
  2476. VertSizing = "bottom";
  2477. position = "56 -3";
  2478. Extent = "72 18";
  2479. MinExtent = "8 2";
  2480. canSave = "1";
  2481. Visible = "1";
  2482. hovertime = "1000";
  2483. Margin = "0 0 0 0";
  2484. Padding = "0 0 0 0";
  2485. AnchorTop = "1";
  2486. AnchorBottom = "0";
  2487. AnchorLeft = "1";
  2488. AnchorRight = "0";
  2489. text = "Tone Map";
  2490. maxLength = "1024";
  2491. };
  2492. new GuiBitmapButtonCtrl() {
  2493. canSaveDynamicFields = "0";
  2494. Enabled = "1";
  2495. isContainer = "0";
  2496. Profile = "ToolsGuiDefaultProfile";
  2497. HorizSizing = "right";
  2498. VertSizing = "bottom";
  2499. position = "1 1";
  2500. Extent = "48 48";
  2501. MinExtent = "8 2";
  2502. canSave = "1";
  2503. Visible = "1";
  2504. Command = "MaterialEditorGui.updateTextureMap(\"tone\", 1);";
  2505. tooltipprofile = "ToolsGuiDefaultProfile";
  2506. ToolTip = "Change the active Tone Map for this layer.";
  2507. hovertime = "1000";
  2508. groupNum = "-1";
  2509. buttonType = "PushButton";
  2510. useMouseEvents = "0";
  2511. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  2512. };
  2513. new GuiTextCtrl() {
  2514. canSaveDynamicFields = "0";
  2515. internalName = "toneMapNameText";
  2516. Enabled = "1";
  2517. isContainer = "0";
  2518. Profile = "ToolsGuiTextProfile";
  2519. HorizSizing = "width";
  2520. VertSizing = "bottom";
  2521. position = "56 16";
  2522. Extent = "143 17";
  2523. MinExtent = "8 2";
  2524. canSave = "1";
  2525. Visible = "1";
  2526. hovertime = "1000";
  2527. Margin = "0 0 0 0";
  2528. Padding = "0 0 0 0";
  2529. AnchorTop = "1";
  2530. AnchorBottom = "0";
  2531. AnchorLeft = "1";
  2532. AnchorRight = "0";
  2533. text = "None";
  2534. maxLength = "1024";
  2535. };
  2536. new GuiButtonCtrl(){
  2537. profile="ToolsGuiButtonProfile";
  2538. text ="Edit";
  2539. HorizSizing = "left";
  2540. VertSizing = "bottom";
  2541. position = "134 34";
  2542. Extent = "40 16";
  2543. buttonType = "PushButton";
  2544. command="MaterialEditorGui.updateTextureMap(\"tone\", 1);";
  2545. };
  2546. new GuiBitmapButtonCtrl() {
  2547. canSaveDynamicFields = "0";
  2548. Enabled = "1";
  2549. isContainer = "0";
  2550. Profile = "ToolsGuiDefaultProfile";
  2551. HorizSizing = "left";
  2552. VertSizing = "bottom";
  2553. position = "177 34";
  2554. Extent = "16 16";
  2555. MinExtent = "8 2";
  2556. canSave = "1";
  2557. Visible = "1";
  2558. Command = "MaterialEditorGui.updateTextureMap(\"tone\", 0);";
  2559. hovertime = "1000";
  2560. groupNum = "-1";
  2561. buttonType = "PushButton";
  2562. useMouseEvents = "0";
  2563. bitmap = "tools/gui/images/delete";
  2564. };
  2565. };
  2566. };
  2567. };
  2568. new GuiRolloutCtrl(accumulationPropertiesRollout) {
  2569. class = "BehaviorQuickEditRollout";
  2570. superclass = LBQuickEditRollout;
  2571. Profile = "GuiRolloutProfile";
  2572. HorizSizing = "width";
  2573. VertSizing = "bottom";
  2574. Position = "0 0";
  2575. Extent = "195 0";
  2576. Caption = "Accumulation Properties";
  2577. Expanded = false;
  2578. Margin = "-1 0 0 0";
  2579. DragSizable = false;
  2580. container = true;
  2581. parentRollout = %this.rollout;
  2582. object = %behavior;
  2583. new GuiStackControl() {
  2584. StackingType = "Vertical";
  2585. HorizStacking = "Left to Right";
  2586. VertStacking = "Top to Bottom";
  2587. Padding = "0";
  2588. canSaveDynamicFields = "0";
  2589. Enabled = "1";
  2590. isContainer = "1";
  2591. Profile = "GuiDefaultProfile";
  2592. HorizSizing = "width";
  2593. VertSizing = "bottom";
  2594. Position = "1 3";
  2595. Extent = "195 16";
  2596. MinExtent = "16 16";
  2597. canSave = "1";
  2598. isDecoy = "0";
  2599. Visible = "1";
  2600. tooltipprofile = "GuiToolTipProfile";
  2601. hovertime = "1000";
  2602. new GuiContainer(){ // enable/disable
  2603. profile="GuiTransparentProfile";
  2604. isContainer = "1";
  2605. position = "0 0";
  2606. Extent = "195 24";
  2607. HorizSizing = "width";
  2608. new GuiCheckBoxCtrl() {
  2609. canSaveDynamicFields = "0";
  2610. internalName = "accuCheckbox";
  2611. Enabled = "1";
  2612. isContainer = "0";
  2613. Profile = "ToolsGuiCheckBoxProfile";
  2614. HorizSizing = "right";
  2615. VertSizing = "bottom";
  2616. position = "8 7";
  2617. Extent = "57 16";
  2618. MinExtent = "8 2";
  2619. canSave = "1";
  2620. Visible = "1";
  2621. Command = "MaterialEditorGui.updateAccuCheckbox($ThisControl.getValue());";
  2622. tooltipprofile = "ToolsGuiDefaultProfile";
  2623. ToolTip = "Enables the use of Pixel Specular for this layer.";
  2624. hovertime = "1000";
  2625. text = "Enable";
  2626. groupNum = "-1";
  2627. buttonType = "ToggleButton";
  2628. useMouseEvents = "0";
  2629. useInactiveState = "0";
  2630. };
  2631. };
  2632. new GuiContainer(){ // scale
  2633. profile="GuiTransparentProfile";
  2634. isContainer = "1";
  2635. position = "0 0";
  2636. Extent = "195 24";
  2637. HorizSizing = "width";
  2638. new GuiTextCtrl() {
  2639. canSaveDynamicFields = "0";
  2640. Enabled = "1";
  2641. isContainer = "0";
  2642. Profile = "ToolsGuiTextRightProfile";
  2643. HorizSizing = "right";
  2644. VertSizing = "bottom";
  2645. position = "8 3";
  2646. Extent = "54 16";
  2647. MinExtent = "8 2";
  2648. canSave = "1";
  2649. Visible = "1";
  2650. hovertime = "1000";
  2651. Margin = "0 0 0 0";
  2652. Padding = "0 0 0 0";
  2653. AnchorTop = "1";
  2654. AnchorBottom = "0";
  2655. AnchorLeft = "1";
  2656. AnchorRight = "0";
  2657. text = "Scale";
  2658. maxLength = "1024";
  2659. };
  2660. new GuiControl() {
  2661. class = "AggregateControl";
  2662. position = "70 3";
  2663. Extent = "96 20";
  2664. new GuiSliderCtrl() {
  2665. canSaveDynamicFields = "0";
  2666. internalName = "accuScaleSlider";
  2667. Enabled = "1";
  2668. isContainer = "0";
  2669. Profile = "GuiSliderProfile";
  2670. HorizSizing = "right";
  2671. VertSizing = "bottom";
  2672. position = "0 2";
  2673. Extent = "61 14";
  2674. MinExtent = "8 2";
  2675. canSave = "1";
  2676. Visible = "1";
  2677. Command = "MaterialEditorGui.updateActiveMaterial(\"accuScale[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  2678. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuScale[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  2679. tooltipprofile = "GuiDefaultProfile";
  2680. ToolTip = "Sets the scale of the accu map.";
  2681. hovertime = "1000";
  2682. range = "0.03125 32";
  2683. ticks = "0";
  2684. value = "1";
  2685. };
  2686. new GuiTextEditCtrl() {
  2687. canSaveDynamicFields = "0";
  2688. internalName = "accuScaleTextEdit";
  2689. Enabled = "1";
  2690. isContainer = "0";
  2691. Profile = "ToolsGuiTextEditProfile";
  2692. HorizSizing = "right";
  2693. VertSizing = "bottom";
  2694. position = "64 0";
  2695. Extent = "29 18";
  2696. MinExtent = "8 2";
  2697. canSave = "1";
  2698. Visible = "1";
  2699. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuScale[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2700. hovertime = "1000";
  2701. AnchorTop = "1";
  2702. AnchorBottom = "0";
  2703. AnchorLeft = "1";
  2704. AnchorRight = "0";
  2705. text = "1";
  2706. maxLength = "3";
  2707. };
  2708. };
  2709. };
  2710. new GuiContainer(){ // direction
  2711. profile="GuiTransparentProfile";
  2712. isContainer = "1";
  2713. position = "0 0";
  2714. Extent = "195 24";
  2715. HorizSizing = "width";
  2716. new GuiTextCtrl() {
  2717. canSaveDynamicFields = "0";
  2718. Enabled = "1";
  2719. isContainer = "0";
  2720. Profile = "ToolsGuiTextRightProfile";
  2721. HorizSizing = "right";
  2722. VertSizing = "bottom";
  2723. position = "8 3";
  2724. Extent = "54 16";
  2725. MinExtent = "8 2";
  2726. canSave = "1";
  2727. Visible = "1";
  2728. hovertime = "1000";
  2729. Margin = "0 0 0 0";
  2730. Padding = "0 0 0 0";
  2731. AnchorTop = "1";
  2732. AnchorBottom = "0";
  2733. AnchorLeft = "1";
  2734. AnchorRight = "0";
  2735. text = "Direction";
  2736. maxLength = "1024";
  2737. };
  2738. new GuiControl() {
  2739. class = "AggregateControl";
  2740. position = "70 3";
  2741. Extent = "96 20";
  2742. new GuiSliderCtrl() {
  2743. canSaveDynamicFields = "0";
  2744. internalName = "accuDirectionSlider";
  2745. Enabled = "1";
  2746. isContainer = "0";
  2747. Profile = "GuiSliderProfile";
  2748. HorizSizing = "right";
  2749. VertSizing = "bottom";
  2750. position = "0 2";
  2751. Extent = "61 14";
  2752. MinExtent = "8 2";
  2753. canSave = "1";
  2754. Visible = "1";
  2755. Command = "MaterialEditorGui.updateActiveMaterial(\"accuDirection[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  2756. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuDirection[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  2757. tooltipprofile = "GuiDefaultProfile";
  2758. ToolTip = "Sets the direction of the accu map.";
  2759. hovertime = "1000";
  2760. range = "-1 1";
  2761. ticks = "0";
  2762. value = "-1";
  2763. };
  2764. new GuiTextEditCtrl() {
  2765. canSaveDynamicFields = "0";
  2766. internalName = "accuDirectionTextEdit";
  2767. Enabled = "1";
  2768. isContainer = "0";
  2769. Profile = "ToolsGuiTextEditProfile";
  2770. HorizSizing = "right";
  2771. VertSizing = "bottom";
  2772. position = "64 0";
  2773. Extent = "29 18";
  2774. MinExtent = "8 2";
  2775. canSave = "1";
  2776. Visible = "1";
  2777. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuDirection[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2778. hovertime = "1000";
  2779. AnchorTop = "1";
  2780. AnchorBottom = "0";
  2781. AnchorLeft = "1";
  2782. AnchorRight = "0";
  2783. text = "-1";
  2784. maxLength = "3";
  2785. };
  2786. };
  2787. };
  2788. new GuiContainer(){ // strength
  2789. profile="GuiTransparentProfile";
  2790. isContainer = "1";
  2791. position = "0 0";
  2792. Extent = "195 24";
  2793. HorizSizing = "width";
  2794. new GuiTextCtrl() {
  2795. canSaveDynamicFields = "0";
  2796. Enabled = "1";
  2797. isContainer = "0";
  2798. Profile = "ToolsGuiTextRightProfile";
  2799. HorizSizing = "right";
  2800. VertSizing = "bottom";
  2801. position = "8 3";
  2802. Extent = "54 16";
  2803. MinExtent = "8 2";
  2804. canSave = "1";
  2805. Visible = "1";
  2806. hovertime = "1000";
  2807. Margin = "0 0 0 0";
  2808. Padding = "0 0 0 0";
  2809. AnchorTop = "1";
  2810. AnchorBottom = "0";
  2811. AnchorLeft = "1";
  2812. AnchorRight = "0";
  2813. text = "Strength";
  2814. maxLength = "1024";
  2815. };
  2816. new GuiControl() {
  2817. class = "AggregateControl";
  2818. position = "70 3";
  2819. Extent = "96 20";
  2820. new GuiSliderCtrl() {
  2821. canSaveDynamicFields = "0";
  2822. internalName = "accuStrengthSlider";
  2823. Enabled = "1";
  2824. isContainer = "0";
  2825. Profile = "GuiSliderProfile";
  2826. HorizSizing = "right";
  2827. VertSizing = "bottom";
  2828. position = "0 2";
  2829. Extent = "61 14";
  2830. MinExtent = "8 2";
  2831. canSave = "1";
  2832. Visible = "1";
  2833. Command = "MaterialEditorGui.updateActiveMaterial(\"accuStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  2834. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  2835. tooltipprofile = "GuiDefaultProfile";
  2836. ToolTip = "Sets the strength of the accu map.";
  2837. hovertime = "1000";
  2838. range = "0 1";
  2839. ticks = "0";
  2840. value = "0.6";
  2841. };
  2842. new GuiTextEditCtrl() {
  2843. canSaveDynamicFields = "0";
  2844. internalName = "accuStrengthTextEdit";
  2845. Enabled = "1";
  2846. isContainer = "0";
  2847. Profile = "ToolsGuiTextEditProfile";
  2848. HorizSizing = "right";
  2849. VertSizing = "bottom";
  2850. position = "64 0";
  2851. Extent = "29 18";
  2852. MinExtent = "8 2";
  2853. canSave = "1";
  2854. Visible = "1";
  2855. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2856. hovertime = "1000";
  2857. AnchorTop = "1";
  2858. AnchorBottom = "0";
  2859. AnchorLeft = "1";
  2860. AnchorRight = "0";
  2861. text = "0.6";
  2862. maxLength = "3";
  2863. };
  2864. };
  2865. };
  2866. new GuiContainer(){ // coverage
  2867. profile="GuiTransparentProfile";
  2868. isContainer = "1";
  2869. position = "0 0";
  2870. Extent = "195 24";
  2871. HorizSizing = "width";
  2872. new GuiTextCtrl() {
  2873. canSaveDynamicFields = "0";
  2874. Enabled = "1";
  2875. isContainer = "0";
  2876. Profile = "ToolsGuiTextRightProfile";
  2877. HorizSizing = "right";
  2878. VertSizing = "bottom";
  2879. position = "8 3";
  2880. Extent = "54 16";
  2881. MinExtent = "8 2";
  2882. canSave = "1";
  2883. Visible = "1";
  2884. hovertime = "1000";
  2885. Margin = "0 0 0 0";
  2886. Padding = "0 0 0 0";
  2887. AnchorTop = "1";
  2888. AnchorBottom = "0";
  2889. AnchorLeft = "1";
  2890. AnchorRight = "0";
  2891. text = "Coverage";
  2892. maxLength = "1024";
  2893. };
  2894. new GuiControl() {
  2895. class = "AggregateControl";
  2896. position = "70 3";
  2897. Extent = "96 20";
  2898. new GuiSliderCtrl() {
  2899. canSaveDynamicFields = "0";
  2900. internalName = "accuCoverageSlider";
  2901. Enabled = "1";
  2902. isContainer = "0";
  2903. Profile = "GuiSliderProfile";
  2904. HorizSizing = "right";
  2905. VertSizing = "bottom";
  2906. position = "0 2";
  2907. Extent = "61 14";
  2908. MinExtent = "8 2";
  2909. canSave = "1";
  2910. Visible = "1";
  2911. Command = "MaterialEditorGui.updateActiveMaterial(\"accuCoverage[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  2912. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuCoverage[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  2913. tooltipprofile = "GuiDefaultProfile";
  2914. ToolTip = "Sets the coverage of the accu map.";
  2915. hovertime = "1000";
  2916. range = "0 2";
  2917. ticks = "0";
  2918. value = "1";
  2919. };
  2920. new GuiTextEditCtrl() {
  2921. canSaveDynamicFields = "0";
  2922. internalName = "accuCoverageTextEdit";
  2923. Enabled = "1";
  2924. isContainer = "0";
  2925. Profile = "ToolsGuiTextEditProfile";
  2926. HorizSizing = "right";
  2927. VertSizing = "bottom";
  2928. position = "64 0";
  2929. Extent = "29 18";
  2930. MinExtent = "8 2";
  2931. canSave = "1";
  2932. Visible = "1";
  2933. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuCoverage[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2934. hovertime = "1000";
  2935. AnchorTop = "1";
  2936. AnchorBottom = "0";
  2937. AnchorLeft = "1";
  2938. AnchorRight = "0";
  2939. text = "1";
  2940. maxLength = "3";
  2941. };
  2942. };
  2943. };
  2944. new GuiContainer(){ // specular
  2945. profile="GuiTransparentProfile";
  2946. isContainer = "1";
  2947. position = "0 0";
  2948. Extent = "195 24";
  2949. HorizSizing = "width";
  2950. new GuiTextCtrl() {
  2951. canSaveDynamicFields = "0";
  2952. Enabled = "1";
  2953. isContainer = "0";
  2954. Profile = "ToolsGuiTextRightProfile";
  2955. HorizSizing = "right";
  2956. VertSizing = "bottom";
  2957. position = "8 3";
  2958. Extent = "54 16";
  2959. MinExtent = "8 2";
  2960. canSave = "1";
  2961. Visible = "1";
  2962. hovertime = "1000";
  2963. Margin = "0 0 0 0";
  2964. Padding = "0 0 0 0";
  2965. AnchorTop = "1";
  2966. AnchorBottom = "0";
  2967. AnchorLeft = "1";
  2968. AnchorRight = "0";
  2969. text = "Specular scale";
  2970. maxLength = "1024";
  2971. };
  2972. new GuiControl() {
  2973. class = "AggregateControl";
  2974. position = "70 3";
  2975. Extent = "96 20";
  2976. new GuiSliderCtrl() {
  2977. canSaveDynamicFields = "0";
  2978. internalName = "accuSpecularSlider";
  2979. Enabled = "1";
  2980. isContainer = "0";
  2981. Profile = "GuiSliderProfile";
  2982. HorizSizing = "right";
  2983. VertSizing = "bottom";
  2984. position = "0 2";
  2985. Extent = "61 14";
  2986. MinExtent = "8 2";
  2987. canSave = "1";
  2988. Visible = "1";
  2989. Command = "MaterialEditorGui.updateActiveMaterial(\"accuSpecular[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  2990. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuSpecular[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  2991. tooltipprofile = "GuiDefaultProfile";
  2992. ToolTip = "Sets the specular scale over the accu map.";
  2993. hovertime = "1000";
  2994. range = "0 2";
  2995. ticks = "0";
  2996. value = "1";
  2997. };
  2998. new GuiTextEditCtrl() {
  2999. canSaveDynamicFields = "0";
  3000. internalName = "accuSpecularTextEdit";
  3001. Enabled = "1";
  3002. isContainer = "0";
  3003. Profile = "ToolsGuiTextEditProfile";
  3004. HorizSizing = "right";
  3005. VertSizing = "bottom";
  3006. position = "64 0";
  3007. Extent = "29 18";
  3008. MinExtent = "8 2";
  3009. canSave = "1";
  3010. Visible = "1";
  3011. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuSpecular[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  3012. hovertime = "1000";
  3013. AnchorTop = "1";
  3014. AnchorBottom = "0";
  3015. AnchorLeft = "1";
  3016. AnchorRight = "0";
  3017. text = "1";
  3018. maxLength = "3";
  3019. };
  3020. };
  3021. };
  3022. };
  3023. };
  3024. new GuiRolloutCtrl(lightingPropertiesRollout) {
  3025. class = "BehaviorQuickEditRollout";
  3026. superclass = LBQuickEditRollout;
  3027. Profile = "GuiRolloutProfile";
  3028. HorizSizing = "width";
  3029. VertSizing = "bottom";
  3030. Position = "0 0";
  3031. Extent = "185 0";
  3032. Caption = "Lighting Properties";
  3033. Expanded = false;
  3034. Margin = "-1 0 0 0";
  3035. DragSizable = false;
  3036. container = true;
  3037. parentRollout = %this.rollout;
  3038. object = %behavior;
  3039. new GuiStackControl() {
  3040. StackingType = "Vertical";
  3041. HorizStacking = "Left to Right";
  3042. VertStacking = "Top to Bottom";
  3043. Padding = "0";
  3044. canSaveDynamicFields = "0";
  3045. Enabled = "1";
  3046. isContainer = "1";
  3047. Profile = "ToolsGuiDefaultProfile";
  3048. HorizSizing = "width";
  3049. VertSizing = "bottom";
  3050. Position = "1 3";
  3051. Extent = "185 16";
  3052. MinExtent = "16 16";
  3053. canSave = "1";
  3054. isDecoy = "0";
  3055. Visible = "1";
  3056. tooltipprofile = "ToolsGuiToolTipProfile";
  3057. hovertime = "1000";
  3058. new GuiContainer(){ // glow emissive
  3059. profile = "ToolsGuiTransparentProfile";
  3060. isContainer = "1";
  3061. position = "0 0";
  3062. Extent = "185 22";
  3063. HorizSizing = "width";
  3064. new GuiCheckBoxCtrl() {
  3065. canSaveDynamicFields = "0";
  3066. internalName = "glowCheckbox";
  3067. Enabled = "1";
  3068. isContainer = "0";
  3069. Profile = "ToolsGuiCheckBoxProfile";
  3070. HorizSizing = "right";
  3071. VertSizing = "bottom";
  3072. position = "70 4";
  3073. Extent = "40 16";
  3074. MinExtent = "8 2";
  3075. canSave = "1";
  3076. Visible = "1";
  3077. Command = "MaterialEditorGui.updateActiveMaterial(\"glow[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  3078. tooltipprofile = "ToolsGuiDefaultProfile";
  3079. ToolTip = "Determines if this layer will Glow or not.";
  3080. hovertime = "1000";
  3081. text = "Glow";
  3082. groupNum = "-1";
  3083. buttonType = "ToggleButton";
  3084. useMouseEvents = "0";
  3085. useInactiveState = "0";
  3086. };
  3087. new GuiCheckBoxCtrl() {
  3088. canSaveDynamicFields = "0";
  3089. internalName = "emissiveCheckbox";
  3090. Enabled = "1";
  3091. isContainer = "0";
  3092. Profile = "ToolsGuiCheckBoxProfile";
  3093. HorizSizing = "right";
  3094. VertSizing = "bottom";
  3095. position = "8 4";
  3096. Extent = "60 16";
  3097. MinExtent = "8 2";
  3098. canSave = "1";
  3099. Visible = "1";
  3100. Command = "MaterialEditorGui.updateActiveMaterial(\"emissive[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue());";
  3101. tooltipprofile = "ToolsGuiDefaultProfile";
  3102. ToolTip = "Emissive causes an object to not be affected by lights. Good for light sources.";
  3103. hovertime = "1000";
  3104. text = "Emissive";
  3105. groupNum = "-1";
  3106. buttonType = "ToggleButton";
  3107. useMouseEvents = "0";
  3108. useInactiveState = "0";
  3109. };
  3110. };
  3111. new GuiContainer(){ // parallax
  3112. profile = "ToolsGuiTransparentProfile";
  3113. isContainer = "1";
  3114. position = "0 0";
  3115. Extent = "185 24";
  3116. HorizSizing = "width";
  3117. new GuiTextCtrl() {
  3118. canSaveDynamicFields = "0";
  3119. Enabled = "1";
  3120. isContainer = "0";
  3121. Profile = "ToolsGuiTextRightProfile";
  3122. HorizSizing = "right";
  3123. VertSizing = "bottom";
  3124. position = "8 3";
  3125. Extent = "54 16";
  3126. MinExtent = "8 2";
  3127. canSave = "1";
  3128. Visible = "1";
  3129. hovertime = "1000";
  3130. Margin = "0 0 0 0";
  3131. Padding = "0 0 0 0";
  3132. AnchorTop = "1";
  3133. AnchorBottom = "0";
  3134. AnchorLeft = "1";
  3135. AnchorRight = "0";
  3136. text = "Parallax";
  3137. maxLength = "1024";
  3138. };
  3139. new GuiControl() {
  3140. class = "AggregateControl";
  3141. position = "70 3";
  3142. Extent = "115 20";
  3143. new GuiSliderCtrl() {
  3144. canSaveDynamicFields = "0";
  3145. internalName = "parallaxSlider";
  3146. Enabled = "1";
  3147. isContainer = "0";
  3148. Profile = "ToolsGuiSliderProfile";
  3149. HorizSizing = "right";
  3150. VertSizing = "bottom";
  3151. position = "0 2";
  3152. Extent = "82 15";
  3153. MinExtent = "8 2";
  3154. canSave = "1";
  3155. Visible = "1";
  3156. Command = "MaterialEditorGui.updateActiveMaterial(\"parallaxScale[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue(), true, true);";
  3157. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateActiveMaterial(\"parallaxScale[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue(), true, false);";
  3158. tooltipprofile = "ToolsGuiDefaultProfile";
  3159. ToolTip = "Parallax Scale";
  3160. hovertime = "1000";
  3161. range = "0 1";
  3162. ticks = "0";
  3163. value = "0";
  3164. };
  3165. new GuiTextEditCtrl() {
  3166. canSaveDynamicFields = "0";
  3167. internalName = "parallaxTextEdit";
  3168. Enabled = "1";
  3169. isContainer = "0";
  3170. Profile = "ToolsGuiTextEditProfile";
  3171. HorizSizing = "right";
  3172. VertSizing = "bottom";
  3173. position = "85 0";
  3174. Extent = "29 18";
  3175. MinExtent = "8 2";
  3176. canSave = "1";
  3177. Visible = "1";
  3178. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateActiveMaterial(\"parallaxScale[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue());";
  3179. hovertime = "1000";
  3180. AnchorTop = "1";
  3181. AnchorBottom = "0";
  3182. AnchorLeft = "1";
  3183. AnchorRight = "0";
  3184. text = "0";
  3185. maxLength = "3";
  3186. };
  3187. };
  3188. };
  3189. new GuiContainer(){
  3190. profile = "ToolsGuiTransparentProfile";
  3191. isContainer = "1";
  3192. position = "0 0";
  3193. Extent = "185 84";
  3194. HorizSizing = "width";
  3195. new GuiCheckBoxCtrl() {
  3196. canSaveDynamicFields = "0";
  3197. internalName = "useAnisoCheckbox";
  3198. Enabled = "1";
  3199. isContainer = "0";
  3200. Profile = "ToolsGuiCheckBoxProfile";
  3201. HorizSizing = "right";
  3202. VertSizing = "bottom";
  3203. position = "8 4";
  3204. Extent = "108 16";
  3205. MinExtent = "8 2";
  3206. canSave = "1";
  3207. Visible = "1";
  3208. Command = "MaterialEditorGui.updateActiveMaterial(\"useAnisotropic[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  3209. tooltipprofile = "ToolsGuiDefaultProfile";
  3210. ToolTip = "Enables the use of anisotropic filtering for this layer.";
  3211. hovertime = "1000";
  3212. text = "Anisotropic filtering";
  3213. groupNum = "-1";
  3214. buttonType = "ToggleButton";
  3215. useMouseEvents = "0";
  3216. useInactiveState = "0";
  3217. };
  3218. new GuiCheckBoxCtrl() {
  3219. canSaveDynamicFields = "0";
  3220. internalName = "vertLitCheckbox";
  3221. Enabled = "1";
  3222. isContainer = "0";
  3223. Profile = "ToolsGuiCheckBoxProfile";
  3224. HorizSizing = "right";
  3225. VertSizing = "bottom";
  3226. position = "8 25";
  3227. Extent = "102 16";
  3228. MinExtent = "8 2";
  3229. canSave = "1";
  3230. Visible = "1";
  3231. Command = "MaterialEditorGui.updateActiveMaterial(\"vertLit[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  3232. tooltipprofile = "ToolsGuiDefaultProfile";
  3233. ToolTip = "Enables the use of vertex lighting for this layer.";
  3234. hovertime = "1000";
  3235. text = "Vertex lit";
  3236. groupNum = "-1";
  3237. buttonType = "ToggleButton";
  3238. useMouseEvents = "0";
  3239. useInactiveState = "0";
  3240. };
  3241. new GuiCheckBoxCtrl() {
  3242. canSaveDynamicFields = "0";
  3243. internalName = "vertLitCheckbox";
  3244. Enabled = "1";
  3245. isContainer = "0";
  3246. Profile = "ToolsGuiCheckBoxProfile";
  3247. HorizSizing = "right";
  3248. VertSizing = "bottom";
  3249. position = "113 25";
  3250. Extent = "102 16";
  3251. MinExtent = "8 2";
  3252. canSave = "1";
  3253. Visible = "1";
  3254. Command = "MaterialEditorGui.updateActiveMaterial(\"vertColor[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  3255. tooltipprofile = "ToolsGuiDefaultProfile";
  3256. ToolTip = "Multiply vertex colors with diffuse colors for this layer.";
  3257. hovertime = "1000";
  3258. text = "Vertex colors";
  3259. groupNum = "-1";
  3260. buttonType = "ToggleButton";
  3261. useMouseEvents = "0";
  3262. useInactiveState = "0";
  3263. };
  3264. new GuiCheckBoxCtrl() {
  3265. canSaveDynamicFields = "0";
  3266. internalName = "subSurfaceCheckbox";
  3267. Enabled = "1";
  3268. isContainer = "0";
  3269. Profile = "ToolsGuiCheckBoxProfile";
  3270. HorizSizing = "right";
  3271. VertSizing = "bottom";
  3272. position = "8 46";
  3273. Extent = "79 16";
  3274. MinExtent = "8 2";
  3275. canSave = "1";
  3276. Visible = "1";
  3277. Command = "MaterialEditorGui.updateActiveMaterial(\"subSurface[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  3278. tooltipprofile = "ToolsGuiDefaultProfile";
  3279. ToolTip = "Enables the use of subsurface scattering for this layer.";
  3280. hovertime = "1000";
  3281. text = "Sub Surface";
  3282. groupNum = "-1";
  3283. buttonType = "ToggleButton";
  3284. useMouseEvents = "0";
  3285. useInactiveState = "0";
  3286. };
  3287. };
  3288. };
  3289. };
  3290. new GuiRolloutCtrl(materialAnimationPropertiesRollout) {
  3291. class = "BehaviorQuickEditRollout";
  3292. superclass = LBQuickEditRollout;
  3293. Profile = "GuiRolloutProfile";
  3294. HorizSizing = "width";
  3295. VertSizing = "bottom";
  3296. Position = "0 0";
  3297. Extent = "185 0";
  3298. Caption = "Animation Properties";
  3299. Expanded = false;
  3300. Margin = "-1 0 0 0";
  3301. DragSizable = false;
  3302. container = true;
  3303. parentRollout = %this.rollout;
  3304. object = %behavior;
  3305. new GuiStackControl() {
  3306. StackingType = "Vertical";
  3307. HorizStacking = "Left to Right";
  3308. VertStacking = "Top to Bottom";
  3309. Padding = "0";
  3310. canSaveDynamicFields = "0";
  3311. Enabled = "1";
  3312. isContainer = "1";
  3313. Profile = "ToolsGuiDefaultProfile";
  3314. HorizSizing = "width";
  3315. VertSizing = "bottom";
  3316. Position = "1 3";
  3317. Extent = "185 16";
  3318. MinExtent = "16 16";
  3319. canSave = "1";
  3320. isDecoy = "0";
  3321. Visible = "1";
  3322. tooltipprofile = "ToolsGuiToolTipProfile";
  3323. hovertime = "1000";
  3324. new GuiContainer(){ // Rotation Animation Properties
  3325. profile="inspectorStyleRolloutInnerProfile";
  3326. isContainer = "1";
  3327. position = "-1 96";
  3328. Extent = "185 94";
  3329. HorizSizing = "width";
  3330. new GuiCheckboxCtrl() {
  3331. canSaveDynamicFields = "0";
  3332. internalName = "RotationAnimation";
  3333. Enabled = "1";
  3334. isContainer = "0";
  3335. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  3336. HorizSizing = "right";
  3337. VertSizing = "bottom";
  3338. position = "4 -1";
  3339. Extent = "112 18";
  3340. MinExtent = "8 2";
  3341. canSave = "1";
  3342. Visible = "1";
  3343. Command = "MaterialEditorGui.updateAnimationFlags();";
  3344. hovertime = "1000";
  3345. Margin = "0 0 0 0";
  3346. Padding = "0 0 0 0";
  3347. AnchorTop = "1";
  3348. AnchorBottom = "0";
  3349. AnchorLeft = "1";
  3350. AnchorRight = "0";
  3351. text = "Rotation Animation";
  3352. maxLength = "1024";
  3353. };
  3354. new GuiControl(){
  3355. class = "AggregateControl";
  3356. position = "0 29";
  3357. Extent = "135 20";
  3358. new GuiTextCtrl(){ // u
  3359. profile = "ToolsGuiTextProfile";
  3360. HorizSizing = "right";
  3361. VertSizing = "bottom";
  3362. position = "11 1";
  3363. Extent = "12 16";
  3364. text = "U";
  3365. };
  3366. new GuiSliderCtrl() { // u
  3367. Profile = "ToolsGuiSliderProfile";
  3368. internalName = "RotationSliderU";
  3369. HorizSizing = "right";
  3370. VertSizing = "bottom";
  3371. position = "25 2";
  3372. Extent = "68 15";
  3373. Command = "MaterialEditorGui.updateRotationOffset(true, true);";
  3374. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationOffset(true, false);";
  3375. tooltipprofile = "ToolsGuiDefaultProfile";
  3376. ToolTip = "Change U Scroll Direction";
  3377. hovertime = "1000";
  3378. range = "-1 0";
  3379. ticks = "0";
  3380. value = "0";
  3381. };
  3382. new GuiTextEditCtrl(){ // u
  3383. internalName = "RotationTextEditU";
  3384. HorizSizing = "right";
  3385. VertSizing = "bottom";
  3386. position = "98 0";
  3387. Extent = "34 18";
  3388. text = "0";
  3389. Command = "$ThisControl.getParent().updateFromChild($ThisControl);";
  3390. };
  3391. };
  3392. new GuiControl() {
  3393. class = "AggregateControl";
  3394. position = "0 50";
  3395. Extent = "135 20";
  3396. new GuiTextCtrl(){ // v
  3397. profile = "ToolsGuiTextProfile";
  3398. HorizSizing = "right";
  3399. VertSizing = "bottom";
  3400. position = "11 1";
  3401. Extent = "12 16";
  3402. text = "V";
  3403. };
  3404. new GuiSliderCtrl() { // v
  3405. Profile = "ToolsGuiSliderProfile";
  3406. internalName = "RotationSliderV";
  3407. HorizSizing = "right";
  3408. VertSizing = "bottom";
  3409. position = "25 2";
  3410. Extent = "68 15";
  3411. Command = "MaterialEditorGui.updateRotationOffset(true, true);";
  3412. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationOffset(true, false);";
  3413. tooltipprofile = "ToolsGuiDefaultProfile";
  3414. ToolTip = "Change V Scroll Direction";
  3415. hovertime = "1000";
  3416. range = "-1 0";
  3417. ticks = "0";
  3418. value = "0";
  3419. };
  3420. new GuiTextEditCtrl(){ // v
  3421. internalName = "RotationTextEditV";
  3422. HorizSizing = "right";
  3423. VertSizing = "bottom";
  3424. position = "98 0";
  3425. Extent = "34 18";
  3426. text = "0";
  3427. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationOffset();";
  3428. };
  3429. };
  3430. new GuiTextCtrl(){ // Pivot Point
  3431. HorizSizing = "right";
  3432. VertSizing = "bottom";
  3433. position = "98 16";
  3434. Extent = "34 16";
  3435. text = "Pivot";
  3436. };
  3437. new GuiBitmapCtrl(){
  3438. HorizSizing = "right";
  3439. VertSizing = "bottom";
  3440. position = "136 20";
  3441. Extent = "48 48";
  3442. isContainer = true;
  3443. bitmap="";
  3444. new GuiBitmapCtrl(){
  3445. HorizSizing = "right";
  3446. VertSizing = "bottom";
  3447. position = "0 0";
  3448. Extent = "48 48";
  3449. bitmap="tools/materialEditor/gui/cubemapBtnBorder_n";
  3450. };
  3451. new GuiBitmapCtrl(){ //horizontal bar
  3452. internalName = "RotationCrosshair";
  3453. HorizSizing = "right";
  3454. VertSizing = "bottom";
  3455. position = "20 20";
  3456. Extent = "7 7";
  3457. MinExtent = "0 0";
  3458. bitmap="tools/gui/images/crosshair_blue";
  3459. };
  3460. };
  3461. new GuiControl() {
  3462. class = "AggregateControl";
  3463. position = "0 70";
  3464. Extent = "187 20";
  3465. new GuiTextCtrl(){ // Speed
  3466. profile = "ToolsGuiTextProfile";
  3467. HorizSizing = "right";
  3468. VertSizing = "bottom";
  3469. position = "11 0";
  3470. Extent = "43 16";
  3471. text = "Speed";
  3472. };
  3473. new GuiSliderCtrl() {
  3474. canSaveDynamicFields = "0";
  3475. internalName = "RotationSpeedSlider";
  3476. Enabled = "1";
  3477. isContainer = "0";
  3478. Profile = "ToolsGuiSliderProfile";
  3479. HorizSizing = "right";
  3480. VertSizing = "bottom";
  3481. position = "49 3";
  3482. Extent = "95 16";
  3483. MinExtent = "8 2";
  3484. canSave = "1";
  3485. Visible = "1";
  3486. Command = "MaterialEditorGui.updateRotationSpeed(true, true);";
  3487. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationSpeed(true, false);";
  3488. tooltipprofile = "ToolsGuiDefaultProfile";
  3489. ToolTip = "Scrolling Speed";
  3490. hovertime = "1000";
  3491. range = "-10 10";
  3492. ticks = "0";
  3493. value = "0";
  3494. };
  3495. new GuiTextEditCtrl() {
  3496. canSaveDynamicFields = "0";
  3497. internalName = "RotationSpeedTextEdit";
  3498. Enabled = "1";
  3499. isContainer = "0";
  3500. Profile = "ToolsGuiTextEditProfile";
  3501. HorizSizing = "right";
  3502. VertSizing = "bottom";
  3503. position = "150 1";
  3504. Extent = "34 18";
  3505. MinExtent = "8 2";
  3506. canSave = "1";
  3507. Visible = "1";
  3508. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationSpeed();";
  3509. hovertime = "1000";
  3510. Margin = "0 0 0 0";
  3511. Padding = "0 0 0 0";
  3512. AnchorTop = "1";
  3513. AnchorBottom = "0";
  3514. AnchorLeft = "1";
  3515. AnchorRight = "0";
  3516. text = "0";
  3517. maxLength = "1024";
  3518. historySize = "0";
  3519. password = "0";
  3520. tabComplete = "0";
  3521. sinkAllKeyEvents = "0";
  3522. password = "0";
  3523. passwordMask = "*";
  3524. };
  3525. };
  3526. };
  3527. new GuiContainer(){ // Scroll Animation Properties
  3528. profile="inspectorStyleRolloutInnerProfile";
  3529. isContainer = "1";
  3530. position = "-1 191";
  3531. Extent = "185 94";
  3532. HorizSizing = "width";
  3533. new GuiCheckboxCtrl() {
  3534. canSaveDynamicFields = "0";
  3535. internalName = "ScrollAnimation";
  3536. Enabled = "1";
  3537. isContainer = "0";
  3538. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  3539. HorizSizing = "right";
  3540. VertSizing = "bottom";
  3541. position = "4 -1";
  3542. Extent = "112 18";
  3543. MinExtent = "8 2";
  3544. canSave = "1";
  3545. Visible = "1";
  3546. hovertime = "1000";
  3547. Margin = "0 0 0 0";
  3548. Padding = "0 0 0 0";
  3549. AnchorTop = "1";
  3550. AnchorBottom = "0";
  3551. AnchorLeft = "1";
  3552. AnchorRight = "0";
  3553. Command = "MaterialEditorGui.updateAnimationFlags();";
  3554. text = "Scroll Animation";
  3555. maxLength = "1024";
  3556. };
  3557. new GuiControl(){
  3558. class = "AggregateControl";
  3559. position = "0 29";
  3560. Extent = "135 20";
  3561. new GuiTextCtrl(){ // u
  3562. profile = "ToolsGuiTextProfile";
  3563. HorizSizing = "right";
  3564. VertSizing = "bottom";
  3565. position = "11 1";
  3566. Extent = "12 16";
  3567. text = "U";
  3568. };
  3569. new GuiSliderCtrl() { // u
  3570. Profile = "ToolsGuiSliderProfile";
  3571. internalName = "ScrollSliderU";
  3572. HorizSizing = "right";
  3573. VertSizing = "bottom";
  3574. position = "25 2";
  3575. Extent = "68 15";
  3576. Command = "MaterialEditorGui.updateScrollOffset(true, true);";
  3577. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset(true, false);";
  3578. tooltipprofile = "ToolsGuiDefaultProfile";
  3579. ToolTip = "Change U Scroll Direction";
  3580. hovertime = "1000";
  3581. range = "-1 1";
  3582. ticks = "0";
  3583. value = "0";
  3584. };
  3585. new GuiTextEditCtrl(){ // u
  3586. internalName = "ScrollTextEditU";
  3587. HorizSizing = "right";
  3588. VertSizing = "bottom";
  3589. position = "98 0";
  3590. Extent = "34 18";
  3591. text = "0";
  3592. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset();";
  3593. };
  3594. };
  3595. new GuiControl() {
  3596. class = "AggregateControl";
  3597. position = "0 50";
  3598. Extent = "135 20";
  3599. new GuiTextCtrl(){ // v
  3600. profile = "ToolsGuiTextProfile";
  3601. HorizSizing = "right";
  3602. VertSizing = "bottom";
  3603. position = "11 1";
  3604. Extent = "12 16";
  3605. text = "V";
  3606. };
  3607. new GuiSliderCtrl() { // v
  3608. Profile = "ToolsGuiSliderProfile";
  3609. internalName = "ScrollSliderV";
  3610. HorizSizing = "right";
  3611. VertSizing = "bottom";
  3612. position = "25 2";
  3613. Extent = "68 15";
  3614. Command = "MaterialEditorGui.updateScrollOffset(true, true);";
  3615. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset(true, false);";
  3616. tooltipprofile = "ToolsGuiDefaultProfile";
  3617. ToolTip = "Change V Scroll Direction";
  3618. hovertime = "1000";
  3619. range = "-1 1";
  3620. ticks = "0";
  3621. value = "0";
  3622. };
  3623. new GuiTextEditCtrl(){ // v
  3624. internalName = "ScrollTextEditV";
  3625. HorizSizing = "right";
  3626. VertSizing = "bottom";
  3627. position = "98 0";
  3628. Extent = "34 18";
  3629. text = "0";
  3630. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset();";
  3631. };
  3632. };
  3633. new GuiTextCtrl(){ // Direction Offset
  3634. HorizSizing = "right";
  3635. VertSizing = "bottom";
  3636. position = "98 16";
  3637. Extent = "34 16";
  3638. text = "Offset";
  3639. };
  3640. new GuiBitmapCtrl(){
  3641. HorizSizing = "right";
  3642. VertSizing = "bottom";
  3643. position = "136 20";
  3644. Extent = "48 48";
  3645. isContainer = true;
  3646. bitmap="";
  3647. new GuiBitmapCtrl(){
  3648. HorizSizing = "right";
  3649. VertSizing = "bottom";
  3650. position = "0 0";
  3651. Extent = "48 48";
  3652. bitmap="tools/materialEditor/gui/cubemapBtnBorder_n";
  3653. };
  3654. new GuiBitmapCtrl(){ //vertical bar
  3655. HorizSizing = "right";
  3656. VertSizing = "bottom";
  3657. position = "20 20";
  3658. Extent = "7 7";
  3659. MinExtent = "7 7";
  3660. bitmap="tools/gui/images/crosshair";
  3661. };
  3662. new GuiBitmapCtrl(){ //horizontal bar
  3663. internalName = "ScrollCrosshair";
  3664. HorizSizing = "right";
  3665. VertSizing = "bottom";
  3666. position = "20 20";
  3667. Extent = "7 7";
  3668. MinExtent = "0 0";
  3669. bitmap="tools/gui/images/crosshair_blue";
  3670. };
  3671. };
  3672. new GuiControl() {
  3673. class = "AggregateControl";
  3674. position = "0 70";
  3675. Extent = "187 20";
  3676. new GuiTextCtrl(){ // Speed
  3677. profile = "ToolsGuiTextProfile";
  3678. HorizSizing = "right";
  3679. VertSizing = "bottom";
  3680. position = "11 0";
  3681. Extent = "43 16";
  3682. text = "Speed";
  3683. };
  3684. new GuiSliderCtrl() {
  3685. canSaveDynamicFields = "0";
  3686. internalName = "ScrollSpeedSlider";
  3687. Enabled = "1";
  3688. isContainer = "0";
  3689. Profile = "ToolsGuiSliderProfile";
  3690. HorizSizing = "right";
  3691. VertSizing = "bottom";
  3692. position = "49 3";
  3693. Extent = "95 16";
  3694. MinExtent = "8 2";
  3695. canSave = "1";
  3696. Visible = "1";
  3697. Command = "MaterialEditorGui.updateScrollSpeed(true, true);";
  3698. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollSpeed(true, false);";
  3699. tooltipprofile = "ToolsGuiDefaultProfile";
  3700. ToolTip = "Scrolling Speed";
  3701. hovertime = "1000";
  3702. range = "0 10";
  3703. ticks = "0";
  3704. value = "0";
  3705. };
  3706. new GuiTextEditCtrl() {
  3707. canSaveDynamicFields = "0";
  3708. internalName = "ScrollSpeedTextEdit";
  3709. Enabled = "1";
  3710. isContainer = "0";
  3711. Profile = "ToolsGuiTextEditProfile";
  3712. HorizSizing = "right";
  3713. VertSizing = "bottom";
  3714. position = "150 1";
  3715. Extent = "34 18";
  3716. MinExtent = "8 2";
  3717. canSave = "1";
  3718. Visible = "1";
  3719. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollSpeed();";
  3720. hovertime = "1000";
  3721. Margin = "0 0 0 0";
  3722. Padding = "0 0 0 0";
  3723. AnchorTop = "1";
  3724. AnchorBottom = "0";
  3725. AnchorLeft = "1";
  3726. AnchorRight = "0";
  3727. text = "0";
  3728. maxLength = "1024";
  3729. historySize = "0";
  3730. password = "0";
  3731. tabComplete = "0";
  3732. sinkAllKeyEvents = "0";
  3733. password = "0";
  3734. passwordMask = "*";
  3735. };
  3736. };
  3737. };
  3738. new GuiContainer(){ // Wave Animation Properties
  3739. profile="inspectorStyleRolloutInnerProfile";
  3740. isContainer = "1";
  3741. position = "-1 287";
  3742. Extent = "185 85";
  3743. HorizSizing = "width";
  3744. new GuiCheckboxCtrl() {
  3745. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  3746. internalName = "WaveAnimation";
  3747. HorizSizing = "right";
  3748. VertSizing = "bottom";
  3749. position = "4 -1";
  3750. Extent = "155 16";
  3751. MinExtent = "8 2";
  3752. text = " Wave Animation";
  3753. Command = "MaterialEditorGui.updateAnimationFlags();";
  3754. groupNum = "-1";
  3755. };
  3756. new GuiCheckboxCtrl() {
  3757. Profile = "ToolsGuiCheckBoxProfile";
  3758. internalName = "ScaleAnimation";
  3759. HorizSizing = "right";
  3760. VertSizing = "bottom";
  3761. position = "139 24";
  3762. Extent = "45 16";
  3763. MinExtent = "8 2";
  3764. text = "Scale";
  3765. Command = "MaterialEditorGui.updateAnimationFlags();";
  3766. groupNum = "-1";
  3767. };
  3768. new GuiTextCtrl() {
  3769. Profile = "ToolsGuiDefaultProfile";
  3770. HorizSizing = "right";
  3771. VertSizing = "bottom";
  3772. position = "10 22";
  3773. Extent = "59 16";
  3774. text = " Wave Type";
  3775. };
  3776. new GuiContainer(){ // Wave Radio Button container
  3777. profile = "ToolsGuiDefaultProfile";
  3778. internalName = "WaveButtonContainer";
  3779. position = "72 25";
  3780. Extent = "49 13";
  3781. isContainer = "1";
  3782. new GuiBitmapButtonCtrl(){
  3783. profile = "ToolsGuiDefaultProfile";
  3784. buttonType = "RadioButton";
  3785. position = "1 0";
  3786. Extent = "13 13";
  3787. bitmap = "tools/materialEditor/gui/wav-sine";
  3788. command = "MaterialEditorGui.updateWaveType();";
  3789. tooltip="Sine Wave";
  3790. hovertime = "1000";
  3791. groupNum = "0";
  3792. waveType = "Sin";
  3793. };
  3794. new GuiBitmapButtonCtrl(){
  3795. profile = "ToolsGuiDefaultProfile";
  3796. buttonType = "RadioButton";
  3797. position = "17 0";
  3798. Extent = "13 13";
  3799. bitmap = "tools/materialEditor/gui/wav-triangle";
  3800. command = "MaterialEditorGui.updateWaveType();";
  3801. tooltip="Triangle Wave";
  3802. hovertime = "1000";
  3803. groupNum = "0";
  3804. waveType = "Triangle";
  3805. };
  3806. new GuiBitmapButtonCtrl(){
  3807. profile = "ToolsGuiDefaultProfile";
  3808. buttonType = "RadioButton";
  3809. position = "33 0";
  3810. Extent = "13 13";
  3811. bitmap = "tools/materialEditor/gui/wav-square";
  3812. command = "MaterialEditorGui.updateWaveType();";
  3813. tooltip="Square Wave";
  3814. hovertime = "1000";
  3815. groupNum = "0";
  3816. waveType = "Square";
  3817. };
  3818. };
  3819. new GuiControl() {
  3820. class = "AggregateControl";
  3821. position = "0 61";
  3822. Extent = "187 20";
  3823. new GuiTextCtrl() {
  3824. Profile = "ToolsGuiDefaultProfile";
  3825. HorizSizing = "right";
  3826. VertSizing = "bottom";
  3827. position = "16 1";
  3828. Extent = "64 16";
  3829. text = "Frequency";
  3830. };
  3831. new GuiTextEditCtrl() { // frequence
  3832. canSaveDynamicFields = "0";
  3833. internalName = "WaveTextEditFreq";
  3834. Enabled = "1";
  3835. isContainer = "0";
  3836. Profile = "ToolsGuiTextEditProfile";
  3837. HorizSizing = "right";
  3838. VertSizing = "bottom";
  3839. position = "150 1";
  3840. Extent = "34 18";
  3841. MinExtent = "8 2";
  3842. canSave = "1";
  3843. Visible = "1";
  3844. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveFreq();";
  3845. hovertime = "1000";
  3846. Margin = "0 0 0 0";
  3847. Padding = "0 0 0 0";
  3848. AnchorTop = "1";
  3849. AnchorBottom = "0";
  3850. AnchorLeft = "1";
  3851. AnchorRight = "0";
  3852. text = "0";
  3853. maxLength = "1024";
  3854. historySize = "0";
  3855. password = "0";
  3856. tabComplete = "0";
  3857. sinkAllKeyEvents = "0";
  3858. password = "0";
  3859. passwordMask = "*";
  3860. };
  3861. new GuiSliderCtrl() { // freqency
  3862. canSaveDynamicFields = "0";
  3863. internalName = "WaveSliderFreq";
  3864. Enabled = "1";
  3865. isContainer = "0";
  3866. Profile = "ToolsGuiSliderProfile";
  3867. HorizSizing = "right";
  3868. VertSizing = "bottom";
  3869. position = "72 3";
  3870. Extent = "74 16";
  3871. MinExtent = "8 2";
  3872. canSave = "1";
  3873. Visible = "1";
  3874. Command = "MaterialEditorGui.updateWaveFreq(true, true);";
  3875. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveFreq(true, false);";
  3876. tooltipprofile = "ToolsGuiDefaultProfile";
  3877. ToolTip = "Changes Wave Frequency";
  3878. hovertime = "1000";
  3879. range = "0 10";
  3880. ticks = "0";
  3881. value = "0";
  3882. };
  3883. };
  3884. new GuiControl() {
  3885. class = "AggregateControl";
  3886. position = "0 40";
  3887. Extent = "187 20";
  3888. new GuiTextCtrl() {
  3889. Profile = "ToolsGuiDefaultProfile";
  3890. HorizSizing = "right";
  3891. VertSizing = "bottom";
  3892. position = "21 1";
  3893. Extent = "64 16";
  3894. text = "Amplitude";
  3895. };
  3896. new GuiTextEditCtrl() { // amplitude
  3897. Profile = "ToolsGuiTextEditProfile";
  3898. internalName = "WaveTextEditAmp";
  3899. HorizSizing = "right";
  3900. VertSizing = "bottom";
  3901. position = "150 1";
  3902. Extent = "34 18";
  3903. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveAmp();";
  3904. hovertime = "1000";
  3905. text = "0";
  3906. };
  3907. new GuiSliderCtrl() { // amplitude
  3908. canSaveDynamicFields = "0";
  3909. internalName = "WaveSliderAmp";
  3910. Enabled = "1";
  3911. isContainer = "0";
  3912. Profile = "ToolsGuiSliderProfile";
  3913. HorizSizing = "right";
  3914. VertSizing = "bottom";
  3915. position = "72 3";
  3916. Extent = "74 16";
  3917. MinExtent = "8 2";
  3918. canSave = "1";
  3919. Visible = "1";
  3920. Command = "MaterialEditorGui.updateWaveAmp(true, true);";
  3921. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveAmp(true, false);";
  3922. tooltipprofile = "ToolsGuiDefaultProfile";
  3923. ToolTip = "Changes Wave Amplitude";
  3924. hovertime = "1000";
  3925. range = "0 1";
  3926. ticks = "0";
  3927. value = "0";
  3928. };
  3929. };
  3930. };
  3931. new GuiContainer(){ // image Sequence Animation Properties
  3932. profile="inspectorStyleRolloutInnerProfile";
  3933. isContainer = "1";
  3934. position = "-1 373";
  3935. Extent = "185 66";
  3936. HorizSizing = "width";
  3937. new GuiCheckboxCtrl() {
  3938. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  3939. internalName = "SequenceAnimation";
  3940. HorizSizing = "right";
  3941. VertSizing = "bottom";
  3942. position = "4 0";
  3943. Extent = "130 16";
  3944. MinExtent = "8 2";
  3945. text = "Image Sequence";
  3946. Command = "MaterialEditorGui.updateAnimationFlags();";
  3947. groupNum = "-1";
  3948. };
  3949. new GuiControl() {
  3950. class = "AggregateControl";
  3951. position = "0 21";
  3952. Extent = "187 20";
  3953. new GuiTextCtrl() {
  3954. Profile = "ToolsGuiDefaultProfile";
  3955. HorizSizing = "right";
  3956. VertSizing = "bottom";
  3957. position = "5 1";
  3958. Extent = "64 16";
  3959. text = "Frames / Sec";
  3960. };
  3961. new GuiTextEditCtrl() {
  3962. canSaveDynamicFields = "0";
  3963. internalName = "SequenceTextEditFPS";
  3964. Enabled = "1";
  3965. isContainer = "0";
  3966. Profile = "ToolsGuiTextEditProfile";
  3967. HorizSizing = "right";
  3968. VertSizing = "bottom";
  3969. position = "150 1";
  3970. Extent = "34 18";
  3971. MinExtent = "8 2";
  3972. canSave = "1";
  3973. Visible = "1";
  3974. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceFPS();";
  3975. hovertime = "1000";
  3976. Margin = "0 0 0 0";
  3977. Padding = "0 0 0 0";
  3978. AnchorTop = "1";
  3979. AnchorBottom = "0";
  3980. AnchorLeft = "1";
  3981. AnchorRight = "0";
  3982. text = "0";
  3983. maxLength = "1024";
  3984. };
  3985. new GuiSliderCtrl() {
  3986. canSaveDynamicFields = "0";
  3987. internalName = "SequenceSliderFPS";
  3988. Enabled = "1";
  3989. isContainer = "0";
  3990. Profile = "ToolsGuiSliderProfile";
  3991. HorizSizing = "right";
  3992. VertSizing = "bottom";
  3993. position = "72 3";
  3994. Extent = "74 16";
  3995. MinExtent = "8 2";
  3996. canSave = "1";
  3997. Visible = "1";
  3998. Command = "MaterialEditorGui.updateSequenceFPS(true, true);";
  3999. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceFPS(true, false);";
  4000. tooltipprofile = "ToolsGuiDefaultProfile";
  4001. ToolTip = "How many frames to display per second.";
  4002. hovertime = "1000";
  4003. range = "0 30";
  4004. ticks = "0";
  4005. value = "0";
  4006. };
  4007. };
  4008. new GuiControl() {
  4009. class = "AggregateControl";
  4010. position = "0 42";
  4011. Extent = "187 20";
  4012. new GuiTextCtrl() {
  4013. Profile = "ToolsGuiDefaultProfile";
  4014. HorizSizing = "right";
  4015. VertSizing = "bottom";
  4016. position = "33 1";
  4017. Extent = "43 16";
  4018. text = "Frames";
  4019. };
  4020. new GuiTextEditCtrl() { // size
  4021. Profile = "ToolsGuiTextEditProfile";
  4022. internalName = "SequenceTextEditSSS";
  4023. HorizSizing = "right";
  4024. VertSizing = "bottom";
  4025. position = "150 1";
  4026. Extent = "34 18";
  4027. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceSSS();";
  4028. hovertime = "1000";
  4029. text = "0";
  4030. };
  4031. new GuiSliderCtrl() { //size
  4032. canSaveDynamicFields = "0";
  4033. internalName = "SequenceSliderSSS";
  4034. Enabled = "1";
  4035. isContainer = "0";
  4036. Profile = "ToolsGuiSliderProfile";
  4037. HorizSizing = "right";
  4038. VertSizing = "bottom";
  4039. position = "72 3";
  4040. Extent = "74 16";
  4041. MinExtent = "8 2";
  4042. canSave = "1";
  4043. Visible = "1";
  4044. Command = "MaterialEditorGui.updateSequenceSSS(true, true);";
  4045. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceSSS(true, false);";
  4046. tooltipprofile = "ToolsGuiDefaultProfile";
  4047. ToolTip = "How many frames in the sequence.";
  4048. hovertime = "1000";
  4049. range = "0 100";
  4050. ticks = "0";
  4051. value = "0";
  4052. };
  4053. };
  4054. };
  4055. };
  4056. };
  4057. new GuiRolloutCtrl(materialAdvancedPropertiesRollout) { // Advanced Properties Group
  4058. class = "BehaviorQuickEditRollout";
  4059. superclass = LBQuickEditRollout;
  4060. Profile = "GuiRolloutProfile";
  4061. HorizSizing = "width";
  4062. VertSizing = "bottom";
  4063. Position = "0 0";
  4064. Extent = "202 0";
  4065. Caption = "Advanced (all layers)";
  4066. Expanded = false;
  4067. Margin = "4 4 4 0";
  4068. DragSizable = false;
  4069. container = true;
  4070. parentRollout = %this.rollout;
  4071. object = %behavior;
  4072. new GuiStackControl() {
  4073. StackingType = "Vertical";
  4074. HorizStacking = "Left to Right";
  4075. VertStacking = "Top to Bottom";
  4076. Padding = "0";
  4077. canSaveDynamicFields = "0";
  4078. Enabled = "1";
  4079. isContainer = "1";
  4080. Profile = "ToolsGuiDefaultProfile";
  4081. HorizSizing = "width";
  4082. VertSizing = "bottom";
  4083. Position = "1 3";
  4084. Extent = "202 16";
  4085. new GuiContainer(){ // Transparentcy Properties
  4086. Profile = "ToolsGuiDefaultProfile";
  4087. isContainer = "1";
  4088. HorizSizing = "width";
  4089. VertSizing = "bottom";
  4090. Position = "0 0";
  4091. Extent = "210 89";
  4092. new GuiPopUpMenuCtrl() {
  4093. internalName = "blendingTypePopUp";
  4094. canSaveDynamicFields = "0";
  4095. Enabled = "1";
  4096. isContainer = "0";
  4097. Profile = "ToolsGuiPopUpMenuProfile";
  4098. HorizSizing = "width";
  4099. VertSizing = "bottom";
  4100. position = "3 2";
  4101. Extent = "83 18";
  4102. MinExtent = "8 2";
  4103. canSave = "1";
  4104. Visible = "1";
  4105. Command = "MaterialEditorGui.updateActiveMaterial(\"translucentBlendOp\",$ThisControl.getValue());";
  4106. ToolTip = "Determines the type of blending to be applied on the transparent object.";
  4107. hovertime = "1000";
  4108. Margin = "0 0 0 0";
  4109. Padding = "0 0 0 0";
  4110. AnchorTop = "1";
  4111. AnchorBottom = "0";
  4112. AnchorLeft = "1";
  4113. AnchorRight = "0";
  4114. text = "LerpAlpha";
  4115. maxLength = "1024";
  4116. maxPopupHeight = "200";
  4117. sbUsesNAColor = "0";
  4118. reverseTextList = "0";
  4119. bitmapBounds = "16 16";
  4120. };
  4121. new GuiCheckBoxCtrl() {
  4122. canSaveDynamicFields = "0";
  4123. internalName = "alphaTestCheckBox";
  4124. Enabled = "1";
  4125. isContainer = "0";
  4126. Profile = "ToolsGuiCheckBoxProfile";
  4127. HorizSizing = "right";
  4128. VertSizing = "bottom";
  4129. position = "3 39";
  4130. Extent = "106 16";
  4131. MinExtent = "8 2";
  4132. canSave = "1";
  4133. Visible = "1";
  4134. Command = "MaterialEditorGui.updateActiveMaterial(\"alphaTest\",$ThisControl.getValue());";
  4135. tooltipprofile = "ToolsGuiDefaultProfile";
  4136. ToolTip = "When enabled, caused pixels under a specific alpha threshold to get discarded rather than be computed. Only valid for transparent objects.";
  4137. hovertime = "1000";
  4138. text = "Alpha Threshold";
  4139. groupNum = "-1";
  4140. buttonType = "ToggleButton";
  4141. useMouseEvents = "0";
  4142. useInactiveState = "0";
  4143. };
  4144. new GuiControl() {
  4145. class = "AggregateControl";
  4146. HorizSizing = "width";
  4147. position = "100 39";
  4148. Extent = "187 20";
  4149. new GuiSliderCtrl() {
  4150. canSaveDynamicFields = "0";
  4151. internalName = "alphaRefSlider";
  4152. Enabled = "1";
  4153. isContainer = "0";
  4154. Profile = "ToolsGuiSliderProfile";
  4155. HorizSizing = "width";
  4156. VertSizing = "bottom";
  4157. position = "0 3";
  4158. Extent = "45 14";
  4159. MinExtent = "8 2";
  4160. canSave = "1";
  4161. Visible = "1";
  4162. Command = "MaterialEditorGui.updateActiveMaterial(\"alphaRef\",$ThisControl.getValue(), true, true );";
  4163. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"alphaRef\",$ThisControl.getValue(), true, false );";
  4164. tooltipprofile = "ToolsGuiDefaultProfile";
  4165. ToolTip = "Sets the minimum transparency value that a pixel must have to be calculated. Anything below this value will simply not be rendered at all.";
  4166. hovertime = "1000";
  4167. range = "0 255";
  4168. ticks = "0";
  4169. value = "0";
  4170. };
  4171. new GuiTextEditCtrl() {
  4172. canSaveDynamicFields = "0";
  4173. internalName = "alphaRefTextEdit";
  4174. Enabled = "1";
  4175. isContainer = "0";
  4176. Profile = "ToolsGuiTextEditProfile";
  4177. HorizSizing = "left";
  4178. VertSizing = "bottom";
  4179. position = "49 0";
  4180. Extent = "27 18";
  4181. MinExtent = "8 2";
  4182. canSave = "1";
  4183. Visible = "1";
  4184. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"alphaRef\",$ThisControl.getValue());";
  4185. hovertime = "1000";
  4186. Margin = "0 0 0 0";
  4187. Padding = "0 0 0 0";
  4188. AnchorTop = "1";
  4189. AnchorBottom = "0";
  4190. AnchorLeft = "1";
  4191. AnchorRight = "0";
  4192. text = "100";
  4193. maxLength = "1024";
  4194. };
  4195. };
  4196. new GuiCheckBoxCtrl() {
  4197. canSaveDynamicFields = "0";
  4198. internalName = "transZWriteCheckBox";
  4199. Enabled = "1";
  4200. isContainer = "0";
  4201. Profile = "ToolsGuiCheckBoxProfile";
  4202. HorizSizing = "right";
  4203. VertSizing = "bottom";
  4204. position = "3 23";
  4205. Extent = "112 16";
  4206. MinExtent = "8 2";
  4207. canSave = "1";
  4208. Visible = "1";
  4209. Command = "MaterialEditorGui.updateActiveMaterial(\"translucentZWrite\",$ThisControl.getValue());";
  4210. tooltipprofile = "ToolsGuiDefaultProfile";
  4211. ToolTip = "Can be used to help force a proper Z-Ordering when Z-Ordering issues occur. Only valid for materials with Transparency.";
  4212. hovertime = "1000";
  4213. text = "Transparent Z-Write";
  4214. groupNum = "-1";
  4215. buttonType = "ToggleButton";
  4216. useMouseEvents = "0";
  4217. useInactiveState = "0";
  4218. };
  4219. new GuiCheckBoxCtrl() {
  4220. canSaveDynamicFields = "0";
  4221. internalName = "translucentCheckbox";
  4222. Enabled = "1";
  4223. isContainer = "0";
  4224. Profile = "ToolsGuiCheckBoxProfile";
  4225. HorizSizing = "left";
  4226. VertSizing = "bottom";
  4227. position = "89 3";
  4228. Extent = "107 16";
  4229. MinExtent = "8 2";
  4230. canSave = "1";
  4231. Visible = "1";
  4232. Command = "MaterialEditorGui.updateActiveMaterial(\"translucent\",$ThisControl.getValue());";
  4233. tooltipprofile = "ToolsGuiDefaultProfile";
  4234. ToolTip = "Sets material to use transparent blending modes.";
  4235. hovertime = "1000";
  4236. text = "Transparency";
  4237. groupNum = "-1";
  4238. buttonType = "ToggleButton";
  4239. useMouseEvents = "0";
  4240. useInactiveState = "0";
  4241. };
  4242. new GuiCheckBoxCtrl() {
  4243. canSaveDynamicFields = "0";
  4244. internalName = "castShadows";
  4245. Enabled = "1";
  4246. isContainer = "0";
  4247. Profile = "ToolsGuiCheckBoxProfile";
  4248. HorizSizing = "right";
  4249. VertSizing = "bottom";
  4250. position = "3 55";
  4251. Extent = "112 16";
  4252. MinExtent = "8 2";
  4253. canSave = "1";
  4254. Visible = "1";
  4255. Command = "MaterialEditorGui.updateActiveMaterial(\"castShadows\", $ThisControl.getValue());";
  4256. tooltipprofile = "ToolsGuiDefaultProfile";
  4257. ToolTip = "Object casts shadows.";
  4258. hovertime = "1000";
  4259. text = "Cast Shadows";
  4260. groupNum = "-1";
  4261. buttonType = "ToggleButton";
  4262. useMouseEvents = "0";
  4263. useInactiveState = "0";
  4264. };
  4265. new GuiCheckBoxCtrl() {
  4266. canSaveDynamicFields = "0";
  4267. internalName = "castDynamicShadows";
  4268. Enabled = "1";
  4269. isContainer = "0";
  4270. Profile = "ToolsGuiCheckBoxProfile";
  4271. HorizSizing = "right";
  4272. VertSizing = "bottom";
  4273. position = "3 70";
  4274. Extent = "112 16";
  4275. MinExtent = "8 2";
  4276. canSave = "1";
  4277. Visible = "1";
  4278. Command = "MaterialEditorGui.updateActiveMaterial(\"castDynamicShadows\", $ThisControl.getValue());";
  4279. tooltipprofile = "ToolsGuiDefaultProfile";
  4280. ToolTip = "Object casts dynamic shadows.";
  4281. hovertime = "1000";
  4282. text = "Dynamic Shadows";
  4283. groupNum = "-1";
  4284. buttonType = "ToggleButton";
  4285. useMouseEvents = "0";
  4286. useInactiveState = "0";
  4287. };
  4288. new GuiCheckBoxCtrl() {
  4289. canSaveDynamicFields = "0";
  4290. internalName = "doubleSidedCheckBox";
  4291. Enabled = "1";
  4292. isContainer = "0";
  4293. Profile = "ToolsGuiCheckBoxProfile";
  4294. HorizSizing = "right";
  4295. VertSizing = "bottom";
  4296. position = "105 55";
  4297. Extent = "85 16";
  4298. MinExtent = "8 2";
  4299. canSave = "1";
  4300. Visible = "1";
  4301. Command = "MaterialEditorGui.updateActiveMaterial(\"doubleSided\",$ThisControl.getValue());";
  4302. tooltipprofile = "ToolsGuiDefaultProfile";
  4303. ToolTip = "Determines if this material will be rendered from both sides of the polygon, or just the \'front facing\' side. ";
  4304. hovertime = "1000";
  4305. text = "Double Sided";
  4306. groupNum = "-1";
  4307. buttonType = "ToggleButton";
  4308. useMouseEvents = "0";
  4309. useInactiveState = "0";
  4310. };
  4311. };
  4312. new GuiContainer(){ // Reflection Properties
  4313. Profile = "ToolsGuiDefaultProfile";
  4314. isContainer = "1";
  4315. HorizSizing = "width";
  4316. VertSizing = "bottom";
  4317. Position = "0 95";
  4318. Extent = "212 25";
  4319. new GuiBitmapCtrl(){
  4320. position="2 2";
  4321. extent ="192 2";
  4322. HorizSizing = "width";
  4323. bitmap ="tools/gui/images/separator-v";
  4324. };
  4325. // Reflection Properties Text
  4326. new GuiTextCtrl(matEd_reflectionPropertiesText) {
  4327. canSaveDynamicFields = "0";
  4328. Enabled = "1";
  4329. isContainer = "0";
  4330. Profile = "ToolsGuiDefaultProfile";
  4331. HorizSizing = "left";
  4332. VertSizing = "bottom";
  4333. position = "91 6";
  4334. Extent = "80 18";
  4335. MinExtent = "8 2";
  4336. canSave = "1";
  4337. Visible = "1";
  4338. hovertime = "1000";
  4339. Margin = "0 0 0 0";
  4340. Padding = "0 0 0 0";
  4341. AnchorTop = "1";
  4342. AnchorBottom = "0";
  4343. AnchorLeft = "1";
  4344. AnchorRight = "0";
  4345. text = "Reflection";
  4346. maxLength = "1024";
  4347. };
  4348. new GuiPopUpMenuCtrl() {
  4349. canSaveDynamicFields = "0";
  4350. internalName = "reflectionTypePopUp";
  4351. Enabled = "1";
  4352. isContainer = "0";
  4353. Profile = "ToolsGuiPopUpMenuProfile";
  4354. HorizSizing = "width";
  4355. VertSizing = "bottom";
  4356. position = "3 6";
  4357. Extent = "84 18";
  4358. MinExtent = "8 2";
  4359. canSave = "1";
  4360. Visible = "1";
  4361. Command = "MaterialEditorGui.updateReflectionType($ThisControl.getText());";
  4362. ToolTip = "Determines the type of blending to be applied on the transparent object.";
  4363. hovertime = "1000";
  4364. Margin = "0 0 0 0";
  4365. Padding = "0 0 0 0";
  4366. AnchorTop = "1";
  4367. AnchorBottom = "0";
  4368. AnchorLeft = "1";
  4369. AnchorRight = "0";
  4370. text = "None";
  4371. maxLength = "1024";
  4372. maxPopupHeight = "200";
  4373. sbUsesNAColor = "0";
  4374. reverseTextList = "0";
  4375. bitmapBounds = "16 16";
  4376. };
  4377. new GuiButtonCtrl(matEd_cubemapEditBtn){
  4378. internalName = "matEd_cubemapEditBtn";
  4379. profile ="ToolsGuiButtonProfile";
  4380. HorizSizing = "left";
  4381. VertSizing = "bottom";
  4382. position = "143 6 28";
  4383. Extent = "33 18";
  4384. Command = "MaterialEditorGui.showCubemapEditor();";
  4385. text = "Edit";
  4386. };
  4387. };
  4388. new GuiContainer(){ // Behavior Properties
  4389. Profile = "ToolsGuiDefaultProfile";
  4390. isContainer = "1";
  4391. HorizSizing = "width";
  4392. VertSizing = "bottom";
  4393. Position = "0 122";
  4394. Extent = "212 80";
  4395. new GuiBitmapCtrl(){
  4396. position="2 2";
  4397. extent ="192 2";
  4398. HorizSizing = "width";
  4399. bitmap ="tools/gui/images/separator-v";
  4400. };
  4401. new GuiTextCtrl() {
  4402. text = "Effect Colors[0:1]";
  4403. position = "1 6";
  4404. extent = "86 15";
  4405. profile = "ToolsGuiDefaultProfile";
  4406. };
  4407. new GuiSwatchButtonCtrl() {
  4408. color = "1 1 1 1";
  4409. groupNum = "-1";
  4410. buttonType = "PushButton";
  4411. useMouseEvents = "0";
  4412. position = "89 6";
  4413. extent = "16 16";
  4414. minExtent = "8 2";
  4415. horizSizing = "right";
  4416. vertSizing = "bottom";
  4417. profile = "GuiInspectorSwatchButtonProfile";
  4418. visible = "1";
  4419. active = "1";
  4420. command = "getColorF(materialEd_PreviewMaterial.effectColor[0], \"MaterialEditorGui.updateEffectColor0\");";
  4421. tooltipProfile = "ToolsGuiToolTipProfile";
  4422. hovertime = "1000";
  4423. isContainer = "0";
  4424. internalName = "effectColor0Swatch";
  4425. };
  4426. new GuiSwatchButtonCtrl() {
  4427. color = "1 1 1 1";
  4428. groupNum = "-1";
  4429. buttonType = "PushButton";
  4430. useMouseEvents = "0";
  4431. position = "109 6";
  4432. extent = "16 16";
  4433. minExtent = "8 2";
  4434. horizSizing = "right";
  4435. vertSizing = "bottom";
  4436. profile = "GuiInspectorSwatchButtonProfile";
  4437. visible = "1";
  4438. active = "1";
  4439. command = "getColorF(materialEd_PreviewMaterial.effectColor[1], \"MaterialEditorGui.updateEffectColor1\");";
  4440. tooltipProfile = "ToolsGuiToolTipProfile";
  4441. hovertime = "1000";
  4442. isContainer = "0";
  4443. internalName = "effectColor1Swatch";
  4444. };
  4445. new GuiCheckBoxCtrl() {
  4446. text = "Show Footprints";
  4447. groupNum = "-1";
  4448. buttonType = "ToggleButton";
  4449. useMouseEvents = "0";
  4450. position = "1 24";
  4451. extent = "93 16";
  4452. minExtent = "8 2";
  4453. horizSizing = "right";
  4454. vertSizing = "bottom";
  4455. profile = "ToolsGuiCheckBoxProfile";
  4456. visible = "1";
  4457. active = "1";
  4458. Command = "MaterialEditorGui.updateActiveMaterial(\"showFootprints\", $ThisControl.getValue());";
  4459. tooltipProfile = "ToolsGuiDefaultProfile";
  4460. tooltip = "Enables Player footprints on surfaces that use this Material.";
  4461. hovertime = "1000";
  4462. isContainer = "0";
  4463. internalName = "showFootprintsCheckbox";
  4464. };
  4465. new GuiCheckBoxCtrl() {
  4466. text = "Show Dust";
  4467. groupNum = "-1";
  4468. buttonType = "ToggleButton";
  4469. useMouseEvents = "0";
  4470. position = "110 24";
  4471. extent = "68 16";
  4472. minExtent = "8 2";
  4473. horizSizing = "right";
  4474. vertSizing = "bottom";
  4475. profile = "ToolsGuiCheckBoxProfile";
  4476. visible = "1";
  4477. active = "1";
  4478. Command = "MaterialEditorGui.updateActiveMaterial(\"showDust\", $ThisControl.getValue());";
  4479. tooltipProfile = "ToolsGuiDefaultProfile";
  4480. tooltip = "Enables dust particles on surfaces that use this Material.";
  4481. hovertime = "1000";
  4482. isContainer = "0";
  4483. internalName = "showDustCheckbox";
  4484. };
  4485. new GuiTextCtrl() {
  4486. text = "Footstep sound";
  4487. position = "1 43";
  4488. extent = "77 15";
  4489. profile = "ToolsGuiDefaultProfile";
  4490. };
  4491. new GuiPopUpMenuCtrl() {
  4492. maxPopupHeight = "200";
  4493. sbUsesNAColor = "0";
  4494. reverseTextList = "0";
  4495. bitmapBounds = "16 16";
  4496. text = "None";
  4497. maxLength = "1024";
  4498. margin = "0 0 0 0";
  4499. padding = "0 0 0 0";
  4500. anchorTop = "1";
  4501. anchorBottom = "0";
  4502. anchorLeft = "1";
  4503. anchorRight = "0";
  4504. position = "80 42";
  4505. extent = "105 18";
  4506. minExtent = "8 2";
  4507. horizSizing = "width";
  4508. vertSizing = "bottom";
  4509. profile = "ToolsGuiPopUpMenuProfile";
  4510. visible = "1";
  4511. active = "1";
  4512. command = "MaterialEditorGui.updateBehaviorSound(\"Footstep\", $ThisControl.getText());";
  4513. tooltipProfile = "ToolsGuiToolTipProfile";
  4514. tooltip = "Determines the footstep sound to use when the Player walks on this Material.";
  4515. hovertime = "1000";
  4516. isContainer = "0";
  4517. internalName = "footstepSoundPopUp";
  4518. };
  4519. new GuiTextCtrl() {
  4520. text = "Impact sound";
  4521. position = "1 63";
  4522. extent = "64 15";
  4523. profile = "ToolsGuiDefaultProfile";
  4524. };
  4525. new GuiPopUpMenuCtrl() {
  4526. maxPopupHeight = "200";
  4527. sbUsesNAColor = "0";
  4528. reverseTextList = "0";
  4529. bitmapBounds = "16 16";
  4530. text = "None";
  4531. maxLength = "1024";
  4532. margin = "0 0 0 0";
  4533. padding = "0 0 0 0";
  4534. anchorTop = "1";
  4535. anchorBottom = "0";
  4536. anchorLeft = "1";
  4537. anchorRight = "0";
  4538. position = "80 62";
  4539. extent = "105 18";
  4540. minExtent = "8 2";
  4541. horizSizing = "width";
  4542. vertSizing = "bottom";
  4543. profile = "ToolsGuiPopUpMenuProfile";
  4544. visible = "1";
  4545. active = "1";
  4546. command = "MaterialEditorGui.updateBehaviorSound(\"Impact\", $ThisControl.getText());";
  4547. tooltipProfile = "ToolsGuiToolTipProfile";
  4548. tooltip = "Determines the impact sound to use when an object collides with this Material.";
  4549. hovertime = "1000";
  4550. isContainer = "0";
  4551. internalName = "impactSoundPopUp";
  4552. };
  4553. };
  4554. };
  4555. };
  4556. };
  4557. };
  4558. new GuiBitmapButtonCtrl(MatEd_phoBreadcrumb) { //Go back to previous editor
  4559. canSaveDynamicFields = "0";
  4560. Enabled = "1";
  4561. isContainer = "0";
  4562. HorizSizing = "right";
  4563. VertSizing = "bottom";
  4564. position = "-1 0";
  4565. Extent = "20 19";
  4566. MinExtent = "8 2";
  4567. canSave = "1";
  4568. Visible = "0";
  4569. //Command = "materialSelector.showDialog(\"MaterialEditorGui.switchMaterial\");";
  4570. hovertime = "1000";
  4571. bitmap = "tools/gui/images/folderUp";
  4572. tooltip = "Go back to previous editor";
  4573. groupNum = "-1";
  4574. buttonType = "PushButton";
  4575. useMouseEvents = "0";
  4576. };
  4577. new GuiBitmapButtonCtrl(MatEd_editMaterial) { //Select and Edit an Existing Material
  4578. canSaveDynamicFields = "0";
  4579. Enabled = "1";
  4580. isContainer = "0";
  4581. HorizSizing = "left";
  4582. VertSizing = "bottom";
  4583. position = "66 1";
  4584. Extent = "16 16";
  4585. MinExtent = "8 2";
  4586. canSave = "1";
  4587. Visible = "1";
  4588. Command = "materialSelector.showDialog(\"MaterialEditorGui.switchMaterial\");";
  4589. hovertime = "1000";
  4590. bitmap = "tools/gui/images/open-file";
  4591. tooltip = "Open Existing Material";
  4592. groupNum = "-1";
  4593. buttonType = "PushButton";
  4594. useMouseEvents = "0";
  4595. };
  4596. // New Button
  4597. new GuiBitmapButtonCtrl() {
  4598. canSaveDynamicFields = "0";
  4599. Enabled = "1";
  4600. isContainer = "0";
  4601. Profile = "ToolsGuiDefaultProfile";
  4602. HorizSizing = "left";
  4603. VertSizing = "bottom";
  4604. position = "86 1";
  4605. Extent = "16 16";
  4606. MinExtent = "8 2";
  4607. canSave = "1";
  4608. Visible = "1";
  4609. Command = "MaterialEditorGui.createNewMaterial();";
  4610. hovertime = "1000";
  4611. groupNum = "-1";
  4612. text ="";
  4613. tooltip = "Create New Material";
  4614. buttonType = "PushButton";
  4615. useMouseEvents = "0";
  4616. bitmap = "tools/gui/images/new";
  4617. };
  4618. // Save Button
  4619. new GuiBitmapButtonCtrl() {
  4620. canSaveDynamicFields = "0";
  4621. Enabled = "1";
  4622. isContainer = "0";
  4623. Profile = "ToolsGuiDefaultProfile";
  4624. HorizSizing = "left";
  4625. VertSizing = "bottom";
  4626. position = "106 1";
  4627. Extent = "16 16";
  4628. MinExtent = "8 2";
  4629. canSave = "1";
  4630. Visible = "1";
  4631. Command = "MaterialEditorGui.save();";
  4632. hovertime = "1000";
  4633. groupNum = "-1";
  4634. text ="";
  4635. tooltip = "Save Material (ALT S)";
  4636. buttonType = "PushButton";
  4637. useMouseEvents = "0";
  4638. bitmap = "tools/gui/images/save-icon";
  4639. };
  4640. new GuiBitmapButtonCtrl() {
  4641. canSaveDynamicFields = "0";
  4642. Enabled = "1";
  4643. isContainer = "0";
  4644. Profile = "ToolsGuiDefaultProfile";
  4645. HorizSizing = "left";
  4646. VertSizing = "bottom";
  4647. position = "126 1";
  4648. Extent = "16 16";
  4649. MinExtent = "8 2";
  4650. canSave = "1";
  4651. Visible = "1";
  4652. Command = "MaterialEditorGui.lookupMaterialInstances();";
  4653. hovertime = "1000";
  4654. groupNum = "-1";
  4655. text ="";
  4656. tooltip = "Lookup Material Instances";
  4657. buttonType = "PushButton";
  4658. useMouseEvents = "0";
  4659. bitmap = "tools/gui/images/visible";
  4660. };
  4661. new GuiBitmapCtrl(){
  4662. position = "147 1";
  4663. Extent = "2 16";
  4664. minExtent = "2 16";
  4665. HorizSizing = "left";
  4666. VertSizing = "bottom";
  4667. bitmap = "tools/gui/images/separator-h";
  4668. };
  4669. // Revert Material
  4670. new GuiBitmapButtonCtrl() {
  4671. canSaveDynamicFields = "0";
  4672. Enabled = "1";
  4673. isContainer = "0";
  4674. Profile = "ToolsGuiButtonProfile";
  4675. HorizSizing = "left";
  4676. VertSizing = "bottom";
  4677. position = "151 1";
  4678. Extent = "17 17";
  4679. MinExtent = "8 2";
  4680. canSave = "1";
  4681. Visible = "1";
  4682. Command = "MaterialEditorGui.refreshMaterial();";
  4683. hovertime = "1000";
  4684. tooltip = "Revert Material to Saved";
  4685. text = "";
  4686. bitmap = "tools/gui/images/reset-icon";
  4687. groupNum = "-1";
  4688. buttonType = "PushButton";
  4689. useMouseEvents = "0";
  4690. };
  4691. // Clear Material
  4692. new GuiBitmapButtonCtrl() {
  4693. canSaveDynamicFields = "0";
  4694. Enabled = "1";
  4695. isContainer = "0";
  4696. Profile = "ToolsGuiButtonProfile";
  4697. HorizSizing = "left";
  4698. VertSizing = "bottom";
  4699. position = "168 1";
  4700. Extent = "17 17";
  4701. MinExtent = "8 2";
  4702. canSave = "1";
  4703. Visible = "1";
  4704. Command = "MaterialEditorGui.clearMaterial();";
  4705. hovertime = "1000";
  4706. tooltip = "Clear All Material Properties";
  4707. text = "";
  4708. bitmap = "tools/gui/images/clear-icon";
  4709. groupNum = "-1";
  4710. buttonType = "PushButton";
  4711. useMouseEvents = "0";
  4712. };
  4713. // Delete Material
  4714. new GuiBitmapButtonCtrl() {
  4715. canSaveDynamicFields = "0";
  4716. Enabled = "1";
  4717. isContainer = "0";
  4718. Profile = "ToolsGuiButtonProfile";
  4719. HorizSizing = "left";
  4720. VertSizing = "bottom";
  4721. position = "185 1";
  4722. Extent = "17 17";
  4723. MinExtent = "8 2";
  4724. canSave = "1";
  4725. Visible = "1";
  4726. Command = "";
  4727. hovertime = "1000";
  4728. tooltip = "Delete Material from File";
  4729. text = "";
  4730. bitmap = "tools/gui/images/delete";
  4731. groupNum = "-1";
  4732. buttonType = "PushButton";
  4733. useMouseEvents = "0";
  4734. Command = "MaterialEditorGui.deleteMaterial();";
  4735. };
  4736. };
  4737. };
  4738. };
  4739. // Here are all of the other gui elements that were included in the original gui============================================
  4740. // EDIT: Instead of showing the faded bitmap, were going to just go ahead and push the controls; that way they are sitting
  4741. // on top of the editor gui, while being nonmodal
  4742. new GuiControl(matEdNonModalGroup, EditorGuiGroup) {
  4743. canSaveDynamicFields = "0";
  4744. Profile = "ToolsGuiOverlayProfile";
  4745. Enabled = "1";
  4746. isContainer = "1";
  4747. HorizSizing = "right";
  4748. VertSizing = "bottom";
  4749. Position = "0 0";
  4750. Extent = "1024 768";
  4751. MinExtent = "8 2";
  4752. canSave = "1";
  4753. Visible = "1";
  4754. hovertime = "1000";
  4755. new GuiWindowCtrl(matEdSaveDialog) {
  4756. canSaveDynamicFields = "0";
  4757. Enabled = "1";
  4758. isContainer = "1";
  4759. Profile = "ToolsGuiWindowProfile";
  4760. HorizSizing = "center";
  4761. VertSizing = "center";
  4762. position = "197 221";
  4763. Extent = "336 104";
  4764. MinExtent = "8 2";
  4765. canSave = "1";
  4766. Visible = "0";
  4767. hovertime = "1000";
  4768. Margin = "0 0 0 0";
  4769. Padding = "0 0 0 0";
  4770. AnchorTop = "1";
  4771. AnchorBottom = "0";
  4772. AnchorLeft = "1";
  4773. AnchorRight = "0";
  4774. resizeWidth = "0";
  4775. resizeHeight = "0";
  4776. canMove = "0";
  4777. canClose = "0";
  4778. canMinimize = "0";
  4779. canMaximize = "0";
  4780. minSize = "50 50";
  4781. EdgeSnap = "1";
  4782. text = "Material Not Saved!";
  4783. new GuiButtonCtrl(matEd_notSavedWindow_Save) {
  4784. canSaveDynamicFields = "0";
  4785. Enabled = "1";
  4786. isContainer = "0";
  4787. Profile = "ToolsGuiButtonProfile";
  4788. HorizSizing = "right";
  4789. VertSizing = "bottom";
  4790. position = "8 69";
  4791. Extent = "121 24";
  4792. MinExtent = "8 2";
  4793. canSave = "1";
  4794. Visible = "1";
  4795. Command = "matEdSaveDialog.dialogSave();";
  4796. hovertime = "1000";
  4797. text = "Save";
  4798. groupNum = "-1";
  4799. buttonType = "PushButton";
  4800. useMouseEvents = "0";
  4801. };
  4802. new GuiTextCtrl(matEd_materialNotSavedText) {
  4803. canSaveDynamicFields = "0";
  4804. Enabled = "1";
  4805. isContainer = "0";
  4806. Profile = "ToolsGuiTextCenterProfile";
  4807. HorizSizing = "right";
  4808. VertSizing = "bottom";
  4809. position = "7 35";
  4810. Extent = "318 18";
  4811. MinExtent = "8 2";
  4812. canSave = "1";
  4813. Visible = "1";
  4814. hovertime = "1000";
  4815. Margin = "0 0 0 0";
  4816. Padding = "0 0 0 0";
  4817. AnchorTop = "1";
  4818. AnchorBottom = "0";
  4819. AnchorLeft = "1";
  4820. AnchorRight = "0";
  4821. text = "This material has unsaved changes. Do you wish to save?";
  4822. maxLength = "1024";
  4823. };
  4824. new GuiButtonCtrl(matEd_notSavedWindow_DontSave) {
  4825. canSaveDynamicFields = "0";
  4826. Enabled = "1";
  4827. isContainer = "0";
  4828. Profile = "ToolsGuiButtonProfile";
  4829. HorizSizing = "right";
  4830. VertSizing = "bottom";
  4831. position = "157 69";
  4832. Extent = "80 24";
  4833. MinExtent = "8 2";
  4834. canSave = "1";
  4835. Visible = "1";
  4836. Command = "matEdSaveDialog.dialogDontSave();";
  4837. hovertime = "1000";
  4838. text = "Don\'t Save";
  4839. groupNum = "-1";
  4840. buttonType = "PushButton";
  4841. useMouseEvents = "0";
  4842. };
  4843. new GuiButtonCtrl(matEd_notSavedWindow_Cancel) {
  4844. canSaveDynamicFields = "0";
  4845. Enabled = "1";
  4846. isContainer = "0";
  4847. Profile = "ToolsGuiButtonProfile";
  4848. HorizSizing = "right";
  4849. VertSizing = "bottom";
  4850. position = "245 69";
  4851. Extent = "80 24";
  4852. MinExtent = "8 2";
  4853. canSave = "1";
  4854. Visible = "1";
  4855. Command = "matEdSaveDialog.dialogCancel();";
  4856. hovertime = "1000";
  4857. text = "Cancel";
  4858. groupNum = "-1";
  4859. buttonType = "PushButton";
  4860. useMouseEvents = "0";
  4861. };
  4862. };
  4863. new GuiWindowCtrl(matEd_changeCategoryDialog) {
  4864. canSaveDynamicFields = "0";
  4865. Enabled = "1";
  4866. isContainer = "1";
  4867. Profile = "ToolsGuiWindowProfile";
  4868. HorizSizing = "right";
  4869. VertSizing = "bottom";
  4870. position = "288 144";
  4871. Extent = "248 133";
  4872. MinExtent = "8 2";
  4873. canSave = "1";
  4874. Visible = "0";
  4875. hovertime = "1000";
  4876. Margin = "0 0 0 0";
  4877. Padding = "0 0 0 0";
  4878. AnchorTop = "1";
  4879. AnchorBottom = "0";
  4880. AnchorLeft = "1";
  4881. AnchorRight = "0";
  4882. resizeWidth = "0";
  4883. resizeHeight = "0";
  4884. canMove = "0";
  4885. canClose = "0";
  4886. canMinimize = "0";
  4887. canMaximize = "0";
  4888. minSize = "50 50";
  4889. EdgeSnap = "1";
  4890. text = "Change Material Category";
  4891. new GuiPopUpMenuCtrl(matEd_changeCategory_categoryList) {
  4892. canSaveDynamicFields = "0";
  4893. Enabled = "1";
  4894. isContainer = "0";
  4895. Profile = "ToolsGuiPopUpMenuProfile";
  4896. HorizSizing = "right";
  4897. VertSizing = "bottom";
  4898. position = "10 32";
  4899. Extent = "183 18";
  4900. MinExtent = "8 2";
  4901. canSave = "1";
  4902. Visible = "1";
  4903. hovertime = "1000";
  4904. Margin = "0 0 0 0";
  4905. Padding = "0 0 0 0";
  4906. AnchorTop = "1";
  4907. AnchorBottom = "0";
  4908. AnchorLeft = "1";
  4909. AnchorRight = "0";
  4910. maxLength = "1024";
  4911. maxPopupHeight = "200";
  4912. sbUsesNAColor = "0";
  4913. reverseTextList = "0";
  4914. bitmapBounds = "16 16";
  4915. };
  4916. new GuiButtonCtrl(matEd_changeCategory_okayBtn) {
  4917. canSaveDynamicFields = "0";
  4918. Enabled = "1";
  4919. isContainer = "0";
  4920. Profile = "ToolsGuiButtonProfile";
  4921. HorizSizing = "right";
  4922. VertSizing = "bottom";
  4923. position = "10 97";
  4924. Extent = "137 24";
  4925. MinExtent = "8 2";
  4926. canSave = "1";
  4927. Visible = "1";
  4928. Command = "MaterialEditorGui.okayChangeCategoryDialog();";
  4929. hovertime = "1000";
  4930. text = "Update Category";
  4931. groupNum = "-1";
  4932. buttonType = "PushButton";
  4933. useMouseEvents = "0";
  4934. };
  4935. new GuiButtonCtrl(matEd_changeCategory_cancelBtn) {
  4936. canSaveDynamicFields = "0";
  4937. Enabled = "1";
  4938. isContainer = "0";
  4939. Profile = "ToolsGuiButtonProfile";
  4940. HorizSizing = "right";
  4941. VertSizing = "bottom";
  4942. position = "159 97";
  4943. Extent = "80 24";
  4944. MinExtent = "8 2";
  4945. canSave = "1";
  4946. Visible = "1";
  4947. Command = "MaterialEditorGui.cancelChangeCategoryDialog();";
  4948. hovertime = "1000";
  4949. text = "Cancel";
  4950. groupNum = "-1";
  4951. buttonType = "PushButton";
  4952. useMouseEvents = "0";
  4953. };
  4954. new GuiButtonCtrl(matEd_changeCategory_addCatBtn) {
  4955. canSaveDynamicFields = "0";
  4956. Enabled = "1";
  4957. isContainer = "0";
  4958. Profile = "ToolsGuiButtonProfile";
  4959. HorizSizing = "right";
  4960. VertSizing = "bottom";
  4961. position = "200 60";
  4962. Extent = "39 18";
  4963. MinExtent = "8 2";
  4964. canSave = "1";
  4965. Visible = "1";
  4966. Command = "MaterialEditorGui.addCategory();";
  4967. hovertime = "1000";
  4968. text = "New";
  4969. groupNum = "-1";
  4970. buttonType = "PushButton";
  4971. useMouseEvents = "0";
  4972. };
  4973. new GuiTextEditCtrl(matEd_changeCategory_catNameEntry) {
  4974. canSaveDynamicFields = "0";
  4975. Enabled = "1";
  4976. isContainer = "0";
  4977. Profile = "ToolsGuiTextEditProfile";
  4978. HorizSizing = "right";
  4979. VertSizing = "bottom";
  4980. position = "10 60";
  4981. Extent = "183 18";
  4982. MinExtent = "8 2";
  4983. canSave = "1";
  4984. Visible = "1";
  4985. hovertime = "1000";
  4986. Margin = "0 0 0 0";
  4987. Padding = "0 0 0 0";
  4988. AnchorTop = "1";
  4989. AnchorBottom = "0";
  4990. AnchorLeft = "1";
  4991. AnchorRight = "0";
  4992. maxLength = "1024";
  4993. historySize = "0";
  4994. password = "0";
  4995. tabComplete = "0";
  4996. sinkAllKeyEvents = "0";
  4997. password = "0";
  4998. passwordMask = "*";
  4999. };
  5000. new GuiWindowCtrl(matEd_changeCategory_ErrorDialog) {
  5001. canSaveDynamicFields = "0";
  5002. Enabled = "1";
  5003. isContainer = "1";
  5004. Profile = "ToolsGuiWindowProfile";
  5005. HorizSizing = "right";
  5006. VertSizing = "bottom";
  5007. position = "8 18";
  5008. Extent = "232 113";
  5009. MinExtent = "8 2";
  5010. canSave = "1";
  5011. Visible = "0";
  5012. hovertime = "1000";
  5013. Margin = "0 0 0 0";
  5014. Padding = "0 0 0 0";
  5015. AnchorTop = "1";
  5016. AnchorBottom = "0";
  5017. AnchorLeft = "1";
  5018. AnchorRight = "0";
  5019. resizeWidth = "0";
  5020. resizeHeight = "0";
  5021. canMove = "0";
  5022. canClose = "0";
  5023. canMinimize = "0";
  5024. canMaximize = "0";
  5025. minSize = "50 50";
  5026. EdgeSnap = "1";
  5027. text = "Category Change Error";
  5028. new GuiButtonCtrl(matEd_changeCategory_Error_Button) {
  5029. canSaveDynamicFields = "0";
  5030. Enabled = "1";
  5031. isContainer = "0";
  5032. Profile = "ToolsGuiButtonProfile";
  5033. HorizSizing = "right";
  5034. VertSizing = "bottom";
  5035. position = "72 81";
  5036. Extent = "80 24";
  5037. MinExtent = "8 2";
  5038. canSave = "1";
  5039. Visible = "1";
  5040. Command = "MaterialEditorGui.okChangeCategoryErrorDialog();";
  5041. hovertime = "1000";
  5042. text = "Ok";
  5043. groupNum = "-1";
  5044. buttonType = "PushButton";
  5045. useMouseEvents = "0";
  5046. };
  5047. new GuiTextCtrl(matEd_changeCategory_error_Text) {
  5048. canSaveDynamicFields = "0";
  5049. Enabled = "1";
  5050. isContainer = "0";
  5051. Profile = "ToolsGuiTextCenterProfile";
  5052. HorizSizing = "right";
  5053. VertSizing = "bottom";
  5054. position = "8 31";
  5055. Extent = "215 40";
  5056. MinExtent = "8 2";
  5057. canSave = "1";
  5058. Visible = "1";
  5059. hovertime = "1000";
  5060. Margin = "0 0 0 0";
  5061. Padding = "0 0 0 0";
  5062. AnchorTop = "1";
  5063. AnchorBottom = "0";
  5064. AnchorLeft = "1";
  5065. AnchorRight = "0";
  5066. text = "Text goes here!";
  5067. maxLength = "1024";
  5068. };
  5069. };
  5070. };
  5071. };
  5072. //--- OBJECT WRITE END ---