guiMaterialPropertiesWindow.ed.gui 190 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091
  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. new GuiBitmapCtrl(){
  517. position="6 360";
  518. extent ="175 2";
  519. HorizSizing = "width";
  520. bitmap ="tools/gui/images/separator-v";
  521. };
  522. new GuiContainer(){ // spec Map
  523. profile="ToolsGuiDefaultProfile";
  524. isContainer = "1";
  525. position = "6 364";
  526. Extent = "185 52";
  527. HorizSizing = "width";
  528. new GuiBitmapCtrl() {
  529. canSaveDynamicFields = "0";
  530. internalName = "specMapDisplayBitmap";
  531. Enabled = "1";
  532. isContainer = "0";
  533. Profile = "ToolsGuiDefaultProfile";
  534. HorizSizing = "right";
  535. VertSizing = "bottom";
  536. position = "1 1";
  537. Extent = "48 48";
  538. MinExtent = "8 2";
  539. canSave = "1";
  540. Visible = "1";
  541. hovertime = "1000";
  542. bitmap = "tools/materialEditor/gui/unknownImage";
  543. wrap = "0";
  544. };
  545. new GuiTextCtrl() {
  546. canSaveDynamicFields = "0";
  547. Enabled = "1";
  548. isContainer = "0";
  549. Profile = "EditorTextProfile";
  550. HorizSizing = "right";
  551. VertSizing = "bottom";
  552. position = "56 -3";
  553. Extent = "72 18";
  554. MinExtent = "8 2";
  555. canSave = "1";
  556. Visible = "1";
  557. hovertime = "1000";
  558. Margin = "0 0 0 0";
  559. Padding = "0 0 0 0";
  560. AnchorTop = "1";
  561. AnchorBottom = "0";
  562. AnchorLeft = "1";
  563. AnchorRight = "0";
  564. text = "Spec Map";
  565. maxLength = "1024";
  566. };
  567. new GuiBitmapButtonCtrl() {
  568. canSaveDynamicFields = "0";
  569. Enabled = "1";
  570. isContainer = "0";
  571. Profile = "ToolsGuiDefaultProfile";
  572. HorizSizing = "right";
  573. VertSizing = "bottom";
  574. position = "1 1";
  575. Extent = "48 48";
  576. MinExtent = "8 2";
  577. canSave = "1";
  578. Visible = "1";
  579. Command = "MaterialEditorGui.updateSpecMap(1);";
  580. tooltipprofile = "ToolsGuiDefaultProfile";
  581. ToolTip = "Change the active Tone Map for this layer.";
  582. hovertime = "1000";
  583. groupNum = "-1";
  584. buttonType = "PushButton";
  585. useMouseEvents = "0";
  586. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  587. };
  588. new GuiTextCtrl() {
  589. canSaveDynamicFields = "0";
  590. internalName = "specMapNameText";
  591. Enabled = "1";
  592. isContainer = "0";
  593. Profile = "ToolsGuiTextProfile";
  594. HorizSizing = "width";
  595. VertSizing = "bottom";
  596. position = "56 16";
  597. Extent = "143 17";
  598. MinExtent = "8 2";
  599. canSave = "1";
  600. Visible = "1";
  601. hovertime = "1000";
  602. Margin = "0 0 0 0";
  603. Padding = "0 0 0 0";
  604. AnchorTop = "1";
  605. AnchorBottom = "0";
  606. AnchorLeft = "1";
  607. AnchorRight = "0";
  608. text = "None";
  609. maxLength = "1024";
  610. };
  611. new GuiButtonCtrl(){
  612. profile="ToolsGuiButtonProfile";
  613. text ="Edit";
  614. HorizSizing = "left";
  615. VertSizing = "bottom";
  616. position = "134 34";
  617. Extent = "40 16";
  618. buttonType = "PushButton";
  619. command="MaterialEditorGui.updateSpecMap(1);";
  620. };
  621. new GuiBitmapButtonCtrl() {
  622. canSaveDynamicFields = "0";
  623. Enabled = "1";
  624. isContainer = "0";
  625. Profile = "ToolsGuiDefaultProfile";
  626. HorizSizing = "left";
  627. VertSizing = "bottom";
  628. position = "177 34";
  629. Extent = "16 16";
  630. MinExtent = "8 2";
  631. canSave = "1";
  632. Visible = "1";
  633. Command = "MaterialEditorGui.updateSpecMap(0);";
  634. hovertime = "1000";
  635. groupNum = "-1";
  636. buttonType = "PushButton";
  637. useMouseEvents = "0";
  638. bitmap = "tools/gui/images/delete";
  639. };
  640. };
  641. };
  642. };
  643. new GuiRolloutCtrl(advancedTextureMapsRollout) {
  644. class = "BehaviorQuickEditRollout";
  645. superclass = LBQuickEditRollout;
  646. Profile = "GuiRolloutProfile";
  647. HorizSizing = "width";
  648. VertSizing = "bottom";
  649. Position = "0 0";
  650. Extent = "185 0";
  651. Caption = "Advanced Texture Maps";
  652. Expanded = false;
  653. Margin = "4 4 4 0";
  654. DragSizable = false;
  655. container = true;
  656. parentRollout = %this.rollout;
  657. object = %behavior;
  658. new GuiStackControl() {
  659. StackingType = "Vertical";
  660. HorizStacking = "Left to Right";
  661. VertStacking = "Top to Bottom";
  662. Padding = "0";
  663. canSaveDynamicFields = "0";
  664. Enabled = "1";
  665. isContainer = "1";
  666. Profile = "ToolsGuiDefaultProfile";
  667. HorizSizing = "width";
  668. VertSizing = "bottom";
  669. Position = "1 3";
  670. Extent = "185 16";
  671. MinExtent = "16 16";
  672. canSave = "1";
  673. isDecoy = "0";
  674. Visible = "1";
  675. tooltipprofile = "ToolsGuiToolTipProfile";
  676. hovertime = "1000";
  677. new GuiContainer(){ // Detail Map
  678. profile="ToolsGuiDefaultProfile";
  679. isContainer = "1";
  680. position = "6 193";
  681. Extent = "185 52";
  682. HorizSizing = "width";
  683. new GuiBitmapCtrl() {
  684. canSaveDynamicFields = "0";
  685. internalName = "detailMapDisplayBitmap";
  686. Enabled = "1";
  687. isContainer = "0";
  688. Profile = "ToolsGuiDefaultProfile";
  689. HorizSizing = "right";
  690. VertSizing = "bottom";
  691. position = "1 1";
  692. Extent = "48 48";
  693. MinExtent = "8 2";
  694. canSave = "1";
  695. Visible = "1";
  696. hovertime = "1000";
  697. bitmap = "tools/materialEditor/gui/unknownImage";
  698. wrap = "0";
  699. };
  700. new GuiBitmapButtonCtrl() {
  701. canSaveDynamicFields = "0";
  702. Enabled = "1";
  703. isContainer = "0";
  704. Profile = "ToolsGuiDefaultProfile";
  705. HorizSizing = "right";
  706. VertSizing = "bottom";
  707. position = "1 1";
  708. Extent = "48 48";
  709. MinExtent = "8 2";
  710. canSave = "1";
  711. Visible = "1";
  712. Command = "MaterialEditorGui.updateTextureMap(\"detail\", 1);";
  713. tooltipprofile = "ToolsGuiDefaultProfile";
  714. ToolTip = "Change the active Detail Map for this layer.";
  715. hovertime = "1000";
  716. groupNum = "-1";
  717. buttonType = "PushButton";
  718. useMouseEvents = "0";
  719. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  720. };
  721. new GuiTextCtrl() { // Detailmap Scale text
  722. profile="ToolsGuiDefaultProfile";
  723. position = "56 34";
  724. Extent = "29 16";
  725. text ="Scale";
  726. };
  727. new GuiTextEditCtrl() { // Detailmap Scale
  728. profile="ToolsGuiNumericTextEditProfile";
  729. internalName = "detailScaleTextEdit";
  730. position = "87 33";
  731. Extent = "28 18";
  732. text ="0";
  733. maxLength = "2";
  734. AltCommand = "MaterialEditorGui.updateDetailScale($ThisControl.getText());";
  735. };
  736. new GuiTextCtrl() {
  737. canSaveDynamicFields = "0";
  738. Enabled = "1";
  739. isContainer = "0";
  740. Profile = "EditorTextProfile";
  741. HorizSizing = "right";
  742. VertSizing = "bottom";
  743. position = "56 -3";
  744. Extent = "72 18";
  745. MinExtent = "8 2";
  746. canSave = "1";
  747. Visible = "1";
  748. hovertime = "1000";
  749. Margin = "0 0 0 0";
  750. Padding = "0 0 0 0";
  751. AnchorTop = "1";
  752. AnchorBottom = "0";
  753. AnchorLeft = "1";
  754. AnchorRight = "0";
  755. text = "Detail Map";
  756. maxLength = "1024";
  757. };
  758. new GuiTextCtrl() {
  759. canSaveDynamicFields = "0";
  760. internalName = "detailMapNameText";
  761. Enabled = "1";
  762. isContainer = "0";
  763. Profile = "ToolsGuiTextProfile";
  764. HorizSizing = "width";
  765. VertSizing = "bottom";
  766. position = "56 16";
  767. Extent = "143 17";
  768. MinExtent = "8 2";
  769. canSave = "1";
  770. Visible = "1";
  771. hovertime = "1000";
  772. Margin = "0 0 0 0";
  773. Padding = "0 0 0 0";
  774. AnchorTop = "1";
  775. AnchorBottom = "0";
  776. AnchorLeft = "1";
  777. AnchorRight = "0";
  778. text = "None";
  779. maxLength = "1024";
  780. };
  781. new GuiButtonCtrl(){
  782. profile="ToolsGuiButtonProfile";
  783. text ="Edit";
  784. HorizSizing = "left";
  785. VertSizing = "bottom";
  786. position = "134 34";
  787. Extent = "40 16";
  788. buttonType = "PushButton";
  789. command = "MaterialEditorGui.updateTextureMap(\"detail\", 1);";
  790. };
  791. new GuiBitmapButtonCtrl() {
  792. canSaveDynamicFields = "0";
  793. Enabled = "1";
  794. isContainer = "0";
  795. Profile = "ToolsGuiDefaultProfile";
  796. HorizSizing = "left";
  797. VertSizing = "bottom";
  798. position = "177 34";
  799. Extent = "16 16";
  800. MinExtent = "8 2";
  801. canSave = "1";
  802. Visible = "1";
  803. Command = "MaterialEditorGui.updateTextureMap(\"detail\", 0);";
  804. hovertime = "1000";
  805. groupNum = "-1";
  806. buttonType = "PushButton";
  807. useMouseEvents = "0";
  808. bitmap = "tools/gui/images/delete";
  809. };
  810. };
  811. new GuiBitmapCtrl(){
  812. position="6 246";
  813. extent ="175 2";
  814. HorizSizing = "width";
  815. bitmap ="tools/gui/images/separator-v";
  816. };
  817. new GuiContainer(){ // Detail Normal Map
  818. profile="ToolsGuiDefaultProfile";
  819. isContainer = "1";
  820. position = "6 136";
  821. Extent = "185 52";
  822. HorizSizing = "width";
  823. new GuiBitmapCtrl() {
  824. canSaveDynamicFields = "0";
  825. internalName = "detailNormalMapDisplayBitmap";
  826. Enabled = "1";
  827. isContainer = "0";
  828. Profile = "ToolsGuiDefaultProfile";
  829. HorizSizing = "right";
  830. VertSizing = "bottom";
  831. position = "1 1";
  832. Extent = "48 48";
  833. MinExtent = "8 2";
  834. canSave = "1";
  835. Visible = "1";
  836. hovertime = "1000";
  837. bitmap = "tools/materialEditor/gui/unknownImage";
  838. wrap = "0";
  839. };
  840. new GuiBitmapButtonCtrl() {
  841. canSaveDynamicFields = "0";
  842. Enabled = "1";
  843. isContainer = "0";
  844. Profile = "ToolsGuiDefaultProfile";
  845. HorizSizing = "right";
  846. VertSizing = "bottom";
  847. position = "1 1";
  848. Extent = "48 48";
  849. MinExtent = "8 2";
  850. canSave = "1";
  851. Visible = "1";
  852. Command = "MaterialEditorGui.updateTextureMap(\"detailNormal\", 1);";
  853. tooltipprofile = "ToolsGuiDefaultProfile";
  854. ToolTip = "Change the active DetailNormal Map for this layer.";
  855. hovertime = "1000";
  856. groupNum = "-1";
  857. buttonType = "PushButton";
  858. useMouseEvents = "0";
  859. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  860. };
  861. new GuiTextCtrl() { // Detail Normal Map Strength text
  862. profile="ToolsGuiDefaultProfile";
  863. position = "56 34";
  864. Extent = "29 16";
  865. text ="Strength";
  866. };
  867. new GuiTextEditCtrl() { // Detail Normal Map Strength
  868. profile="ToolsGuiNumericTextEditProfile";
  869. internalName = "detailNormalStrengthTextEdit";
  870. position = "87 33";
  871. Extent = "28 18";
  872. text ="0";
  873. maxLength = "3";
  874. AltCommand = "MaterialEditorGui.updateDetailNormalStrength($ThisControl.getText());";
  875. };
  876. new GuiTextCtrl() {
  877. canSaveDynamicFields = "0";
  878. Enabled = "1";
  879. isContainer = "0";
  880. Profile = "EditorTextProfile";
  881. HorizSizing = "right";
  882. VertSizing = "bottom";
  883. position = "56 -3";
  884. Extent = "72 18";
  885. MinExtent = "8 2";
  886. canSave = "1";
  887. Visible = "1";
  888. hovertime = "1000";
  889. Margin = "0 0 0 0";
  890. Padding = "0 0 0 0";
  891. AnchorTop = "1";
  892. AnchorBottom = "0";
  893. AnchorLeft = "1";
  894. AnchorRight = "0";
  895. text = "Detail Normal Map";
  896. maxLength = "1024";
  897. };
  898. new GuiTextCtrl() {
  899. canSaveDynamicFields = "0";
  900. internalName = "detailNormalMapNameText";
  901. Enabled = "1";
  902. isContainer = "0";
  903. Profile = "ToolsGuiTextProfile";
  904. HorizSizing = "width";
  905. VertSizing = "bottom";
  906. position = "56 16";
  907. Extent = "143 17";
  908. MinExtent = "8 2";
  909. canSave = "1";
  910. Visible = "1";
  911. hovertime = "1000";
  912. Margin = "0 0 0 0";
  913. Padding = "0 0 0 0";
  914. AnchorTop = "1";
  915. AnchorBottom = "0";
  916. AnchorLeft = "1";
  917. AnchorRight = "0";
  918. text = "None";
  919. maxLength = "1024";
  920. };
  921. new GuiButtonCtrl(){
  922. profile="ToolsGuiButtonProfile";
  923. text ="Edit";
  924. HorizSizing = "left";
  925. VertSizing = "bottom";
  926. position = "134 34";
  927. Extent = "40 16";
  928. buttonType = "PushButton";
  929. command = "MaterialEditorGui.updateTextureMap(\"detailNormal\", 1);";
  930. };
  931. new GuiBitmapButtonCtrl() {
  932. canSaveDynamicFields = "0";
  933. Enabled = "1";
  934. isContainer = "0";
  935. Profile = "ToolsGuiDefaultProfile";
  936. HorizSizing = "left";
  937. VertSizing = "bottom";
  938. position = "177 34";
  939. Extent = "16 16";
  940. MinExtent = "8 2";
  941. canSave = "1";
  942. Visible = "1";
  943. Command = "MaterialEditorGui.updateTextureMap(\"detailNormal\", 0);";
  944. hovertime = "1000";
  945. groupNum = "-1";
  946. buttonType = "PushButton";
  947. useMouseEvents = "0";
  948. bitmap = "tools/gui/images/delete";
  949. };
  950. };
  951. new GuiBitmapCtrl(){
  952. position="6 189";
  953. extent ="175 2";
  954. HorizSizing = "width";
  955. bitmap ="tools/gui/images/separator-v";
  956. };
  957. new GuiContainer(){ // Overlay Map
  958. profile="ToolsGuiDefaultProfile";
  959. isContainer = "1";
  960. position = "6 136";
  961. Extent = "185 52";
  962. HorizSizing = "width";
  963. new GuiBitmapCtrl() {
  964. canSaveDynamicFields = "0";
  965. internalName = "overlayMapDisplayBitmap";
  966. Enabled = "1";
  967. isContainer = "0";
  968. Profile = "ToolsGuiDefaultProfile";
  969. HorizSizing = "right";
  970. VertSizing = "bottom";
  971. position = "1 1";
  972. Extent = "48 48";
  973. MinExtent = "8 2";
  974. canSave = "1";
  975. Visible = "1";
  976. hovertime = "1000";
  977. bitmap = "tools/materialEditor/gui/unknownImage";
  978. wrap = "0";
  979. };
  980. new GuiBitmapButtonCtrl() {
  981. canSaveDynamicFields = "0";
  982. Enabled = "1";
  983. isContainer = "0";
  984. Profile = "ToolsGuiDefaultProfile";
  985. HorizSizing = "right";
  986. VertSizing = "bottom";
  987. position = "1 1";
  988. Extent = "48 48";
  989. MinExtent = "8 2";
  990. canSave = "1";
  991. Visible = "1";
  992. Command = "MaterialEditorGui.updateTextureMap(\"overlay\", 1);";
  993. tooltipprofile = "ToolsGuiDefaultProfile";
  994. ToolTip = "Change the active Overlay Map for this layer.";
  995. hovertime = "1000";
  996. groupNum = "-1";
  997. buttonType = "PushButton";
  998. useMouseEvents = "0";
  999. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1000. };
  1001. new GuiTextCtrl() {
  1002. canSaveDynamicFields = "0";
  1003. Enabled = "1";
  1004. isContainer = "0";
  1005. Profile = "EditorTextProfile";
  1006. HorizSizing = "right";
  1007. VertSizing = "bottom";
  1008. position = "56 -3";
  1009. Extent = "72 18";
  1010. MinExtent = "8 2";
  1011. canSave = "1";
  1012. Visible = "1";
  1013. hovertime = "1000";
  1014. Margin = "0 0 0 0";
  1015. Padding = "0 0 0 0";
  1016. AnchorTop = "1";
  1017. AnchorBottom = "0";
  1018. AnchorLeft = "1";
  1019. AnchorRight = "0";
  1020. text = "Overlay Map";
  1021. maxLength = "1024";
  1022. };
  1023. new GuiTextCtrl() {
  1024. canSaveDynamicFields = "0";
  1025. internalName = "overlayMapNameText";
  1026. Enabled = "1";
  1027. isContainer = "0";
  1028. Profile = "ToolsGuiTextProfile";
  1029. HorizSizing = "width";
  1030. VertSizing = "bottom";
  1031. position = "56 16";
  1032. Extent = "143 17";
  1033. MinExtent = "8 2";
  1034. canSave = "1";
  1035. Visible = "1";
  1036. hovertime = "1000";
  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. text = "None";
  1044. maxLength = "1024";
  1045. };
  1046. new GuiButtonCtrl(){
  1047. profile="ToolsGuiButtonProfile";
  1048. text ="Edit";
  1049. HorizSizing = "left";
  1050. VertSizing = "bottom";
  1051. position = "134 34";
  1052. Extent = "40 16";
  1053. buttonType = "PushButton";
  1054. command = "MaterialEditorGui.updateTextureMap(\"overlay\", 1);";
  1055. };
  1056. new GuiBitmapButtonCtrl() {
  1057. canSaveDynamicFields = "0";
  1058. Enabled = "1";
  1059. isContainer = "0";
  1060. Profile = "ToolsGuiDefaultProfile";
  1061. HorizSizing = "left";
  1062. VertSizing = "bottom";
  1063. position = "177 34";
  1064. Extent = "16 16";
  1065. MinExtent = "8 2";
  1066. canSave = "1";
  1067. Visible = "1";
  1068. Command = "MaterialEditorGui.updateTextureMap(\"overlay\", 0);";
  1069. hovertime = "1000";
  1070. groupNum = "-1";
  1071. buttonType = "PushButton";
  1072. useMouseEvents = "0";
  1073. bitmap = "tools/gui/images/delete";
  1074. };
  1075. };
  1076. new GuiBitmapCtrl(){
  1077. position="6 189";
  1078. extent ="175 2";
  1079. HorizSizing = "width";
  1080. bitmap ="tools/gui/images/separator-v";
  1081. };
  1082. new GuiContainer(){ // light Map
  1083. profile="ToolsGuiDefaultProfile";
  1084. isContainer = "1";
  1085. position = "6 250";
  1086. Extent = "185 52";
  1087. HorizSizing = "width";
  1088. new GuiBitmapCtrl() {
  1089. canSaveDynamicFields = "0";
  1090. internalName = "lightMapDisplayBitmap";
  1091. Enabled = "1";
  1092. isContainer = "0";
  1093. Profile = "ToolsGuiDefaultProfile";
  1094. HorizSizing = "right";
  1095. VertSizing = "bottom";
  1096. position = "1 1";
  1097. Extent = "48 48";
  1098. MinExtent = "8 2";
  1099. canSave = "1";
  1100. Visible = "1";
  1101. hovertime = "1000";
  1102. bitmap = "tools/materialEditor/gui/unknownImage";
  1103. wrap = "0";
  1104. };
  1105. new GuiTextCtrl() {
  1106. canSaveDynamicFields = "0";
  1107. Enabled = "1";
  1108. isContainer = "0";
  1109. Profile = "EditorTextProfile";
  1110. HorizSizing = "right";
  1111. VertSizing = "bottom";
  1112. position = "56 -3";
  1113. Extent = "72 18";
  1114. MinExtent = "8 2";
  1115. canSave = "1";
  1116. Visible = "1";
  1117. hovertime = "1000";
  1118. Margin = "0 0 0 0";
  1119. Padding = "0 0 0 0";
  1120. AnchorTop = "1";
  1121. AnchorBottom = "0";
  1122. AnchorLeft = "1";
  1123. AnchorRight = "0";
  1124. text = "Light Map";
  1125. maxLength = "1024";
  1126. };
  1127. new GuiBitmapButtonCtrl() {
  1128. canSaveDynamicFields = "0";
  1129. Enabled = "1";
  1130. isContainer = "0";
  1131. Profile = "ToolsGuiDefaultProfile";
  1132. HorizSizing = "right";
  1133. VertSizing = "bottom";
  1134. position = "1 1";
  1135. Extent = "48 48";
  1136. MinExtent = "8 2";
  1137. canSave = "1";
  1138. Visible = "1";
  1139. Command = "MaterialEditorGui.updateTextureMap(\"light\", 1);";
  1140. tooltipprofile = "ToolsGuiDefaultProfile";
  1141. ToolTip = "Change the active light Map for this layer.";
  1142. hovertime = "1000";
  1143. groupNum = "-1";
  1144. buttonType = "PushButton";
  1145. useMouseEvents = "0";
  1146. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1147. };
  1148. new GuiTextCtrl() {
  1149. canSaveDynamicFields = "0";
  1150. internalName = "lightMapNameText";
  1151. Enabled = "1";
  1152. isContainer = "0";
  1153. Profile = "ToolsGuiTextProfile";
  1154. HorizSizing = "width";
  1155. VertSizing = "bottom";
  1156. position = "56 16";
  1157. Extent = "143 17";
  1158. MinExtent = "8 2";
  1159. canSave = "1";
  1160. Visible = "1";
  1161. hovertime = "1000";
  1162. Margin = "0 0 0 0";
  1163. Padding = "0 0 0 0";
  1164. AnchorTop = "1";
  1165. AnchorBottom = "0";
  1166. AnchorLeft = "1";
  1167. AnchorRight = "0";
  1168. text = "None";
  1169. maxLength = "1024";
  1170. };
  1171. new GuiButtonCtrl(){
  1172. profile="ToolsGuiButtonProfile";
  1173. text ="Edit";
  1174. HorizSizing = "left";
  1175. VertSizing = "bottom";
  1176. position = "134 34";
  1177. Extent = "40 16";
  1178. buttonType = "PushButton";
  1179. command="MaterialEditorGui.updateTextureMap(\"light\", 1);";
  1180. };
  1181. new GuiBitmapButtonCtrl() {
  1182. canSaveDynamicFields = "0";
  1183. Enabled = "1";
  1184. isContainer = "0";
  1185. Profile = "ToolsGuiDefaultProfile";
  1186. HorizSizing = "left";
  1187. VertSizing = "bottom";
  1188. position = "177 34";
  1189. Extent = "16 16";
  1190. MinExtent = "8 2";
  1191. canSave = "1";
  1192. Visible = "1";
  1193. Command = "MaterialEditorGui.updateTextureMap(\"light\", 0);";
  1194. hovertime = "1000";
  1195. groupNum = "-1";
  1196. buttonType = "PushButton";
  1197. useMouseEvents = "0";
  1198. bitmap = "tools/gui/images/delete";
  1199. };
  1200. };
  1201. new GuiBitmapCtrl(){
  1202. position="6 303";
  1203. extent ="175 2";
  1204. HorizSizing = "width";
  1205. bitmap ="tools/gui/images/separator-v";
  1206. };
  1207. new GuiContainer(){ // tone Map
  1208. profile="ToolsGuiDefaultProfile";
  1209. isContainer = "1";
  1210. position = "6 307";
  1211. Extent = "185 52";
  1212. HorizSizing = "width";
  1213. new GuiBitmapCtrl() {
  1214. canSaveDynamicFields = "0";
  1215. internalName = "toneMapDisplayBitmap";
  1216. Enabled = "1";
  1217. isContainer = "0";
  1218. Profile = "ToolsGuiDefaultProfile";
  1219. HorizSizing = "right";
  1220. VertSizing = "bottom";
  1221. position = "1 1";
  1222. Extent = "48 48";
  1223. MinExtent = "8 2";
  1224. canSave = "1";
  1225. Visible = "1";
  1226. hovertime = "1000";
  1227. bitmap = "tools/materialEditor/gui/unknownImage";
  1228. wrap = "0";
  1229. };
  1230. new GuiTextCtrl() {
  1231. canSaveDynamicFields = "0";
  1232. Enabled = "1";
  1233. isContainer = "0";
  1234. Profile = "EditorTextProfile";
  1235. HorizSizing = "right";
  1236. VertSizing = "bottom";
  1237. position = "56 -3";
  1238. Extent = "72 18";
  1239. MinExtent = "8 2";
  1240. canSave = "1";
  1241. Visible = "1";
  1242. hovertime = "1000";
  1243. Margin = "0 0 0 0";
  1244. Padding = "0 0 0 0";
  1245. AnchorTop = "1";
  1246. AnchorBottom = "0";
  1247. AnchorLeft = "1";
  1248. AnchorRight = "0";
  1249. text = "Tone Map";
  1250. maxLength = "1024";
  1251. };
  1252. new GuiBitmapButtonCtrl() {
  1253. canSaveDynamicFields = "0";
  1254. Enabled = "1";
  1255. isContainer = "0";
  1256. Profile = "ToolsGuiDefaultProfile";
  1257. HorizSizing = "right";
  1258. VertSizing = "bottom";
  1259. position = "1 1";
  1260. Extent = "48 48";
  1261. MinExtent = "8 2";
  1262. canSave = "1";
  1263. Visible = "1";
  1264. Command = "MaterialEditorGui.updateTextureMap(\"tone\", 1);";
  1265. tooltipprofile = "ToolsGuiDefaultProfile";
  1266. ToolTip = "Change the active Tone Map for this layer.";
  1267. hovertime = "1000";
  1268. groupNum = "-1";
  1269. buttonType = "PushButton";
  1270. useMouseEvents = "0";
  1271. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  1272. };
  1273. new GuiTextCtrl() {
  1274. canSaveDynamicFields = "0";
  1275. internalName = "toneMapNameText";
  1276. Enabled = "1";
  1277. isContainer = "0";
  1278. Profile = "ToolsGuiTextProfile";
  1279. HorizSizing = "width";
  1280. VertSizing = "bottom";
  1281. position = "56 16";
  1282. Extent = "143 17";
  1283. MinExtent = "8 2";
  1284. canSave = "1";
  1285. Visible = "1";
  1286. hovertime = "1000";
  1287. Margin = "0 0 0 0";
  1288. Padding = "0 0 0 0";
  1289. AnchorTop = "1";
  1290. AnchorBottom = "0";
  1291. AnchorLeft = "1";
  1292. AnchorRight = "0";
  1293. text = "None";
  1294. maxLength = "1024";
  1295. };
  1296. new GuiButtonCtrl(){
  1297. profile="ToolsGuiButtonProfile";
  1298. text ="Edit";
  1299. HorizSizing = "left";
  1300. VertSizing = "bottom";
  1301. position = "134 34";
  1302. Extent = "40 16";
  1303. buttonType = "PushButton";
  1304. command="MaterialEditorGui.updateTextureMap(\"tone\", 1);";
  1305. };
  1306. new GuiBitmapButtonCtrl() {
  1307. canSaveDynamicFields = "0";
  1308. Enabled = "1";
  1309. isContainer = "0";
  1310. Profile = "ToolsGuiDefaultProfile";
  1311. HorizSizing = "left";
  1312. VertSizing = "bottom";
  1313. position = "177 34";
  1314. Extent = "16 16";
  1315. MinExtent = "8 2";
  1316. canSave = "1";
  1317. Visible = "1";
  1318. Command = "MaterialEditorGui.updateTextureMap(\"tone\", 0);";
  1319. hovertime = "1000";
  1320. groupNum = "-1";
  1321. buttonType = "PushButton";
  1322. useMouseEvents = "0";
  1323. bitmap = "tools/gui/images/delete";
  1324. };
  1325. };
  1326. };
  1327. };
  1328. new GuiRolloutCtrl() {
  1329. class = "BehaviorQuickEditRollout";
  1330. superclass = LBQuickEditRollout;
  1331. Profile = "GuiRolloutProfile";
  1332. HorizSizing = "width";
  1333. VertSizing = "bottom";
  1334. Position = "0 0";
  1335. Extent = "195 0";
  1336. Caption = "Accumulation Properties";
  1337. Expanded = false;
  1338. Margin = "-1 0 0 0";
  1339. DragSizable = false;
  1340. container = true;
  1341. parentRollout = %this.rollout;
  1342. object = %behavior;
  1343. new GuiStackControl() {
  1344. StackingType = "Vertical";
  1345. HorizStacking = "Left to Right";
  1346. VertStacking = "Top to Bottom";
  1347. Padding = "0";
  1348. canSaveDynamicFields = "0";
  1349. Enabled = "1";
  1350. isContainer = "1";
  1351. Profile = "GuiDefaultProfile";
  1352. HorizSizing = "width";
  1353. VertSizing = "bottom";
  1354. Position = "1 3";
  1355. Extent = "195 16";
  1356. MinExtent = "16 16";
  1357. canSave = "1";
  1358. isDecoy = "0";
  1359. Visible = "1";
  1360. tooltipprofile = "GuiToolTipProfile";
  1361. hovertime = "1000";
  1362. new GuiContainer(){ // enable/disable
  1363. profile="GuiTransparentProfile";
  1364. isContainer = "1";
  1365. position = "0 0";
  1366. Extent = "195 24";
  1367. HorizSizing = "width";
  1368. new GuiCheckBoxCtrl() {
  1369. canSaveDynamicFields = "0";
  1370. internalName = "accuCheckbox";
  1371. Enabled = "1";
  1372. isContainer = "0";
  1373. Profile = "ToolsGuiCheckBoxProfile";
  1374. HorizSizing = "right";
  1375. VertSizing = "bottom";
  1376. position = "8 7";
  1377. Extent = "57 16";
  1378. MinExtent = "8 2";
  1379. canSave = "1";
  1380. Visible = "1";
  1381. Command = "MaterialEditorGui.updateAccuCheckbox($ThisControl.getValue());";
  1382. tooltipprofile = "ToolsGuiDefaultProfile";
  1383. ToolTip = "Enables the use of Pixel Specular for this layer.";
  1384. hovertime = "1000";
  1385. text = "Enable";
  1386. groupNum = "-1";
  1387. buttonType = "ToggleButton";
  1388. useMouseEvents = "0";
  1389. useInactiveState = "0";
  1390. };
  1391. };
  1392. new GuiContainer(){ // scale
  1393. profile="GuiTransparentProfile";
  1394. isContainer = "1";
  1395. position = "0 0";
  1396. Extent = "195 24";
  1397. HorizSizing = "width";
  1398. new GuiTextCtrl() {
  1399. canSaveDynamicFields = "0";
  1400. Enabled = "1";
  1401. isContainer = "0";
  1402. Profile = "GuiTextRightProfile";
  1403. HorizSizing = "right";
  1404. VertSizing = "bottom";
  1405. position = "8 3";
  1406. Extent = "54 16";
  1407. MinExtent = "8 2";
  1408. canSave = "1";
  1409. Visible = "1";
  1410. hovertime = "1000";
  1411. Margin = "0 0 0 0";
  1412. Padding = "0 0 0 0";
  1413. AnchorTop = "1";
  1414. AnchorBottom = "0";
  1415. AnchorLeft = "1";
  1416. AnchorRight = "0";
  1417. text = "Scale";
  1418. maxLength = "1024";
  1419. };
  1420. new GuiControl() {
  1421. class = "AggregateControl";
  1422. position = "70 3";
  1423. Extent = "96 20";
  1424. new GuiSliderCtrl() {
  1425. canSaveDynamicFields = "0";
  1426. internalName = "accuScaleSlider";
  1427. Enabled = "1";
  1428. isContainer = "0";
  1429. Profile = "GuiSliderProfile";
  1430. HorizSizing = "right";
  1431. VertSizing = "bottom";
  1432. position = "0 2";
  1433. Extent = "61 14";
  1434. MinExtent = "8 2";
  1435. canSave = "1";
  1436. Visible = "1";
  1437. Command = "MaterialEditorGui.updateActiveMaterial(\"accuScale[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1438. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuScale[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1439. tooltipprofile = "GuiDefaultProfile";
  1440. ToolTip = "Sets the scale of the accu map.";
  1441. hovertime = "1000";
  1442. range = "0.03125 32";
  1443. ticks = "0";
  1444. value = "1";
  1445. };
  1446. new GuiTextEditCtrl() {
  1447. canSaveDynamicFields = "0";
  1448. internalName = "accuScaleTextEdit";
  1449. Enabled = "1";
  1450. isContainer = "0";
  1451. Profile = "GuiTextEditProfile";
  1452. HorizSizing = "right";
  1453. VertSizing = "bottom";
  1454. position = "64 0";
  1455. Extent = "29 18";
  1456. MinExtent = "8 2";
  1457. canSave = "1";
  1458. Visible = "1";
  1459. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuScale[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1460. hovertime = "1000";
  1461. AnchorTop = "1";
  1462. AnchorBottom = "0";
  1463. AnchorLeft = "1";
  1464. AnchorRight = "0";
  1465. text = "1";
  1466. maxLength = "3";
  1467. };
  1468. };
  1469. };
  1470. new GuiContainer(){ // direction
  1471. profile="GuiTransparentProfile";
  1472. isContainer = "1";
  1473. position = "0 0";
  1474. Extent = "195 24";
  1475. HorizSizing = "width";
  1476. new GuiTextCtrl() {
  1477. canSaveDynamicFields = "0";
  1478. Enabled = "1";
  1479. isContainer = "0";
  1480. Profile = "GuiTextRightProfile";
  1481. HorizSizing = "right";
  1482. VertSizing = "bottom";
  1483. position = "8 3";
  1484. Extent = "54 16";
  1485. MinExtent = "8 2";
  1486. canSave = "1";
  1487. Visible = "1";
  1488. hovertime = "1000";
  1489. Margin = "0 0 0 0";
  1490. Padding = "0 0 0 0";
  1491. AnchorTop = "1";
  1492. AnchorBottom = "0";
  1493. AnchorLeft = "1";
  1494. AnchorRight = "0";
  1495. text = "Direction";
  1496. maxLength = "1024";
  1497. };
  1498. new GuiControl() {
  1499. class = "AggregateControl";
  1500. position = "70 3";
  1501. Extent = "96 20";
  1502. new GuiSliderCtrl() {
  1503. canSaveDynamicFields = "0";
  1504. internalName = "accuDirectionSlider";
  1505. Enabled = "1";
  1506. isContainer = "0";
  1507. Profile = "GuiSliderProfile";
  1508. HorizSizing = "right";
  1509. VertSizing = "bottom";
  1510. position = "0 2";
  1511. Extent = "61 14";
  1512. MinExtent = "8 2";
  1513. canSave = "1";
  1514. Visible = "1";
  1515. Command = "MaterialEditorGui.updateActiveMaterial(\"accuDirection[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1516. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuDirection[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1517. tooltipprofile = "GuiDefaultProfile";
  1518. ToolTip = "Sets the direction of the accu map.";
  1519. hovertime = "1000";
  1520. range = "-1 1";
  1521. ticks = "0";
  1522. value = "-1";
  1523. };
  1524. new GuiTextEditCtrl() {
  1525. canSaveDynamicFields = "0";
  1526. internalName = "accuDirectionTextEdit";
  1527. Enabled = "1";
  1528. isContainer = "0";
  1529. Profile = "GuiTextEditProfile";
  1530. HorizSizing = "right";
  1531. VertSizing = "bottom";
  1532. position = "64 0";
  1533. Extent = "29 18";
  1534. MinExtent = "8 2";
  1535. canSave = "1";
  1536. Visible = "1";
  1537. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuDirection[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1538. hovertime = "1000";
  1539. AnchorTop = "1";
  1540. AnchorBottom = "0";
  1541. AnchorLeft = "1";
  1542. AnchorRight = "0";
  1543. text = "-1";
  1544. maxLength = "3";
  1545. };
  1546. };
  1547. };
  1548. new GuiContainer(){ // strength
  1549. profile="GuiTransparentProfile";
  1550. isContainer = "1";
  1551. position = "0 0";
  1552. Extent = "195 24";
  1553. HorizSizing = "width";
  1554. new GuiTextCtrl() {
  1555. canSaveDynamicFields = "0";
  1556. Enabled = "1";
  1557. isContainer = "0";
  1558. Profile = "GuiTextRightProfile";
  1559. HorizSizing = "right";
  1560. VertSizing = "bottom";
  1561. position = "8 3";
  1562. Extent = "54 16";
  1563. MinExtent = "8 2";
  1564. canSave = "1";
  1565. Visible = "1";
  1566. hovertime = "1000";
  1567. Margin = "0 0 0 0";
  1568. Padding = "0 0 0 0";
  1569. AnchorTop = "1";
  1570. AnchorBottom = "0";
  1571. AnchorLeft = "1";
  1572. AnchorRight = "0";
  1573. text = "Strength";
  1574. maxLength = "1024";
  1575. };
  1576. new GuiControl() {
  1577. class = "AggregateControl";
  1578. position = "70 3";
  1579. Extent = "96 20";
  1580. new GuiSliderCtrl() {
  1581. canSaveDynamicFields = "0";
  1582. internalName = "accuStrengthSlider";
  1583. Enabled = "1";
  1584. isContainer = "0";
  1585. Profile = "GuiSliderProfile";
  1586. HorizSizing = "right";
  1587. VertSizing = "bottom";
  1588. position = "0 2";
  1589. Extent = "61 14";
  1590. MinExtent = "8 2";
  1591. canSave = "1";
  1592. Visible = "1";
  1593. Command = "MaterialEditorGui.updateActiveMaterial(\"accuStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1594. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1595. tooltipprofile = "GuiDefaultProfile";
  1596. ToolTip = "Sets the strength of the accu map.";
  1597. hovertime = "1000";
  1598. range = "0 1";
  1599. ticks = "0";
  1600. value = "0.6";
  1601. };
  1602. new GuiTextEditCtrl() {
  1603. canSaveDynamicFields = "0";
  1604. internalName = "accuStrengthTextEdit";
  1605. Enabled = "1";
  1606. isContainer = "0";
  1607. Profile = "GuiTextEditProfile";
  1608. HorizSizing = "right";
  1609. VertSizing = "bottom";
  1610. position = "64 0";
  1611. Extent = "29 18";
  1612. MinExtent = "8 2";
  1613. canSave = "1";
  1614. Visible = "1";
  1615. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1616. hovertime = "1000";
  1617. AnchorTop = "1";
  1618. AnchorBottom = "0";
  1619. AnchorLeft = "1";
  1620. AnchorRight = "0";
  1621. text = "0.6";
  1622. maxLength = "3";
  1623. };
  1624. };
  1625. };
  1626. new GuiContainer(){ // coverage
  1627. profile="GuiTransparentProfile";
  1628. isContainer = "1";
  1629. position = "0 0";
  1630. Extent = "195 24";
  1631. HorizSizing = "width";
  1632. new GuiTextCtrl() {
  1633. canSaveDynamicFields = "0";
  1634. Enabled = "1";
  1635. isContainer = "0";
  1636. Profile = "GuiTextRightProfile";
  1637. HorizSizing = "right";
  1638. VertSizing = "bottom";
  1639. position = "8 3";
  1640. Extent = "54 16";
  1641. MinExtent = "8 2";
  1642. canSave = "1";
  1643. Visible = "1";
  1644. hovertime = "1000";
  1645. Margin = "0 0 0 0";
  1646. Padding = "0 0 0 0";
  1647. AnchorTop = "1";
  1648. AnchorBottom = "0";
  1649. AnchorLeft = "1";
  1650. AnchorRight = "0";
  1651. text = "Coverage";
  1652. maxLength = "1024";
  1653. };
  1654. new GuiControl() {
  1655. class = "AggregateControl";
  1656. position = "70 3";
  1657. Extent = "96 20";
  1658. new GuiSliderCtrl() {
  1659. canSaveDynamicFields = "0";
  1660. internalName = "accuCoverageSlider";
  1661. Enabled = "1";
  1662. isContainer = "0";
  1663. Profile = "GuiSliderProfile";
  1664. HorizSizing = "right";
  1665. VertSizing = "bottom";
  1666. position = "0 2";
  1667. Extent = "61 14";
  1668. MinExtent = "8 2";
  1669. canSave = "1";
  1670. Visible = "1";
  1671. Command = "MaterialEditorGui.updateActiveMaterial(\"accuCoverage[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1672. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuCoverage[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1673. tooltipprofile = "GuiDefaultProfile";
  1674. ToolTip = "Sets the coverage of the accu map.";
  1675. hovertime = "1000";
  1676. range = "0 2";
  1677. ticks = "0";
  1678. value = "1";
  1679. };
  1680. new GuiTextEditCtrl() {
  1681. canSaveDynamicFields = "0";
  1682. internalName = "accuCoverageTextEdit";
  1683. Enabled = "1";
  1684. isContainer = "0";
  1685. Profile = "GuiTextEditProfile";
  1686. HorizSizing = "right";
  1687. VertSizing = "bottom";
  1688. position = "64 0";
  1689. Extent = "29 18";
  1690. MinExtent = "8 2";
  1691. canSave = "1";
  1692. Visible = "1";
  1693. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuCoverage[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1694. hovertime = "1000";
  1695. AnchorTop = "1";
  1696. AnchorBottom = "0";
  1697. AnchorLeft = "1";
  1698. AnchorRight = "0";
  1699. text = "1";
  1700. maxLength = "3";
  1701. };
  1702. };
  1703. };
  1704. new GuiContainer(){ // specular
  1705. profile="GuiTransparentProfile";
  1706. isContainer = "1";
  1707. position = "0 0";
  1708. Extent = "195 24";
  1709. HorizSizing = "width";
  1710. new GuiTextCtrl() {
  1711. canSaveDynamicFields = "0";
  1712. Enabled = "1";
  1713. isContainer = "0";
  1714. Profile = "GuiTextRightProfile";
  1715. HorizSizing = "right";
  1716. VertSizing = "bottom";
  1717. position = "8 3";
  1718. Extent = "54 16";
  1719. MinExtent = "8 2";
  1720. canSave = "1";
  1721. Visible = "1";
  1722. hovertime = "1000";
  1723. Margin = "0 0 0 0";
  1724. Padding = "0 0 0 0";
  1725. AnchorTop = "1";
  1726. AnchorBottom = "0";
  1727. AnchorLeft = "1";
  1728. AnchorRight = "0";
  1729. text = "Specular scale";
  1730. maxLength = "1024";
  1731. };
  1732. new GuiControl() {
  1733. class = "AggregateControl";
  1734. position = "70 3";
  1735. Extent = "96 20";
  1736. new GuiSliderCtrl() {
  1737. canSaveDynamicFields = "0";
  1738. internalName = "accuSpecularSlider";
  1739. Enabled = "1";
  1740. isContainer = "0";
  1741. Profile = "GuiSliderProfile";
  1742. HorizSizing = "right";
  1743. VertSizing = "bottom";
  1744. position = "0 2";
  1745. Extent = "61 14";
  1746. MinExtent = "8 2";
  1747. canSave = "1";
  1748. Visible = "1";
  1749. Command = "MaterialEditorGui.updateActiveMaterial(\"accuSpecular[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1750. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuSpecular[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1751. tooltipprofile = "GuiDefaultProfile";
  1752. ToolTip = "Sets the specular scale over the accu map.";
  1753. hovertime = "1000";
  1754. range = "0 2";
  1755. ticks = "0";
  1756. value = "1";
  1757. };
  1758. new GuiTextEditCtrl() {
  1759. canSaveDynamicFields = "0";
  1760. internalName = "accuSpecularTextEdit";
  1761. Enabled = "1";
  1762. isContainer = "0";
  1763. Profile = "GuiTextEditProfile";
  1764. HorizSizing = "right";
  1765. VertSizing = "bottom";
  1766. position = "64 0";
  1767. Extent = "29 18";
  1768. MinExtent = "8 2";
  1769. canSave = "1";
  1770. Visible = "1";
  1771. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"accuSpecular[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1772. hovertime = "1000";
  1773. AnchorTop = "1";
  1774. AnchorBottom = "0";
  1775. AnchorLeft = "1";
  1776. AnchorRight = "0";
  1777. text = "1";
  1778. maxLength = "3";
  1779. };
  1780. };
  1781. };
  1782. };
  1783. };
  1784. new GuiRolloutCtrl() {
  1785. class = "BehaviorQuickEditRollout";
  1786. superclass = LBQuickEditRollout;
  1787. Profile = "GuiRolloutProfile";
  1788. HorizSizing = "width";
  1789. VertSizing = "bottom";
  1790. Position = "0 0";
  1791. Extent = "185 0";
  1792. Caption = "Lighting Properties";
  1793. Expanded = false;
  1794. Margin = "-1 0 0 0";
  1795. DragSizable = false;
  1796. container = true;
  1797. parentRollout = %this.rollout;
  1798. object = %behavior;
  1799. new GuiStackControl() {
  1800. StackingType = "Vertical";
  1801. HorizStacking = "Left to Right";
  1802. VertStacking = "Top to Bottom";
  1803. Padding = "0";
  1804. canSaveDynamicFields = "0";
  1805. Enabled = "1";
  1806. isContainer = "1";
  1807. Profile = "ToolsGuiDefaultProfile";
  1808. HorizSizing = "width";
  1809. VertSizing = "bottom";
  1810. Position = "1 3";
  1811. Extent = "185 16";
  1812. MinExtent = "16 16";
  1813. canSave = "1";
  1814. isDecoy = "0";
  1815. Visible = "1";
  1816. tooltipprofile = "ToolsGuiToolTipProfile";
  1817. hovertime = "1000";
  1818. new GuiContainer(){ // specular
  1819. profile = "ToolsGuiTransparentProfile";
  1820. isContainer = "1";
  1821. position = "0 0";
  1822. Extent = "185 44";
  1823. HorizSizing = "width";
  1824. new GuiCheckBoxCtrl() {
  1825. canSaveDynamicFields = "0";
  1826. internalName = "pixelSpecularCheckbox";
  1827. Enabled = "1";
  1828. isContainer = "0";
  1829. Profile = "ToolsGuiCheckBoxProfile";
  1830. HorizSizing = "right";
  1831. VertSizing = "bottom";
  1832. position = "8 4";
  1833. Extent = "57 16";
  1834. MinExtent = "8 2";
  1835. canSave = "1";
  1836. Visible = "1";
  1837. Command = "MaterialEditorGui.updateSpecularCheckbox($ThisControl.getValue());";
  1838. tooltipprofile = "ToolsGuiDefaultProfile";
  1839. ToolTip = "Enables the use of Pixel Specular for this layer.";
  1840. hovertime = "1000";
  1841. text = "Specular";
  1842. groupNum = "-1";
  1843. buttonType = "ToggleButton";
  1844. useMouseEvents = "0";
  1845. useInactiveState = "0";
  1846. };
  1847. new GuiSwatchButtonCtrl() {
  1848. canSaveDynamicFields = "0";
  1849. internalName = "specularColorSwatch";
  1850. Enabled = "1";
  1851. isContainer = "0";
  1852. Profile = "GuiInspectorSwatchButtonProfile";
  1853. HorizSizing = "right";
  1854. VertSizing = "bottom";
  1855. position = "69 4";
  1856. Extent = "16 16";
  1857. MinExtent = "8 2";
  1858. canSave = "1";
  1859. Visible = "1";
  1860. Command = "getColorF(materialEd_PreviewMaterial.specular[MaterialEditorGui.currentLayer], \"MaterialEditorGui.updateSpecular\");";
  1861. hovertime = "1000";
  1862. groupNum = "-1";
  1863. buttonType = "PushButton";
  1864. useMouseEvents = "0";
  1865. };
  1866. new GuiTextCtrl() {
  1867. HorizSizing = "right";
  1868. VertSizing = "bottom";
  1869. position = "9 26";
  1870. Extent = "72 16";
  1871. text = "Spec strength";
  1872. };
  1873. new GuiControl() {
  1874. class = "AggregateControl";
  1875. position = "91 4";
  1876. Extent = "96 20";
  1877. new GuiSliderCtrl() {
  1878. canSaveDynamicFields = "0";
  1879. internalName = "specularPowerSlider";
  1880. Enabled = "1";
  1881. isContainer = "0";
  1882. Profile = "ToolsGuiSliderProfile";
  1883. HorizSizing = "right";
  1884. VertSizing = "bottom";
  1885. position = "0 1";
  1886. Extent = "61 14";
  1887. MinExtent = "8 2";
  1888. canSave = "1";
  1889. Visible = "1";
  1890. Command = "MaterialEditorGui.updateActiveMaterial(\"specularPower[\" @ MaterialEditorGui.currentLayer @ \"]\", mCeil($ThisControl.getValue()), true, true);";
  1891. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"specularPower[\" @ MaterialEditorGui.currentLayer @ \"]\", mCeil($ThisControl.getValue()), true, false);";
  1892. tooltipprofile = "ToolsGuiDefaultProfile";
  1893. ToolTip = "Sets the hardness of the Pixel Specular value.";
  1894. hovertime = "1000";
  1895. range = "1 128";
  1896. ticks = "0";
  1897. value = "1";
  1898. };
  1899. new GuiTextEditCtrl() {
  1900. canSaveDynamicFields = "0";
  1901. internalName = "specularPowerTextEdit";
  1902. Enabled = "1";
  1903. isContainer = "0";
  1904. Profile = "ToolsGuiTextEditProfile";
  1905. HorizSizing = "right";
  1906. VertSizing = "bottom";
  1907. position = "64 0";
  1908. Extent = "29 18";
  1909. MinExtent = "8 2";
  1910. canSave = "1";
  1911. Visible = "1";
  1912. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"specularPower[\" @ MaterialEditorGui.currentLayer @ \"]\", mCeil($ThisControl.getValue()));";
  1913. hovertime = "1000";
  1914. AnchorTop = "1";
  1915. AnchorBottom = "0";
  1916. AnchorLeft = "1";
  1917. AnchorRight = "0";
  1918. text = "32";
  1919. maxLength = "3";
  1920. };
  1921. };
  1922. new GuiControl() {
  1923. class = "AggregateControl";
  1924. position = "91 26";
  1925. Extent = "96 20";
  1926. new GuiSliderCtrl() {
  1927. canSaveDynamicFields = "0";
  1928. internalName = "specularStrengthSlider";
  1929. Enabled = "1";
  1930. isContainer = "0";
  1931. Profile = "ToolsGuiSliderProfile";
  1932. HorizSizing = "right";
  1933. VertSizing = "bottom";
  1934. position = "0 1";
  1935. Extent = "61 14";
  1936. MinExtent = "8 2";
  1937. canSave = "1";
  1938. Visible = "1";
  1939. Command = "MaterialEditorGui.updateActiveMaterial(\"specularStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, true);";
  1940. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"specularStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue(), true, false);";
  1941. tooltipprofile = "ToolsGuiDefaultProfile";
  1942. ToolTip = "Sets the strength of the Pixel Specular value.";
  1943. hovertime = "1000";
  1944. range = "0 5";
  1945. ticks = "0";
  1946. value = "1";
  1947. };
  1948. new GuiTextEditCtrl() {
  1949. canSaveDynamicFields = "0";
  1950. internalName = "specularStrengthTextEdit";
  1951. Enabled = "1";
  1952. isContainer = "0";
  1953. Profile = "ToolsGuiTextEditProfile";
  1954. HorizSizing = "right";
  1955. VertSizing = "bottom";
  1956. position = "64 0";
  1957. Extent = "29 18";
  1958. MinExtent = "8 2";
  1959. canSave = "1";
  1960. Visible = "1";
  1961. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"specularStrength[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1962. hovertime = "1000";
  1963. AnchorTop = "1";
  1964. AnchorBottom = "0";
  1965. AnchorLeft = "1";
  1966. AnchorRight = "0";
  1967. text = "1";
  1968. maxLength = "3";
  1969. };
  1970. };
  1971. };
  1972. new GuiContainer(){ // glow emissive
  1973. profile = "ToolsGuiTransparentProfile";
  1974. isContainer = "1";
  1975. position = "0 0";
  1976. Extent = "185 22";
  1977. HorizSizing = "width";
  1978. new GuiCheckBoxCtrl() {
  1979. canSaveDynamicFields = "0";
  1980. internalName = "glowCheckbox";
  1981. Enabled = "1";
  1982. isContainer = "0";
  1983. Profile = "ToolsGuiCheckBoxProfile";
  1984. HorizSizing = "right";
  1985. VertSizing = "bottom";
  1986. position = "70 4";
  1987. Extent = "40 16";
  1988. MinExtent = "8 2";
  1989. canSave = "1";
  1990. Visible = "1";
  1991. Command = "MaterialEditorGui.updateActiveMaterial(\"glow[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  1992. tooltipprofile = "ToolsGuiDefaultProfile";
  1993. ToolTip = "Determines if this layer will Glow or not.";
  1994. hovertime = "1000";
  1995. text = "Glow";
  1996. groupNum = "-1";
  1997. buttonType = "ToggleButton";
  1998. useMouseEvents = "0";
  1999. useInactiveState = "0";
  2000. };
  2001. new GuiCheckBoxCtrl() {
  2002. canSaveDynamicFields = "0";
  2003. internalName = "emissiveCheckbox";
  2004. Enabled = "1";
  2005. isContainer = "0";
  2006. Profile = "ToolsGuiCheckBoxProfile";
  2007. HorizSizing = "right";
  2008. VertSizing = "bottom";
  2009. position = "8 4";
  2010. Extent = "60 16";
  2011. MinExtent = "8 2";
  2012. canSave = "1";
  2013. Visible = "1";
  2014. Command = "MaterialEditorGui.updateActiveMaterial(\"emissive[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue());";
  2015. tooltipprofile = "ToolsGuiDefaultProfile";
  2016. ToolTip = "Emissive causes an object to not be affected by lights. Good for light sources.";
  2017. hovertime = "1000";
  2018. text = "Emissive";
  2019. groupNum = "-1";
  2020. buttonType = "ToggleButton";
  2021. useMouseEvents = "0";
  2022. useInactiveState = "0";
  2023. };
  2024. };
  2025. new GuiContainer(){ // parallax
  2026. profile = "ToolsGuiTransparentProfile";
  2027. isContainer = "1";
  2028. position = "0 0";
  2029. Extent = "185 24";
  2030. HorizSizing = "width";
  2031. new GuiTextCtrl() {
  2032. canSaveDynamicFields = "0";
  2033. Enabled = "1";
  2034. isContainer = "0";
  2035. Profile = "ToolsGuiTextRightProfile";
  2036. HorizSizing = "right";
  2037. VertSizing = "bottom";
  2038. position = "8 3";
  2039. Extent = "54 16";
  2040. MinExtent = "8 2";
  2041. canSave = "1";
  2042. Visible = "1";
  2043. hovertime = "1000";
  2044. Margin = "0 0 0 0";
  2045. Padding = "0 0 0 0";
  2046. AnchorTop = "1";
  2047. AnchorBottom = "0";
  2048. AnchorLeft = "1";
  2049. AnchorRight = "0";
  2050. text = "Parallax";
  2051. maxLength = "1024";
  2052. };
  2053. new GuiControl() {
  2054. class = "AggregateControl";
  2055. position = "70 3";
  2056. Extent = "115 20";
  2057. new GuiSliderCtrl() {
  2058. canSaveDynamicFields = "0";
  2059. internalName = "parallaxSlider";
  2060. Enabled = "1";
  2061. isContainer = "0";
  2062. Profile = "ToolsGuiSliderProfile";
  2063. HorizSizing = "right";
  2064. VertSizing = "bottom";
  2065. position = "0 2";
  2066. Extent = "82 15";
  2067. MinExtent = "8 2";
  2068. canSave = "1";
  2069. Visible = "1";
  2070. Command = "MaterialEditorGui.updateActiveMaterial(\"parallaxScale[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue(), true, true);";
  2071. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateActiveMaterial(\"parallaxScale[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue(), true, false);";
  2072. tooltipprofile = "ToolsGuiDefaultProfile";
  2073. ToolTip = "Parallax Scale";
  2074. hovertime = "1000";
  2075. range = "0 1";
  2076. ticks = "0";
  2077. value = "0";
  2078. };
  2079. new GuiTextEditCtrl() {
  2080. canSaveDynamicFields = "0";
  2081. internalName = "parallaxTextEdit";
  2082. Enabled = "1";
  2083. isContainer = "0";
  2084. Profile = "ToolsGuiTextEditProfile";
  2085. HorizSizing = "right";
  2086. VertSizing = "bottom";
  2087. position = "85 0";
  2088. Extent = "29 18";
  2089. MinExtent = "8 2";
  2090. canSave = "1";
  2091. Visible = "1";
  2092. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateActiveMaterial(\"parallaxScale[\" @ MaterialEditorGui.currentLayer @ \"]\",$ThisControl.getValue());";
  2093. hovertime = "1000";
  2094. AnchorTop = "1";
  2095. AnchorBottom = "0";
  2096. AnchorLeft = "1";
  2097. AnchorRight = "0";
  2098. text = "0";
  2099. maxLength = "3";
  2100. };
  2101. };
  2102. };
  2103. new GuiContainer(){
  2104. profile = "ToolsGuiTransparentProfile";
  2105. isContainer = "1";
  2106. position = "0 0";
  2107. Extent = "185 84";
  2108. HorizSizing = "width";
  2109. new GuiCheckBoxCtrl() {
  2110. canSaveDynamicFields = "0";
  2111. internalName = "useAnisoCheckbox";
  2112. Enabled = "1";
  2113. isContainer = "0";
  2114. Profile = "ToolsGuiCheckBoxProfile";
  2115. HorizSizing = "right";
  2116. VertSizing = "bottom";
  2117. position = "8 4";
  2118. Extent = "108 16";
  2119. MinExtent = "8 2";
  2120. canSave = "1";
  2121. Visible = "1";
  2122. Command = "MaterialEditorGui.updateActiveMaterial(\"useAnisotropic[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2123. tooltipprofile = "ToolsGuiDefaultProfile";
  2124. ToolTip = "Enables the use of anisotropic filtering for this layer.";
  2125. hovertime = "1000";
  2126. text = "Anisotropic filtering";
  2127. groupNum = "-1";
  2128. buttonType = "ToggleButton";
  2129. useMouseEvents = "0";
  2130. useInactiveState = "0";
  2131. };
  2132. new GuiCheckBoxCtrl() {
  2133. canSaveDynamicFields = "0";
  2134. internalName = "vertLitCheckbox";
  2135. Enabled = "1";
  2136. isContainer = "0";
  2137. Profile = "ToolsGuiCheckBoxProfile";
  2138. HorizSizing = "right";
  2139. VertSizing = "bottom";
  2140. position = "8 25";
  2141. Extent = "102 16";
  2142. MinExtent = "8 2";
  2143. canSave = "1";
  2144. Visible = "1";
  2145. Command = "MaterialEditorGui.updateActiveMaterial(\"vertLit[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2146. tooltipprofile = "ToolsGuiDefaultProfile";
  2147. ToolTip = "Enables the use of vertex lighting for this layer.";
  2148. hovertime = "1000";
  2149. text = "Vertex lit";
  2150. groupNum = "-1";
  2151. buttonType = "ToggleButton";
  2152. useMouseEvents = "0";
  2153. useInactiveState = "0";
  2154. };
  2155. new GuiCheckBoxCtrl() {
  2156. canSaveDynamicFields = "0";
  2157. internalName = "vertLitCheckbox";
  2158. Enabled = "1";
  2159. isContainer = "0";
  2160. Profile = "ToolsGuiCheckBoxProfile";
  2161. HorizSizing = "right";
  2162. VertSizing = "bottom";
  2163. position = "113 25";
  2164. Extent = "102 16";
  2165. MinExtent = "8 2";
  2166. canSave = "1";
  2167. Visible = "1";
  2168. Command = "MaterialEditorGui.updateActiveMaterial(\"vertColor[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2169. tooltipprofile = "ToolsGuiDefaultProfile";
  2170. ToolTip = "Multiply vertex colors with diffuse colors for this layer.";
  2171. hovertime = "1000";
  2172. text = "Vertex colors";
  2173. groupNum = "-1";
  2174. buttonType = "ToggleButton";
  2175. useMouseEvents = "0";
  2176. useInactiveState = "0";
  2177. };
  2178. new GuiCheckBoxCtrl() {
  2179. canSaveDynamicFields = "0";
  2180. internalName = "subSurfaceCheckbox";
  2181. Enabled = "1";
  2182. isContainer = "0";
  2183. Profile = "ToolsGuiCheckBoxProfile";
  2184. HorizSizing = "right";
  2185. VertSizing = "bottom";
  2186. position = "8 46";
  2187. Extent = "79 16";
  2188. MinExtent = "8 2";
  2189. canSave = "1";
  2190. Visible = "1";
  2191. Command = "MaterialEditorGui.updateActiveMaterial(\"subSurface[\" @ MaterialEditorGui.currentLayer @ \"]\", $ThisControl.getValue());";
  2192. tooltipprofile = "ToolsGuiDefaultProfile";
  2193. ToolTip = "Enables the use of subsurface scattering for this layer.";
  2194. hovertime = "1000";
  2195. text = "Sub Surface";
  2196. groupNum = "-1";
  2197. buttonType = "ToggleButton";
  2198. useMouseEvents = "0";
  2199. useInactiveState = "0";
  2200. };
  2201. };
  2202. };
  2203. };
  2204. new GuiRolloutCtrl(materialAnimationPropertiesRollout) {
  2205. class = "BehaviorQuickEditRollout";
  2206. superclass = LBQuickEditRollout;
  2207. Profile = "GuiRolloutProfile";
  2208. HorizSizing = "width";
  2209. VertSizing = "bottom";
  2210. Position = "0 0";
  2211. Extent = "185 0";
  2212. Caption = "Animation Properties";
  2213. Expanded = false;
  2214. Margin = "-1 0 0 0";
  2215. DragSizable = false;
  2216. container = true;
  2217. parentRollout = %this.rollout;
  2218. object = %behavior;
  2219. new GuiStackControl() {
  2220. StackingType = "Vertical";
  2221. HorizStacking = "Left to Right";
  2222. VertStacking = "Top to Bottom";
  2223. Padding = "0";
  2224. canSaveDynamicFields = "0";
  2225. Enabled = "1";
  2226. isContainer = "1";
  2227. Profile = "ToolsGuiDefaultProfile";
  2228. HorizSizing = "width";
  2229. VertSizing = "bottom";
  2230. Position = "1 3";
  2231. Extent = "185 16";
  2232. MinExtent = "16 16";
  2233. canSave = "1";
  2234. isDecoy = "0";
  2235. Visible = "1";
  2236. tooltipprofile = "ToolsGuiToolTipProfile";
  2237. hovertime = "1000";
  2238. new GuiContainer(){ // Rotation Animation Properties
  2239. profile="inspectorStyleRolloutInnerProfile";
  2240. isContainer = "1";
  2241. position = "-1 96";
  2242. Extent = "185 94";
  2243. HorizSizing = "width";
  2244. new GuiCheckboxCtrl() {
  2245. canSaveDynamicFields = "0";
  2246. internalName = "RotationAnimation";
  2247. Enabled = "1";
  2248. isContainer = "0";
  2249. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  2250. HorizSizing = "right";
  2251. VertSizing = "bottom";
  2252. position = "4 -1";
  2253. Extent = "112 18";
  2254. MinExtent = "8 2";
  2255. canSave = "1";
  2256. Visible = "1";
  2257. Command = "MaterialEditorGui.updateAnimationFlags();";
  2258. hovertime = "1000";
  2259. Margin = "0 0 0 0";
  2260. Padding = "0 0 0 0";
  2261. AnchorTop = "1";
  2262. AnchorBottom = "0";
  2263. AnchorLeft = "1";
  2264. AnchorRight = "0";
  2265. text = "Rotation Animation";
  2266. maxLength = "1024";
  2267. };
  2268. new GuiControl(){
  2269. class = "AggregateControl";
  2270. position = "0 29";
  2271. Extent = "135 20";
  2272. new GuiTextCtrl(){ // u
  2273. HorizSizing = "right";
  2274. VertSizing = "bottom";
  2275. position = "11 1";
  2276. Extent = "12 16";
  2277. text = "U";
  2278. };
  2279. new GuiSliderCtrl() { // u
  2280. Profile = "ToolsGuiSliderProfile";
  2281. internalName = "RotationSliderU";
  2282. HorizSizing = "right";
  2283. VertSizing = "bottom";
  2284. position = "25 2";
  2285. Extent = "68 15";
  2286. Command = "MaterialEditorGui.updateRotationOffset(true, true);";
  2287. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationOffset(true, false);";
  2288. tooltipprofile = "ToolsGuiDefaultProfile";
  2289. ToolTip = "Change U Scroll Direction";
  2290. hovertime = "1000";
  2291. range = "-1 0";
  2292. ticks = "0";
  2293. value = "0";
  2294. };
  2295. new GuiTextEditCtrl(){ // u
  2296. internalName = "RotationTextEditU";
  2297. HorizSizing = "right";
  2298. VertSizing = "bottom";
  2299. position = "98 0";
  2300. Extent = "34 18";
  2301. text = "0";
  2302. Command = "$ThisControl.getParent().updateFromChild($ThisControl);";
  2303. };
  2304. };
  2305. new GuiControl() {
  2306. class = "AggregateControl";
  2307. position = "0 50";
  2308. Extent = "135 20";
  2309. new GuiTextCtrl(){ // v
  2310. HorizSizing = "right";
  2311. VertSizing = "bottom";
  2312. position = "11 1";
  2313. Extent = "12 16";
  2314. text = "V";
  2315. };
  2316. new GuiSliderCtrl() { // v
  2317. Profile = "ToolsGuiSliderProfile";
  2318. internalName = "RotationSliderV";
  2319. HorizSizing = "right";
  2320. VertSizing = "bottom";
  2321. position = "25 2";
  2322. Extent = "68 15";
  2323. Command = "MaterialEditorGui.updateRotationOffset(true, true);";
  2324. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationOffset(true, false);";
  2325. tooltipprofile = "ToolsGuiDefaultProfile";
  2326. ToolTip = "Change V Scroll Direction";
  2327. hovertime = "1000";
  2328. range = "-1 0";
  2329. ticks = "0";
  2330. value = "0";
  2331. };
  2332. new GuiTextEditCtrl(){ // v
  2333. internalName = "RotationTextEditV";
  2334. HorizSizing = "right";
  2335. VertSizing = "bottom";
  2336. position = "98 0";
  2337. Extent = "34 18";
  2338. text = "0";
  2339. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationOffset();";
  2340. };
  2341. };
  2342. new GuiTextCtrl(){ // Pivot Point
  2343. HorizSizing = "right";
  2344. VertSizing = "bottom";
  2345. position = "98 16";
  2346. Extent = "34 16";
  2347. text = "Pivot";
  2348. };
  2349. new GuiBitmapCtrl(){
  2350. HorizSizing = "right";
  2351. VertSizing = "bottom";
  2352. position = "136 20";
  2353. Extent = "48 48";
  2354. isContainer = true;
  2355. bitmap="";
  2356. new GuiBitmapCtrl(){
  2357. HorizSizing = "right";
  2358. VertSizing = "bottom";
  2359. position = "0 0";
  2360. Extent = "48 48";
  2361. bitmap="tools/materialEditor/gui/cubemapBtnBorder_n";
  2362. };
  2363. new GuiBitmapCtrl(){ //horizontal bar
  2364. internalName = "RotationCrosshair";
  2365. HorizSizing = "right";
  2366. VertSizing = "bottom";
  2367. position = "20 20";
  2368. Extent = "7 7";
  2369. MinExtent = "0 0";
  2370. bitmap="tools/gui/images/crosshair_blue";
  2371. };
  2372. };
  2373. new GuiControl() {
  2374. class = "AggregateControl";
  2375. position = "0 70";
  2376. Extent = "187 20";
  2377. new GuiTextCtrl(){ // Speed
  2378. HorizSizing = "right";
  2379. VertSizing = "bottom";
  2380. position = "11 0";
  2381. Extent = "43 16";
  2382. text = "Speed";
  2383. };
  2384. new GuiSliderCtrl() {
  2385. canSaveDynamicFields = "0";
  2386. internalName = "RotationSpeedSlider";
  2387. Enabled = "1";
  2388. isContainer = "0";
  2389. Profile = "ToolsGuiSliderProfile";
  2390. HorizSizing = "right";
  2391. VertSizing = "bottom";
  2392. position = "49 3";
  2393. Extent = "95 16";
  2394. MinExtent = "8 2";
  2395. canSave = "1";
  2396. Visible = "1";
  2397. Command = "MaterialEditorGui.updateRotationSpeed(true, true);";
  2398. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationSpeed(true, false);";
  2399. tooltipprofile = "ToolsGuiDefaultProfile";
  2400. ToolTip = "Scrolling Speed";
  2401. hovertime = "1000";
  2402. range = "-10 10";
  2403. ticks = "0";
  2404. value = "0";
  2405. };
  2406. new GuiTextEditCtrl() {
  2407. canSaveDynamicFields = "0";
  2408. internalName = "RotationSpeedTextEdit";
  2409. Enabled = "1";
  2410. isContainer = "0";
  2411. Profile = "ToolsGuiTextEditProfile";
  2412. HorizSizing = "right";
  2413. VertSizing = "bottom";
  2414. position = "150 1";
  2415. Extent = "34 18";
  2416. MinExtent = "8 2";
  2417. canSave = "1";
  2418. Visible = "1";
  2419. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateRotationSpeed();";
  2420. hovertime = "1000";
  2421. Margin = "0 0 0 0";
  2422. Padding = "0 0 0 0";
  2423. AnchorTop = "1";
  2424. AnchorBottom = "0";
  2425. AnchorLeft = "1";
  2426. AnchorRight = "0";
  2427. text = "0";
  2428. maxLength = "1024";
  2429. historySize = "0";
  2430. password = "0";
  2431. tabComplete = "0";
  2432. sinkAllKeyEvents = "0";
  2433. password = "0";
  2434. passwordMask = "*";
  2435. };
  2436. };
  2437. };
  2438. new GuiContainer(){ // Scroll Animation Properties
  2439. profile="inspectorStyleRolloutInnerProfile";
  2440. isContainer = "1";
  2441. position = "-1 191";
  2442. Extent = "185 94";
  2443. HorizSizing = "width";
  2444. new GuiCheckboxCtrl() {
  2445. canSaveDynamicFields = "0";
  2446. internalName = "ScrollAnimation";
  2447. Enabled = "1";
  2448. isContainer = "0";
  2449. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  2450. HorizSizing = "right";
  2451. VertSizing = "bottom";
  2452. position = "4 -1";
  2453. Extent = "112 18";
  2454. MinExtent = "8 2";
  2455. canSave = "1";
  2456. Visible = "1";
  2457. hovertime = "1000";
  2458. Margin = "0 0 0 0";
  2459. Padding = "0 0 0 0";
  2460. AnchorTop = "1";
  2461. AnchorBottom = "0";
  2462. AnchorLeft = "1";
  2463. AnchorRight = "0";
  2464. Command = "MaterialEditorGui.updateAnimationFlags();";
  2465. text = "Scroll Animation";
  2466. maxLength = "1024";
  2467. };
  2468. new GuiControl(){
  2469. class = "AggregateControl";
  2470. position = "0 29";
  2471. Extent = "135 20";
  2472. new GuiTextCtrl(){ // u
  2473. HorizSizing = "right";
  2474. VertSizing = "bottom";
  2475. position = "11 1";
  2476. Extent = "12 16";
  2477. text = "U";
  2478. };
  2479. new GuiSliderCtrl() { // u
  2480. Profile = "ToolsGuiSliderProfile";
  2481. internalName = "ScrollSliderU";
  2482. HorizSizing = "right";
  2483. VertSizing = "bottom";
  2484. position = "25 2";
  2485. Extent = "68 15";
  2486. Command = "MaterialEditorGui.updateScrollOffset(true, true);";
  2487. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset(true, false);";
  2488. tooltipprofile = "ToolsGuiDefaultProfile";
  2489. ToolTip = "Change U Scroll Direction";
  2490. hovertime = "1000";
  2491. range = "-1 1";
  2492. ticks = "0";
  2493. value = "0";
  2494. };
  2495. new GuiTextEditCtrl(){ // u
  2496. internalName = "ScrollTextEditU";
  2497. HorizSizing = "right";
  2498. VertSizing = "bottom";
  2499. position = "98 0";
  2500. Extent = "34 18";
  2501. text = "0";
  2502. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset();";
  2503. };
  2504. };
  2505. new GuiControl() {
  2506. class = "AggregateControl";
  2507. position = "0 50";
  2508. Extent = "135 20";
  2509. new GuiTextCtrl(){ // v
  2510. HorizSizing = "right";
  2511. VertSizing = "bottom";
  2512. position = "11 1";
  2513. Extent = "12 16";
  2514. text = "V";
  2515. };
  2516. new GuiSliderCtrl() { // v
  2517. Profile = "ToolsGuiSliderProfile";
  2518. internalName = "ScrollSliderV";
  2519. HorizSizing = "right";
  2520. VertSizing = "bottom";
  2521. position = "25 2";
  2522. Extent = "68 15";
  2523. Command = "MaterialEditorGui.updateScrollOffset(true, true);";
  2524. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset(true, false);";
  2525. tooltipprofile = "ToolsGuiDefaultProfile";
  2526. ToolTip = "Change V Scroll Direction";
  2527. hovertime = "1000";
  2528. range = "-1 1";
  2529. ticks = "0";
  2530. value = "0";
  2531. };
  2532. new GuiTextEditCtrl(){ // v
  2533. internalName = "ScrollTextEditV";
  2534. HorizSizing = "right";
  2535. VertSizing = "bottom";
  2536. position = "98 0";
  2537. Extent = "34 18";
  2538. text = "0";
  2539. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollOffset();";
  2540. };
  2541. };
  2542. new GuiTextCtrl(){ // Direction Offset
  2543. HorizSizing = "right";
  2544. VertSizing = "bottom";
  2545. position = "98 16";
  2546. Extent = "34 16";
  2547. text = "Offset";
  2548. };
  2549. new GuiBitmapCtrl(){
  2550. HorizSizing = "right";
  2551. VertSizing = "bottom";
  2552. position = "136 20";
  2553. Extent = "48 48";
  2554. isContainer = true;
  2555. bitmap="";
  2556. new GuiBitmapCtrl(){
  2557. HorizSizing = "right";
  2558. VertSizing = "bottom";
  2559. position = "0 0";
  2560. Extent = "48 48";
  2561. bitmap="tools/materialEditor/gui/cubemapBtnBorder_n";
  2562. };
  2563. new GuiBitmapCtrl(){ //vertical bar
  2564. HorizSizing = "right";
  2565. VertSizing = "bottom";
  2566. position = "20 20";
  2567. Extent = "7 7";
  2568. MinExtent = "7 7";
  2569. bitmap="tools/gui/images/crosshair";
  2570. };
  2571. new GuiBitmapCtrl(){ //horizontal bar
  2572. internalName = "ScrollCrosshair";
  2573. HorizSizing = "right";
  2574. VertSizing = "bottom";
  2575. position = "20 20";
  2576. Extent = "7 7";
  2577. MinExtent = "0 0";
  2578. bitmap="tools/gui/images/crosshair_blue";
  2579. };
  2580. };
  2581. new GuiControl() {
  2582. class = "AggregateControl";
  2583. position = "0 70";
  2584. Extent = "187 20";
  2585. new GuiTextCtrl(){ // Speed
  2586. HorizSizing = "right";
  2587. VertSizing = "bottom";
  2588. position = "11 0";
  2589. Extent = "43 16";
  2590. text = "Speed";
  2591. };
  2592. new GuiSliderCtrl() {
  2593. canSaveDynamicFields = "0";
  2594. internalName = "ScrollSpeedSlider";
  2595. Enabled = "1";
  2596. isContainer = "0";
  2597. Profile = "ToolsGuiSliderProfile";
  2598. HorizSizing = "right";
  2599. VertSizing = "bottom";
  2600. position = "49 3";
  2601. Extent = "95 16";
  2602. MinExtent = "8 2";
  2603. canSave = "1";
  2604. Visible = "1";
  2605. Command = "MaterialEditorGui.updateScrollSpeed(true, true);";
  2606. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollSpeed(true, false);";
  2607. tooltipprofile = "ToolsGuiDefaultProfile";
  2608. ToolTip = "Scrolling Speed";
  2609. hovertime = "1000";
  2610. range = "0 10";
  2611. ticks = "0";
  2612. value = "0";
  2613. };
  2614. new GuiTextEditCtrl() {
  2615. canSaveDynamicFields = "0";
  2616. internalName = "ScrollSpeedTextEdit";
  2617. Enabled = "1";
  2618. isContainer = "0";
  2619. Profile = "ToolsGuiTextEditProfile";
  2620. HorizSizing = "right";
  2621. VertSizing = "bottom";
  2622. position = "150 1";
  2623. Extent = "34 18";
  2624. MinExtent = "8 2";
  2625. canSave = "1";
  2626. Visible = "1";
  2627. Command = "$ThisControl.getParent().updateFromChild($ThisControl);MaterialEditorGui.updateScrollSpeed();";
  2628. hovertime = "1000";
  2629. Margin = "0 0 0 0";
  2630. Padding = "0 0 0 0";
  2631. AnchorTop = "1";
  2632. AnchorBottom = "0";
  2633. AnchorLeft = "1";
  2634. AnchorRight = "0";
  2635. text = "0";
  2636. maxLength = "1024";
  2637. historySize = "0";
  2638. password = "0";
  2639. tabComplete = "0";
  2640. sinkAllKeyEvents = "0";
  2641. password = "0";
  2642. passwordMask = "*";
  2643. };
  2644. };
  2645. };
  2646. new GuiContainer(){ // Wave Animation Properties
  2647. profile="inspectorStyleRolloutInnerProfile";
  2648. isContainer = "1";
  2649. position = "-1 287";
  2650. Extent = "185 85";
  2651. HorizSizing = "width";
  2652. new GuiCheckboxCtrl() {
  2653. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  2654. internalName = "WaveAnimation";
  2655. HorizSizing = "right";
  2656. VertSizing = "bottom";
  2657. position = "4 -1";
  2658. Extent = "155 16";
  2659. MinExtent = "8 2";
  2660. text = " Wave Animation";
  2661. Command = "MaterialEditorGui.updateAnimationFlags();";
  2662. groupNum = "-1";
  2663. };
  2664. new GuiCheckboxCtrl() {
  2665. Profile = "ToolsGuiCheckBoxProfile";
  2666. internalName = "ScaleAnimation";
  2667. HorizSizing = "right";
  2668. VertSizing = "bottom";
  2669. position = "139 24";
  2670. Extent = "45 16";
  2671. MinExtent = "8 2";
  2672. text = "Scale";
  2673. Command = "MaterialEditorGui.updateAnimationFlags();";
  2674. groupNum = "-1";
  2675. };
  2676. new GuiTextCtrl() {
  2677. Profile = "ToolsGuiDefaultProfile";
  2678. HorizSizing = "right";
  2679. VertSizing = "bottom";
  2680. position = "10 22";
  2681. Extent = "59 16";
  2682. text = " Wave Type";
  2683. };
  2684. new GuiContainer(){ // Wave Radio Button container
  2685. profile = "ToolsGuiDefaultProfile";
  2686. internalName = "WaveButtonContainer";
  2687. position = "72 25";
  2688. Extent = "49 13";
  2689. isContainer = "1";
  2690. new GuiBitmapButtonCtrl(){
  2691. profile = "ToolsGuiDefaultProfile";
  2692. buttonType = "RadioButton";
  2693. position = "1 0";
  2694. Extent = "13 13";
  2695. bitmap = "tools/materialEditor/gui/wav-sine";
  2696. command = "MaterialEditorGui.updateWaveType();";
  2697. tooltip="Sine Wave";
  2698. hovertime = "1000";
  2699. groupNum = "0";
  2700. waveType = "Sin";
  2701. };
  2702. new GuiBitmapButtonCtrl(){
  2703. profile = "ToolsGuiDefaultProfile";
  2704. buttonType = "RadioButton";
  2705. position = "17 0";
  2706. Extent = "13 13";
  2707. bitmap = "tools/materialEditor/gui/wav-triangle";
  2708. command = "MaterialEditorGui.updateWaveType();";
  2709. tooltip="Triangle Wave";
  2710. hovertime = "1000";
  2711. groupNum = "0";
  2712. waveType = "Triangle";
  2713. };
  2714. new GuiBitmapButtonCtrl(){
  2715. profile = "ToolsGuiDefaultProfile";
  2716. buttonType = "RadioButton";
  2717. position = "33 0";
  2718. Extent = "13 13";
  2719. bitmap = "tools/materialEditor/gui/wav-square";
  2720. command = "MaterialEditorGui.updateWaveType();";
  2721. tooltip="Square Wave";
  2722. hovertime = "1000";
  2723. groupNum = "0";
  2724. waveType = "Square";
  2725. };
  2726. };
  2727. new GuiControl() {
  2728. class = "AggregateControl";
  2729. position = "0 61";
  2730. Extent = "187 20";
  2731. new GuiTextCtrl() {
  2732. Profile = "ToolsGuiDefaultProfile";
  2733. HorizSizing = "right";
  2734. VertSizing = "bottom";
  2735. position = "16 1";
  2736. Extent = "64 16";
  2737. text = "Frequency";
  2738. };
  2739. new GuiTextEditCtrl() { // frequence
  2740. canSaveDynamicFields = "0";
  2741. internalName = "WaveTextEditFreq";
  2742. Enabled = "1";
  2743. isContainer = "0";
  2744. Profile = "ToolsGuiTextEditProfile";
  2745. HorizSizing = "right";
  2746. VertSizing = "bottom";
  2747. position = "150 1";
  2748. Extent = "34 18";
  2749. MinExtent = "8 2";
  2750. canSave = "1";
  2751. Visible = "1";
  2752. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveFreq();";
  2753. hovertime = "1000";
  2754. Margin = "0 0 0 0";
  2755. Padding = "0 0 0 0";
  2756. AnchorTop = "1";
  2757. AnchorBottom = "0";
  2758. AnchorLeft = "1";
  2759. AnchorRight = "0";
  2760. text = "0";
  2761. maxLength = "1024";
  2762. historySize = "0";
  2763. password = "0";
  2764. tabComplete = "0";
  2765. sinkAllKeyEvents = "0";
  2766. password = "0";
  2767. passwordMask = "*";
  2768. };
  2769. new GuiSliderCtrl() { // freqency
  2770. canSaveDynamicFields = "0";
  2771. internalName = "WaveSliderFreq";
  2772. Enabled = "1";
  2773. isContainer = "0";
  2774. Profile = "ToolsGuiSliderProfile";
  2775. HorizSizing = "right";
  2776. VertSizing = "bottom";
  2777. position = "72 3";
  2778. Extent = "74 16";
  2779. MinExtent = "8 2";
  2780. canSave = "1";
  2781. Visible = "1";
  2782. Command = "MaterialEditorGui.updateWaveFreq(true, true);";
  2783. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveFreq(true, false);";
  2784. tooltipprofile = "ToolsGuiDefaultProfile";
  2785. ToolTip = "Changes Wave Frequency";
  2786. hovertime = "1000";
  2787. range = "0 10";
  2788. ticks = "0";
  2789. value = "0";
  2790. };
  2791. };
  2792. new GuiControl() {
  2793. class = "AggregateControl";
  2794. position = "0 40";
  2795. Extent = "187 20";
  2796. new GuiTextCtrl() {
  2797. Profile = "ToolsGuiDefaultProfile";
  2798. HorizSizing = "right";
  2799. VertSizing = "bottom";
  2800. position = "21 1";
  2801. Extent = "64 16";
  2802. text = "Amplitude";
  2803. };
  2804. new GuiTextEditCtrl() { // amplitude
  2805. Profile = "ToolsGuiTextEditProfile";
  2806. internalName = "WaveTextEditAmp";
  2807. HorizSizing = "right";
  2808. VertSizing = "bottom";
  2809. position = "150 1";
  2810. Extent = "34 18";
  2811. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveAmp();";
  2812. hovertime = "1000";
  2813. text = "0";
  2814. };
  2815. new GuiSliderCtrl() { // amplitude
  2816. canSaveDynamicFields = "0";
  2817. internalName = "WaveSliderAmp";
  2818. Enabled = "1";
  2819. isContainer = "0";
  2820. Profile = "ToolsGuiSliderProfile";
  2821. HorizSizing = "right";
  2822. VertSizing = "bottom";
  2823. position = "72 3";
  2824. Extent = "74 16";
  2825. MinExtent = "8 2";
  2826. canSave = "1";
  2827. Visible = "1";
  2828. Command = "MaterialEditorGui.updateWaveAmp(true, true);";
  2829. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateWaveAmp(true, false);";
  2830. tooltipprofile = "ToolsGuiDefaultProfile";
  2831. ToolTip = "Changes Wave Amplitude";
  2832. hovertime = "1000";
  2833. range = "0 1";
  2834. ticks = "0";
  2835. value = "0";
  2836. };
  2837. };
  2838. };
  2839. new GuiContainer(){ // image Sequence Animation Properties
  2840. profile="inspectorStyleRolloutInnerProfile";
  2841. isContainer = "1";
  2842. position = "-1 373";
  2843. Extent = "185 66";
  2844. HorizSizing = "width";
  2845. new GuiCheckboxCtrl() {
  2846. Profile = "ToolsGuiInspectorCheckBoxTitleProfile";
  2847. internalName = "SequenceAnimation";
  2848. HorizSizing = "right";
  2849. VertSizing = "bottom";
  2850. position = "4 0";
  2851. Extent = "130 16";
  2852. MinExtent = "8 2";
  2853. text = "Image Sequence";
  2854. Command = "MaterialEditorGui.updateAnimationFlags();";
  2855. groupNum = "-1";
  2856. };
  2857. new GuiControl() {
  2858. class = "AggregateControl";
  2859. position = "0 21";
  2860. Extent = "187 20";
  2861. new GuiTextCtrl() {
  2862. Profile = "ToolsGuiDefaultProfile";
  2863. HorizSizing = "right";
  2864. VertSizing = "bottom";
  2865. position = "5 1";
  2866. Extent = "64 16";
  2867. text = "Frames / Sec";
  2868. };
  2869. new GuiTextEditCtrl() {
  2870. canSaveDynamicFields = "0";
  2871. internalName = "SequenceTextEditFPS";
  2872. Enabled = "1";
  2873. isContainer = "0";
  2874. Profile = "ToolsGuiTextEditProfile";
  2875. HorizSizing = "right";
  2876. VertSizing = "bottom";
  2877. position = "150 1";
  2878. Extent = "34 18";
  2879. MinExtent = "8 2";
  2880. canSave = "1";
  2881. Visible = "1";
  2882. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceFPS();";
  2883. hovertime = "1000";
  2884. Margin = "0 0 0 0";
  2885. Padding = "0 0 0 0";
  2886. AnchorTop = "1";
  2887. AnchorBottom = "0";
  2888. AnchorLeft = "1";
  2889. AnchorRight = "0";
  2890. text = "0";
  2891. maxLength = "1024";
  2892. };
  2893. new GuiSliderCtrl() {
  2894. canSaveDynamicFields = "0";
  2895. internalName = "SequenceSliderFPS";
  2896. Enabled = "1";
  2897. isContainer = "0";
  2898. Profile = "ToolsGuiSliderProfile";
  2899. HorizSizing = "right";
  2900. VertSizing = "bottom";
  2901. position = "72 3";
  2902. Extent = "74 16";
  2903. MinExtent = "8 2";
  2904. canSave = "1";
  2905. Visible = "1";
  2906. Command = "MaterialEditorGui.updateSequenceFPS(true, true);";
  2907. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceFPS(true, false);";
  2908. tooltipprofile = "ToolsGuiDefaultProfile";
  2909. ToolTip = "How many frames to display per second.";
  2910. hovertime = "1000";
  2911. range = "0 30";
  2912. ticks = "0";
  2913. value = "0";
  2914. };
  2915. };
  2916. new GuiControl() {
  2917. class = "AggregateControl";
  2918. position = "0 42";
  2919. Extent = "187 20";
  2920. new GuiTextCtrl() {
  2921. Profile = "ToolsGuiDefaultProfile";
  2922. HorizSizing = "right";
  2923. VertSizing = "bottom";
  2924. position = "33 1";
  2925. Extent = "43 16";
  2926. text = "Frames";
  2927. };
  2928. new GuiTextEditCtrl() { // size
  2929. Profile = "ToolsGuiTextEditProfile";
  2930. internalName = "SequenceTextEditSSS";
  2931. HorizSizing = "right";
  2932. VertSizing = "bottom";
  2933. position = "150 1";
  2934. Extent = "34 18";
  2935. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceSSS();";
  2936. hovertime = "1000";
  2937. text = "0";
  2938. };
  2939. new GuiSliderCtrl() { //size
  2940. canSaveDynamicFields = "0";
  2941. internalName = "SequenceSliderSSS";
  2942. Enabled = "1";
  2943. isContainer = "0";
  2944. Profile = "ToolsGuiSliderProfile";
  2945. HorizSizing = "right";
  2946. VertSizing = "bottom";
  2947. position = "72 3";
  2948. Extent = "74 16";
  2949. MinExtent = "8 2";
  2950. canSave = "1";
  2951. Visible = "1";
  2952. Command = "MaterialEditorGui.updateSequenceSSS(true, true);";
  2953. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateSequenceSSS(true, false);";
  2954. tooltipprofile = "ToolsGuiDefaultProfile";
  2955. ToolTip = "How many frames in the sequence.";
  2956. hovertime = "1000";
  2957. range = "0 100";
  2958. ticks = "0";
  2959. value = "0";
  2960. };
  2961. };
  2962. };
  2963. };
  2964. };
  2965. new GuiRolloutCtrl(materialAdvancedPropertiesRollout) { // Advanced Properties Group
  2966. class = "BehaviorQuickEditRollout";
  2967. superclass = LBQuickEditRollout;
  2968. Profile = "GuiRolloutProfile";
  2969. HorizSizing = "width";
  2970. VertSizing = "bottom";
  2971. Position = "0 0";
  2972. Extent = "202 0";
  2973. Caption = "Advanced (all layers)";
  2974. Expanded = false;
  2975. Margin = "4 4 4 0";
  2976. DragSizable = false;
  2977. container = true;
  2978. parentRollout = %this.rollout;
  2979. object = %behavior;
  2980. new GuiStackControl() {
  2981. StackingType = "Vertical";
  2982. HorizStacking = "Left to Right";
  2983. VertStacking = "Top to Bottom";
  2984. Padding = "0";
  2985. canSaveDynamicFields = "0";
  2986. Enabled = "1";
  2987. isContainer = "1";
  2988. Profile = "ToolsGuiDefaultProfile";
  2989. HorizSizing = "width";
  2990. VertSizing = "bottom";
  2991. Position = "1 3";
  2992. Extent = "202 16";
  2993. new GuiContainer(){ // Transparentcy Properties
  2994. Profile = "ToolsGuiDefaultProfile";
  2995. isContainer = "1";
  2996. HorizSizing = "width";
  2997. VertSizing = "bottom";
  2998. Position = "0 0";
  2999. Extent = "210 89";
  3000. new GuiPopUpMenuCtrl() {
  3001. internalName = "blendingTypePopUp";
  3002. canSaveDynamicFields = "0";
  3003. Enabled = "1";
  3004. isContainer = "0";
  3005. Profile = "ToolsGuiPopUpMenuProfile";
  3006. HorizSizing = "width";
  3007. VertSizing = "bottom";
  3008. position = "3 2";
  3009. Extent = "83 18";
  3010. MinExtent = "8 2";
  3011. canSave = "1";
  3012. Visible = "1";
  3013. Command = "MaterialEditorGui.updateActiveMaterial(\"translucentBlendOp\",$ThisControl.getValue());";
  3014. ToolTip = "Determines the type of blending to be applied on the transparent object.";
  3015. hovertime = "1000";
  3016. Margin = "0 0 0 0";
  3017. Padding = "0 0 0 0";
  3018. AnchorTop = "1";
  3019. AnchorBottom = "0";
  3020. AnchorLeft = "1";
  3021. AnchorRight = "0";
  3022. text = "LerpAlpha";
  3023. maxLength = "1024";
  3024. maxPopupHeight = "200";
  3025. sbUsesNAColor = "0";
  3026. reverseTextList = "0";
  3027. bitmapBounds = "16 16";
  3028. };
  3029. new GuiCheckBoxCtrl() {
  3030. canSaveDynamicFields = "0";
  3031. internalName = "alphaTestCheckBox";
  3032. Enabled = "1";
  3033. isContainer = "0";
  3034. Profile = "ToolsGuiCheckBoxProfile";
  3035. HorizSizing = "right";
  3036. VertSizing = "bottom";
  3037. position = "3 39";
  3038. Extent = "106 16";
  3039. MinExtent = "8 2";
  3040. canSave = "1";
  3041. Visible = "1";
  3042. Command = "MaterialEditorGui.updateActiveMaterial(\"alphaTest\",$ThisControl.getValue());";
  3043. tooltipprofile = "ToolsGuiDefaultProfile";
  3044. ToolTip = "When enabled, caused pixels under a specific alpha threshold to get discarded rather than be computed. Only valid for transparent objects.";
  3045. hovertime = "1000";
  3046. text = "Alpha Threshold";
  3047. groupNum = "-1";
  3048. buttonType = "ToggleButton";
  3049. useMouseEvents = "0";
  3050. useInactiveState = "0";
  3051. };
  3052. new GuiControl() {
  3053. class = "AggregateControl";
  3054. HorizSizing = "width";
  3055. position = "100 39";
  3056. Extent = "187 20";
  3057. new GuiSliderCtrl() {
  3058. canSaveDynamicFields = "0";
  3059. internalName = "alphaRefSlider";
  3060. Enabled = "1";
  3061. isContainer = "0";
  3062. Profile = "ToolsGuiSliderProfile";
  3063. HorizSizing = "width";
  3064. VertSizing = "bottom";
  3065. position = "0 3";
  3066. Extent = "45 14";
  3067. MinExtent = "8 2";
  3068. canSave = "1";
  3069. Visible = "1";
  3070. Command = "MaterialEditorGui.updateActiveMaterial(\"alphaRef\",$ThisControl.getValue(), true, true );";
  3071. AltCommand = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"alphaRef\",$ThisControl.getValue(), true, false );";
  3072. tooltipprofile = "ToolsGuiDefaultProfile";
  3073. 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.";
  3074. hovertime = "1000";
  3075. range = "0 255";
  3076. ticks = "0";
  3077. value = "0";
  3078. };
  3079. new GuiTextEditCtrl() {
  3080. canSaveDynamicFields = "0";
  3081. internalName = "alphaRefTextEdit";
  3082. Enabled = "1";
  3083. isContainer = "0";
  3084. Profile = "ToolsGuiTextEditProfile";
  3085. HorizSizing = "left";
  3086. VertSizing = "bottom";
  3087. position = "49 0";
  3088. Extent = "27 18";
  3089. MinExtent = "8 2";
  3090. canSave = "1";
  3091. Visible = "1";
  3092. Command = "$ThisControl.getParent().updateFromChild($ThisControl); MaterialEditorGui.updateActiveMaterial(\"alphaRef\",$ThisControl.getValue());";
  3093. hovertime = "1000";
  3094. Margin = "0 0 0 0";
  3095. Padding = "0 0 0 0";
  3096. AnchorTop = "1";
  3097. AnchorBottom = "0";
  3098. AnchorLeft = "1";
  3099. AnchorRight = "0";
  3100. text = "100";
  3101. maxLength = "1024";
  3102. };
  3103. };
  3104. new GuiCheckBoxCtrl() {
  3105. canSaveDynamicFields = "0";
  3106. internalName = "transZWriteCheckBox";
  3107. Enabled = "1";
  3108. isContainer = "0";
  3109. Profile = "ToolsGuiCheckBoxProfile";
  3110. HorizSizing = "right";
  3111. VertSizing = "bottom";
  3112. position = "3 23";
  3113. Extent = "112 16";
  3114. MinExtent = "8 2";
  3115. canSave = "1";
  3116. Visible = "1";
  3117. Command = "MaterialEditorGui.updateActiveMaterial(\"translucentZWrite\",$ThisControl.getValue());";
  3118. tooltipprofile = "ToolsGuiDefaultProfile";
  3119. ToolTip = "Can be used to help force a proper Z-Ordering when Z-Ordering issues occur. Only valid for materials with Transparency.";
  3120. hovertime = "1000";
  3121. text = "Transparent Z-Write";
  3122. groupNum = "-1";
  3123. buttonType = "ToggleButton";
  3124. useMouseEvents = "0";
  3125. useInactiveState = "0";
  3126. };
  3127. new GuiCheckBoxCtrl() {
  3128. canSaveDynamicFields = "0";
  3129. internalName = "translucentCheckbox";
  3130. Enabled = "1";
  3131. isContainer = "0";
  3132. Profile = "ToolsGuiCheckBoxProfile";
  3133. HorizSizing = "left";
  3134. VertSizing = "bottom";
  3135. position = "89 3";
  3136. Extent = "107 16";
  3137. MinExtent = "8 2";
  3138. canSave = "1";
  3139. Visible = "1";
  3140. Command = "MaterialEditorGui.updateActiveMaterial(\"translucent\",$ThisControl.getValue());";
  3141. tooltipprofile = "ToolsGuiDefaultProfile";
  3142. ToolTip = "Sets material to use transparent blending modes.";
  3143. hovertime = "1000";
  3144. text = "Transparency";
  3145. groupNum = "-1";
  3146. buttonType = "ToggleButton";
  3147. useMouseEvents = "0";
  3148. useInactiveState = "0";
  3149. };
  3150. new GuiCheckBoxCtrl() {
  3151. canSaveDynamicFields = "0";
  3152. internalName = "castShadows";
  3153. Enabled = "1";
  3154. isContainer = "0";
  3155. Profile = "ToolsGuiCheckBoxProfile";
  3156. HorizSizing = "right";
  3157. VertSizing = "bottom";
  3158. position = "3 55";
  3159. Extent = "112 16";
  3160. MinExtent = "8 2";
  3161. canSave = "1";
  3162. Visible = "1";
  3163. Command = "MaterialEditorGui.updateActiveMaterial(\"castShadows\", $ThisControl.getValue());";
  3164. tooltipprofile = "ToolsGuiDefaultProfile";
  3165. ToolTip = "Object casts shadows.";
  3166. hovertime = "1000";
  3167. text = "Cast Shadows";
  3168. groupNum = "-1";
  3169. buttonType = "ToggleButton";
  3170. useMouseEvents = "0";
  3171. useInactiveState = "0";
  3172. };
  3173. new GuiCheckBoxCtrl() {
  3174. canSaveDynamicFields = "0";
  3175. internalName = "castDynamicShadows";
  3176. Enabled = "1";
  3177. isContainer = "0";
  3178. Profile = "ToolsGuiCheckBoxProfile";
  3179. HorizSizing = "right";
  3180. VertSizing = "bottom";
  3181. position = "3 70";
  3182. Extent = "112 16";
  3183. MinExtent = "8 2";
  3184. canSave = "1";
  3185. Visible = "1";
  3186. Command = "MaterialEditorGui.updateActiveMaterial(\"castDynamicShadows\", $ThisControl.getValue());";
  3187. tooltipprofile = "ToolsGuiDefaultProfile";
  3188. ToolTip = "Object casts dynamic shadows.";
  3189. hovertime = "1000";
  3190. text = "Dynamic Shadows";
  3191. groupNum = "-1";
  3192. buttonType = "ToggleButton";
  3193. useMouseEvents = "0";
  3194. useInactiveState = "0";
  3195. };
  3196. new GuiCheckBoxCtrl() {
  3197. canSaveDynamicFields = "0";
  3198. internalName = "doubleSidedCheckBox";
  3199. Enabled = "1";
  3200. isContainer = "0";
  3201. Profile = "ToolsGuiCheckBoxProfile";
  3202. HorizSizing = "right";
  3203. VertSizing = "bottom";
  3204. position = "105 55";
  3205. Extent = "85 16";
  3206. MinExtent = "8 2";
  3207. canSave = "1";
  3208. Visible = "1";
  3209. Command = "MaterialEditorGui.updateActiveMaterial(\"doubleSided\",$ThisControl.getValue());";
  3210. tooltipprofile = "ToolsGuiDefaultProfile";
  3211. ToolTip = "Determines if this material will be rendered from both sides of the polygon, or just the \'front facing\' side. ";
  3212. hovertime = "1000";
  3213. text = "Double Sided";
  3214. groupNum = "-1";
  3215. buttonType = "ToggleButton";
  3216. useMouseEvents = "0";
  3217. useInactiveState = "0";
  3218. };
  3219. };
  3220. new GuiContainer(){ // Reflection Properties
  3221. Profile = "ToolsGuiDefaultProfile";
  3222. isContainer = "1";
  3223. HorizSizing = "width";
  3224. VertSizing = "bottom";
  3225. Position = "0 95";
  3226. Extent = "212 25";
  3227. new GuiBitmapCtrl(){
  3228. position="2 2";
  3229. extent ="192 2";
  3230. HorizSizing = "width";
  3231. bitmap ="tools/gui/images/separator-v";
  3232. };
  3233. // Reflection Properties Text
  3234. new GuiTextCtrl(matEd_reflectionPropertiesText) {
  3235. canSaveDynamicFields = "0";
  3236. Enabled = "1";
  3237. isContainer = "0";
  3238. Profile = "ToolsGuiDefaultProfile";
  3239. HorizSizing = "left";
  3240. VertSizing = "bottom";
  3241. position = "91 6";
  3242. Extent = "80 18";
  3243. MinExtent = "8 2";
  3244. canSave = "1";
  3245. Visible = "1";
  3246. hovertime = "1000";
  3247. Margin = "0 0 0 0";
  3248. Padding = "0 0 0 0";
  3249. AnchorTop = "1";
  3250. AnchorBottom = "0";
  3251. AnchorLeft = "1";
  3252. AnchorRight = "0";
  3253. text = "Reflection";
  3254. maxLength = "1024";
  3255. };
  3256. new GuiPopUpMenuCtrl() {
  3257. canSaveDynamicFields = "0";
  3258. internalName = "reflectionTypePopUp";
  3259. Enabled = "1";
  3260. isContainer = "0";
  3261. Profile = "ToolsGuiPopUpMenuProfile";
  3262. HorizSizing = "width";
  3263. VertSizing = "bottom";
  3264. position = "3 6";
  3265. Extent = "84 18";
  3266. MinExtent = "8 2";
  3267. canSave = "1";
  3268. Visible = "1";
  3269. Command = "MaterialEditorGui.updateReflectionType($ThisControl.getText());";
  3270. ToolTip = "Determines the type of blending to be applied on the transparent object.";
  3271. hovertime = "1000";
  3272. Margin = "0 0 0 0";
  3273. Padding = "0 0 0 0";
  3274. AnchorTop = "1";
  3275. AnchorBottom = "0";
  3276. AnchorLeft = "1";
  3277. AnchorRight = "0";
  3278. text = "None";
  3279. maxLength = "1024";
  3280. maxPopupHeight = "200";
  3281. sbUsesNAColor = "0";
  3282. reverseTextList = "0";
  3283. bitmapBounds = "16 16";
  3284. };
  3285. new GuiButtonCtrl(matEd_cubemapEditBtn){
  3286. internalName = "matEd_cubemapEditBtn";
  3287. profile ="ToolsGuiButtonProfile";
  3288. HorizSizing = "left";
  3289. VertSizing = "bottom";
  3290. position = "143 6 28";
  3291. Extent = "33 18";
  3292. Command = "MaterialEditorGui.showCubemapEditor();";
  3293. text = "Edit";
  3294. };
  3295. };
  3296. new GuiContainer(){ // Behavior Properties
  3297. Profile = "ToolsGuiDefaultProfile";
  3298. isContainer = "1";
  3299. HorizSizing = "width";
  3300. VertSizing = "bottom";
  3301. Position = "0 122";
  3302. Extent = "212 80";
  3303. new GuiBitmapCtrl(){
  3304. position="2 2";
  3305. extent ="192 2";
  3306. HorizSizing = "width";
  3307. bitmap ="tools/gui/images/separator-v";
  3308. };
  3309. new GuiTextCtrl() {
  3310. text = "Effect Colors[0:1]";
  3311. position = "1 6";
  3312. extent = "86 15";
  3313. profile = "ToolsGuiDefaultProfile";
  3314. };
  3315. new GuiSwatchButtonCtrl() {
  3316. color = "1 1 1 1";
  3317. groupNum = "-1";
  3318. buttonType = "PushButton";
  3319. useMouseEvents = "0";
  3320. position = "89 6";
  3321. extent = "16 16";
  3322. minExtent = "8 2";
  3323. horizSizing = "right";
  3324. vertSizing = "bottom";
  3325. profile = "GuiInspectorSwatchButtonProfile";
  3326. visible = "1";
  3327. active = "1";
  3328. command = "getColorF(materialEd_PreviewMaterial.effectColor[0], \"MaterialEditorGui.updateEffectColor0\");";
  3329. tooltipProfile = "ToolsGuiToolTipProfile";
  3330. hovertime = "1000";
  3331. isContainer = "0";
  3332. internalName = "effectColor0Swatch";
  3333. };
  3334. new GuiSwatchButtonCtrl() {
  3335. color = "1 1 1 1";
  3336. groupNum = "-1";
  3337. buttonType = "PushButton";
  3338. useMouseEvents = "0";
  3339. position = "109 6";
  3340. extent = "16 16";
  3341. minExtent = "8 2";
  3342. horizSizing = "right";
  3343. vertSizing = "bottom";
  3344. profile = "GuiInspectorSwatchButtonProfile";
  3345. visible = "1";
  3346. active = "1";
  3347. command = "getColorF(materialEd_PreviewMaterial.effectColor[1], \"MaterialEditorGui.updateEffectColor1\");";
  3348. tooltipProfile = "ToolsGuiToolTipProfile";
  3349. hovertime = "1000";
  3350. isContainer = "0";
  3351. internalName = "effectColor1Swatch";
  3352. };
  3353. new GuiCheckBoxCtrl() {
  3354. text = "Show Footprints";
  3355. groupNum = "-1";
  3356. buttonType = "ToggleButton";
  3357. useMouseEvents = "0";
  3358. position = "1 24";
  3359. extent = "93 16";
  3360. minExtent = "8 2";
  3361. horizSizing = "right";
  3362. vertSizing = "bottom";
  3363. profile = "ToolsGuiCheckBoxProfile";
  3364. visible = "1";
  3365. active = "1";
  3366. Command = "MaterialEditorGui.updateActiveMaterial(\"showFootprints\", $ThisControl.getValue());";
  3367. tooltipProfile = "ToolsGuiDefaultProfile";
  3368. tooltip = "Enables Player footprints on surfaces that use this Material.";
  3369. hovertime = "1000";
  3370. isContainer = "0";
  3371. internalName = "showFootprintsCheckbox";
  3372. };
  3373. new GuiCheckBoxCtrl() {
  3374. text = "Show Dust";
  3375. groupNum = "-1";
  3376. buttonType = "ToggleButton";
  3377. useMouseEvents = "0";
  3378. position = "110 24";
  3379. extent = "68 16";
  3380. minExtent = "8 2";
  3381. horizSizing = "right";
  3382. vertSizing = "bottom";
  3383. profile = "ToolsGuiCheckBoxProfile";
  3384. visible = "1";
  3385. active = "1";
  3386. Command = "MaterialEditorGui.updateActiveMaterial(\"showDust\", $ThisControl.getValue());";
  3387. tooltipProfile = "ToolsGuiDefaultProfile";
  3388. tooltip = "Enables dust particles on surfaces that use this Material.";
  3389. hovertime = "1000";
  3390. isContainer = "0";
  3391. internalName = "showDustCheckbox";
  3392. };
  3393. new GuiTextCtrl() {
  3394. text = "Footstep sound";
  3395. position = "1 43";
  3396. extent = "77 15";
  3397. profile = "ToolsGuiDefaultProfile";
  3398. };
  3399. new GuiPopUpMenuCtrl() {
  3400. maxPopupHeight = "200";
  3401. sbUsesNAColor = "0";
  3402. reverseTextList = "0";
  3403. bitmapBounds = "16 16";
  3404. text = "None";
  3405. maxLength = "1024";
  3406. margin = "0 0 0 0";
  3407. padding = "0 0 0 0";
  3408. anchorTop = "1";
  3409. anchorBottom = "0";
  3410. anchorLeft = "1";
  3411. anchorRight = "0";
  3412. position = "80 42";
  3413. extent = "105 18";
  3414. minExtent = "8 2";
  3415. horizSizing = "width";
  3416. vertSizing = "bottom";
  3417. profile = "ToolsGuiPopUpMenuProfile";
  3418. visible = "1";
  3419. active = "1";
  3420. command = "MaterialEditorGui.updateBehaviorSound(\"Footstep\", $ThisControl.getText());";
  3421. tooltipProfile = "ToolsGuiToolTipProfile";
  3422. tooltip = "Determines the footstep sound to use when the Player walks on this Material.";
  3423. hovertime = "1000";
  3424. isContainer = "0";
  3425. internalName = "footstepSoundPopUp";
  3426. };
  3427. new GuiTextCtrl() {
  3428. text = "Impact sound";
  3429. position = "1 63";
  3430. extent = "64 15";
  3431. profile = "ToolsGuiDefaultProfile";
  3432. };
  3433. new GuiPopUpMenuCtrl() {
  3434. maxPopupHeight = "200";
  3435. sbUsesNAColor = "0";
  3436. reverseTextList = "0";
  3437. bitmapBounds = "16 16";
  3438. text = "None";
  3439. maxLength = "1024";
  3440. margin = "0 0 0 0";
  3441. padding = "0 0 0 0";
  3442. anchorTop = "1";
  3443. anchorBottom = "0";
  3444. anchorLeft = "1";
  3445. anchorRight = "0";
  3446. position = "80 62";
  3447. extent = "105 18";
  3448. minExtent = "8 2";
  3449. horizSizing = "width";
  3450. vertSizing = "bottom";
  3451. profile = "ToolsGuiPopUpMenuProfile";
  3452. visible = "1";
  3453. active = "1";
  3454. command = "MaterialEditorGui.updateBehaviorSound(\"Impact\", $ThisControl.getText());";
  3455. tooltipProfile = "ToolsGuiToolTipProfile";
  3456. tooltip = "Determines the impact sound to use when an object collides with this Material.";
  3457. hovertime = "1000";
  3458. isContainer = "0";
  3459. internalName = "impactSoundPopUp";
  3460. };
  3461. };
  3462. };
  3463. };
  3464. };
  3465. };
  3466. new GuiBitmapButtonCtrl(MatEd_phoBreadcrumb) { //Go back to previous editor
  3467. canSaveDynamicFields = "0";
  3468. Enabled = "1";
  3469. isContainer = "0";
  3470. HorizSizing = "right";
  3471. VertSizing = "bottom";
  3472. position = "-1 0";
  3473. Extent = "20 19";
  3474. MinExtent = "8 2";
  3475. canSave = "1";
  3476. Visible = "0";
  3477. //Command = "materialSelector.showDialog(\"MaterialEditorGui.switchMaterial\");";
  3478. hovertime = "1000";
  3479. bitmap = "tools/gui/images/folderUp";
  3480. tooltip = "Go back to previous editor";
  3481. groupNum = "-1";
  3482. buttonType = "PushButton";
  3483. useMouseEvents = "0";
  3484. };
  3485. new GuiBitmapButtonCtrl(MatEd_editMaterial) { //Select and Edit an Existing Material
  3486. canSaveDynamicFields = "0";
  3487. Enabled = "1";
  3488. isContainer = "0";
  3489. HorizSizing = "left";
  3490. VertSizing = "bottom";
  3491. position = "86 1";
  3492. Extent = "16 16";
  3493. MinExtent = "8 2";
  3494. canSave = "1";
  3495. Visible = "1";
  3496. Command = "materialSelector.showDialog(\"MaterialEditorGui.switchMaterial\");";
  3497. hovertime = "1000";
  3498. bitmap = "tools/gui/images/open-file";
  3499. tooltip = "Open Existing Material";
  3500. groupNum = "-1";
  3501. buttonType = "PushButton";
  3502. useMouseEvents = "0";
  3503. };
  3504. // New Button
  3505. new GuiBitmapButtonCtrl() {
  3506. canSaveDynamicFields = "0";
  3507. Enabled = "1";
  3508. isContainer = "0";
  3509. Profile = "ToolsGuiDefaultProfile";
  3510. HorizSizing = "left";
  3511. VertSizing = "bottom";
  3512. position = "106 1";
  3513. Extent = "16 16";
  3514. MinExtent = "8 2";
  3515. canSave = "1";
  3516. Visible = "1";
  3517. Command = "MaterialEditorGui.createNewMaterial();";
  3518. hovertime = "1000";
  3519. groupNum = "-1";
  3520. text ="";
  3521. tooltip = "Create New Material";
  3522. buttonType = "PushButton";
  3523. useMouseEvents = "0";
  3524. bitmap = "tools/gui/images/new";
  3525. };
  3526. // Save Button
  3527. new GuiBitmapButtonCtrl() {
  3528. canSaveDynamicFields = "0";
  3529. Enabled = "1";
  3530. isContainer = "0";
  3531. Profile = "ToolsGuiDefaultProfile";
  3532. HorizSizing = "left";
  3533. VertSizing = "bottom";
  3534. position = "123 1";
  3535. Extent = "16 16";
  3536. MinExtent = "8 2";
  3537. canSave = "1";
  3538. Visible = "1";
  3539. Command = "MaterialEditorGui.save();";
  3540. hovertime = "1000";
  3541. groupNum = "-1";
  3542. text ="";
  3543. tooltip = "Save Material (ALT S)";
  3544. buttonType = "PushButton";
  3545. useMouseEvents = "0";
  3546. bitmap = "tools/gui/images/save-icon";
  3547. };
  3548. new GuiBitmapCtrl(){
  3549. position = "147 1";
  3550. Extent = "2 16";
  3551. minExtent = "2 16";
  3552. HorizSizing = "left";
  3553. VertSizing = "bottom";
  3554. bitmap = "tools/gui/images/separator-h";
  3555. };
  3556. // Revert Material
  3557. new GuiBitmapButtonCtrl() {
  3558. canSaveDynamicFields = "0";
  3559. Enabled = "1";
  3560. isContainer = "0";
  3561. Profile = "ToolsGuiButtonProfile";
  3562. HorizSizing = "left";
  3563. VertSizing = "bottom";
  3564. position = "151 1";
  3565. Extent = "17 17";
  3566. MinExtent = "8 2";
  3567. canSave = "1";
  3568. Visible = "1";
  3569. Command = "MaterialEditorGui.refreshMaterial();";
  3570. hovertime = "1000";
  3571. tooltip = "Revert Material to Saved";
  3572. text = "";
  3573. bitmap = "tools/gui/images/reset-icon";
  3574. groupNum = "-1";
  3575. buttonType = "PushButton";
  3576. useMouseEvents = "0";
  3577. };
  3578. // Clear Material
  3579. new GuiBitmapButtonCtrl() {
  3580. canSaveDynamicFields = "0";
  3581. Enabled = "1";
  3582. isContainer = "0";
  3583. Profile = "ToolsGuiButtonProfile";
  3584. HorizSizing = "left";
  3585. VertSizing = "bottom";
  3586. position = "168 1";
  3587. Extent = "17 17";
  3588. MinExtent = "8 2";
  3589. canSave = "1";
  3590. Visible = "1";
  3591. Command = "MaterialEditorGui.clearMaterial();";
  3592. hovertime = "1000";
  3593. tooltip = "Clear All Material Properties";
  3594. text = "";
  3595. bitmap = "tools/gui/images/clear-icon";
  3596. groupNum = "-1";
  3597. buttonType = "PushButton";
  3598. useMouseEvents = "0";
  3599. };
  3600. // Delete Material
  3601. new GuiBitmapButtonCtrl() {
  3602. canSaveDynamicFields = "0";
  3603. Enabled = "1";
  3604. isContainer = "0";
  3605. Profile = "ToolsGuiButtonProfile";
  3606. HorizSizing = "left";
  3607. VertSizing = "bottom";
  3608. position = "185 1";
  3609. Extent = "17 17";
  3610. MinExtent = "8 2";
  3611. canSave = "1";
  3612. Visible = "1";
  3613. Command = "";
  3614. hovertime = "1000";
  3615. tooltip = "Delete Material from File";
  3616. text = "";
  3617. bitmap = "tools/gui/images/delete";
  3618. groupNum = "-1";
  3619. buttonType = "PushButton";
  3620. useMouseEvents = "0";
  3621. Command = "MaterialEditorGui.deleteMaterial();";
  3622. };
  3623. };
  3624. };
  3625. };
  3626. // Here are all of the other gui elements that were included in the original gui============================================
  3627. // EDIT: Instead of showing the faded bitmap, were going to just go ahead and push the controls; that way they are sitting
  3628. // on top of the editor gui, while being nonmodal
  3629. new GuiControl(matEdNonModalGroup, EditorGuiGroup) {
  3630. canSaveDynamicFields = "0";
  3631. Profile = "ToolsGuiOverlayProfile";
  3632. Enabled = "1";
  3633. isContainer = "1";
  3634. HorizSizing = "right";
  3635. VertSizing = "bottom";
  3636. Position = "0 0";
  3637. Extent = "1024 768";
  3638. MinExtent = "8 2";
  3639. canSave = "1";
  3640. Visible = "1";
  3641. hovertime = "1000";
  3642. new GuiWindowCtrl(matEdSaveDialog) {
  3643. canSaveDynamicFields = "0";
  3644. Enabled = "1";
  3645. isContainer = "1";
  3646. Profile = "ToolsGuiWindowProfile";
  3647. HorizSizing = "center";
  3648. VertSizing = "center";
  3649. position = "197 221";
  3650. Extent = "336 104";
  3651. MinExtent = "8 2";
  3652. canSave = "1";
  3653. Visible = "0";
  3654. hovertime = "1000";
  3655. Margin = "0 0 0 0";
  3656. Padding = "0 0 0 0";
  3657. AnchorTop = "1";
  3658. AnchorBottom = "0";
  3659. AnchorLeft = "1";
  3660. AnchorRight = "0";
  3661. resizeWidth = "0";
  3662. resizeHeight = "0";
  3663. canMove = "0";
  3664. canClose = "0";
  3665. canMinimize = "0";
  3666. canMaximize = "0";
  3667. minSize = "50 50";
  3668. EdgeSnap = "1";
  3669. text = "Material Not Saved!";
  3670. new GuiButtonCtrl(matEd_notSavedWindow_Save) {
  3671. canSaveDynamicFields = "0";
  3672. Enabled = "1";
  3673. isContainer = "0";
  3674. Profile = "ToolsGuiButtonProfile";
  3675. HorizSizing = "right";
  3676. VertSizing = "bottom";
  3677. position = "8 69";
  3678. Extent = "121 24";
  3679. MinExtent = "8 2";
  3680. canSave = "1";
  3681. Visible = "1";
  3682. Command = "matEdSaveDialog.dialogSave();";
  3683. hovertime = "1000";
  3684. text = "Save";
  3685. groupNum = "-1";
  3686. buttonType = "PushButton";
  3687. useMouseEvents = "0";
  3688. };
  3689. new GuiTextCtrl(matEd_materialNotSavedText) {
  3690. canSaveDynamicFields = "0";
  3691. Enabled = "1";
  3692. isContainer = "0";
  3693. Profile = "ToolsGuiTextCenterProfile";
  3694. HorizSizing = "right";
  3695. VertSizing = "bottom";
  3696. position = "7 35";
  3697. Extent = "318 18";
  3698. MinExtent = "8 2";
  3699. canSave = "1";
  3700. Visible = "1";
  3701. hovertime = "1000";
  3702. Margin = "0 0 0 0";
  3703. Padding = "0 0 0 0";
  3704. AnchorTop = "1";
  3705. AnchorBottom = "0";
  3706. AnchorLeft = "1";
  3707. AnchorRight = "0";
  3708. text = "This material has unsaved changes. Do you wish to save?";
  3709. maxLength = "1024";
  3710. };
  3711. new GuiButtonCtrl(matEd_notSavedWindow_DontSave) {
  3712. canSaveDynamicFields = "0";
  3713. Enabled = "1";
  3714. isContainer = "0";
  3715. Profile = "ToolsGuiButtonProfile";
  3716. HorizSizing = "right";
  3717. VertSizing = "bottom";
  3718. position = "157 69";
  3719. Extent = "80 24";
  3720. MinExtent = "8 2";
  3721. canSave = "1";
  3722. Visible = "1";
  3723. Command = "matEdSaveDialog.dialogDontSave();";
  3724. hovertime = "1000";
  3725. text = "Don\'t Save";
  3726. groupNum = "-1";
  3727. buttonType = "PushButton";
  3728. useMouseEvents = "0";
  3729. };
  3730. new GuiButtonCtrl(matEd_notSavedWindow_Cancel) {
  3731. canSaveDynamicFields = "0";
  3732. Enabled = "1";
  3733. isContainer = "0";
  3734. Profile = "ToolsGuiButtonProfile";
  3735. HorizSizing = "right";
  3736. VertSizing = "bottom";
  3737. position = "245 69";
  3738. Extent = "80 24";
  3739. MinExtent = "8 2";
  3740. canSave = "1";
  3741. Visible = "1";
  3742. Command = "matEdSaveDialog.dialogCancel();";
  3743. hovertime = "1000";
  3744. text = "Cancel";
  3745. groupNum = "-1";
  3746. buttonType = "PushButton";
  3747. useMouseEvents = "0";
  3748. };
  3749. };
  3750. new GuiWindowCtrl(matEd_changeCategoryDialog) {
  3751. canSaveDynamicFields = "0";
  3752. Enabled = "1";
  3753. isContainer = "1";
  3754. Profile = "ToolsGuiWindowProfile";
  3755. HorizSizing = "right";
  3756. VertSizing = "bottom";
  3757. position = "288 144";
  3758. Extent = "248 133";
  3759. MinExtent = "8 2";
  3760. canSave = "1";
  3761. Visible = "0";
  3762. hovertime = "1000";
  3763. Margin = "0 0 0 0";
  3764. Padding = "0 0 0 0";
  3765. AnchorTop = "1";
  3766. AnchorBottom = "0";
  3767. AnchorLeft = "1";
  3768. AnchorRight = "0";
  3769. resizeWidth = "0";
  3770. resizeHeight = "0";
  3771. canMove = "0";
  3772. canClose = "0";
  3773. canMinimize = "0";
  3774. canMaximize = "0";
  3775. minSize = "50 50";
  3776. EdgeSnap = "1";
  3777. text = "Change Material Category";
  3778. new GuiPopUpMenuCtrl(matEd_changeCategory_categoryList) {
  3779. canSaveDynamicFields = "0";
  3780. Enabled = "1";
  3781. isContainer = "0";
  3782. Profile = "ToolsGuiPopUpMenuProfile";
  3783. HorizSizing = "right";
  3784. VertSizing = "bottom";
  3785. position = "10 32";
  3786. Extent = "183 18";
  3787. MinExtent = "8 2";
  3788. canSave = "1";
  3789. Visible = "1";
  3790. hovertime = "1000";
  3791. Margin = "0 0 0 0";
  3792. Padding = "0 0 0 0";
  3793. AnchorTop = "1";
  3794. AnchorBottom = "0";
  3795. AnchorLeft = "1";
  3796. AnchorRight = "0";
  3797. maxLength = "1024";
  3798. maxPopupHeight = "200";
  3799. sbUsesNAColor = "0";
  3800. reverseTextList = "0";
  3801. bitmapBounds = "16 16";
  3802. };
  3803. new GuiButtonCtrl(matEd_changeCategory_okayBtn) {
  3804. canSaveDynamicFields = "0";
  3805. Enabled = "1";
  3806. isContainer = "0";
  3807. Profile = "ToolsGuiButtonProfile";
  3808. HorizSizing = "right";
  3809. VertSizing = "bottom";
  3810. position = "10 97";
  3811. Extent = "137 24";
  3812. MinExtent = "8 2";
  3813. canSave = "1";
  3814. Visible = "1";
  3815. Command = "MaterialEditorGui.okayChangeCategoryDialog();";
  3816. hovertime = "1000";
  3817. text = "Update Category";
  3818. groupNum = "-1";
  3819. buttonType = "PushButton";
  3820. useMouseEvents = "0";
  3821. };
  3822. new GuiButtonCtrl(matEd_changeCategory_cancelBtn) {
  3823. canSaveDynamicFields = "0";
  3824. Enabled = "1";
  3825. isContainer = "0";
  3826. Profile = "ToolsGuiButtonProfile";
  3827. HorizSizing = "right";
  3828. VertSizing = "bottom";
  3829. position = "159 97";
  3830. Extent = "80 24";
  3831. MinExtent = "8 2";
  3832. canSave = "1";
  3833. Visible = "1";
  3834. Command = "MaterialEditorGui.cancelChangeCategoryDialog();";
  3835. hovertime = "1000";
  3836. text = "Cancel";
  3837. groupNum = "-1";
  3838. buttonType = "PushButton";
  3839. useMouseEvents = "0";
  3840. };
  3841. new GuiButtonCtrl(matEd_changeCategory_addCatBtn) {
  3842. canSaveDynamicFields = "0";
  3843. Enabled = "1";
  3844. isContainer = "0";
  3845. Profile = "ToolsGuiButtonProfile";
  3846. HorizSizing = "right";
  3847. VertSizing = "bottom";
  3848. position = "200 60";
  3849. Extent = "39 18";
  3850. MinExtent = "8 2";
  3851. canSave = "1";
  3852. Visible = "1";
  3853. Command = "MaterialEditorGui.addCategory();";
  3854. hovertime = "1000";
  3855. text = "New";
  3856. groupNum = "-1";
  3857. buttonType = "PushButton";
  3858. useMouseEvents = "0";
  3859. };
  3860. new GuiTextEditCtrl(matEd_changeCategory_catNameEntry) {
  3861. canSaveDynamicFields = "0";
  3862. Enabled = "1";
  3863. isContainer = "0";
  3864. Profile = "ToolsGuiTextEditProfile";
  3865. HorizSizing = "right";
  3866. VertSizing = "bottom";
  3867. position = "10 60";
  3868. Extent = "183 18";
  3869. MinExtent = "8 2";
  3870. canSave = "1";
  3871. Visible = "1";
  3872. hovertime = "1000";
  3873. Margin = "0 0 0 0";
  3874. Padding = "0 0 0 0";
  3875. AnchorTop = "1";
  3876. AnchorBottom = "0";
  3877. AnchorLeft = "1";
  3878. AnchorRight = "0";
  3879. maxLength = "1024";
  3880. historySize = "0";
  3881. password = "0";
  3882. tabComplete = "0";
  3883. sinkAllKeyEvents = "0";
  3884. password = "0";
  3885. passwordMask = "*";
  3886. };
  3887. new GuiWindowCtrl(matEd_changeCategory_ErrorDialog) {
  3888. canSaveDynamicFields = "0";
  3889. Enabled = "1";
  3890. isContainer = "1";
  3891. Profile = "ToolsGuiWindowProfile";
  3892. HorizSizing = "right";
  3893. VertSizing = "bottom";
  3894. position = "8 18";
  3895. Extent = "232 113";
  3896. MinExtent = "8 2";
  3897. canSave = "1";
  3898. Visible = "0";
  3899. hovertime = "1000";
  3900. Margin = "0 0 0 0";
  3901. Padding = "0 0 0 0";
  3902. AnchorTop = "1";
  3903. AnchorBottom = "0";
  3904. AnchorLeft = "1";
  3905. AnchorRight = "0";
  3906. resizeWidth = "0";
  3907. resizeHeight = "0";
  3908. canMove = "0";
  3909. canClose = "0";
  3910. canMinimize = "0";
  3911. canMaximize = "0";
  3912. minSize = "50 50";
  3913. EdgeSnap = "1";
  3914. text = "Category Change Error";
  3915. new GuiButtonCtrl(matEd_changeCategory_Error_Button) {
  3916. canSaveDynamicFields = "0";
  3917. Enabled = "1";
  3918. isContainer = "0";
  3919. Profile = "ToolsGuiButtonProfile";
  3920. HorizSizing = "right";
  3921. VertSizing = "bottom";
  3922. position = "72 81";
  3923. Extent = "80 24";
  3924. MinExtent = "8 2";
  3925. canSave = "1";
  3926. Visible = "1";
  3927. Command = "MaterialEditorGui.okChangeCategoryErrorDialog();";
  3928. hovertime = "1000";
  3929. text = "Ok";
  3930. groupNum = "-1";
  3931. buttonType = "PushButton";
  3932. useMouseEvents = "0";
  3933. };
  3934. new GuiTextCtrl(matEd_changeCategory_error_Text) {
  3935. canSaveDynamicFields = "0";
  3936. Enabled = "1";
  3937. isContainer = "0";
  3938. Profile = "ToolsGuiTextCenterProfile";
  3939. HorizSizing = "right";
  3940. VertSizing = "bottom";
  3941. position = "8 31";
  3942. Extent = "215 40";
  3943. MinExtent = "8 2";
  3944. canSave = "1";
  3945. Visible = "1";
  3946. hovertime = "1000";
  3947. Margin = "0 0 0 0";
  3948. Padding = "0 0 0 0";
  3949. AnchorTop = "1";
  3950. AnchorBottom = "0";
  3951. AnchorLeft = "1";
  3952. AnchorRight = "0";
  3953. text = "Text goes here!";
  3954. maxLength = "1024";
  3955. };
  3956. };
  3957. };
  3958. };
  3959. //--- OBJECT WRITE END ---