home *** CD-ROM | disk | FTP | other *** search
- if(colorDiffuse != null)
- {
- tabs.setColor(tabs.diffuse,colorDiffuse);
- colorDiffuse = null;
- }
- if(mapDiffuse != null)
- {
- tabs.setMap(tabs.diffuse,mapDiffuse);
- mapDiffuse = null;
- }
- if(lockAmbient != null)
- {
- if(lockAmbient == "true")
- {
- tabs.clearTab(tabs.ambient);
- tabs.lockAmbient._visible = true;
- }
- else
- {
- tabs.lockAmbient._visible = false;
- }
- lockAmbient = null;
- }
- if(colorAmbient != null)
- {
- tabs.setColor(tabs.ambient,colorAmbient);
- colorAmbient = null;
- }
- if(mapAmbient != null)
- {
- tabs.setMap(tabs.ambient,mapAmbient);
- mapAmbient = null;
- }
- if(amountSpecularLevel != null || amountGlossiness != null)
- {
- tabs.setHighlight(amountSpecularLevel,amountGlossiness);
- amountSpecularLevel = null;
- amountGlossiness = null;
- }
- if(lockSpecular != null)
- {
- if(lockSpecular == "true")
- {
- tabs.clearTab(tabs.specularColor);
- tabs.lockSpecular._visible = true;
- }
- else
- {
- tabs.lockSpecular._visible = false;
- }
- lockSpecular = null;
- }
- if(colorSpecular != null)
- {
- tabs.setColor(tabs.specularColor,colorSpecular);
- colorSpecular = null;
- }
- if(mapSpecular != null)
- {
- tabs.setMap(tabs.specularColor,mapSpecular);
- mapSpecular = null;
- }
- if(mapSpecularLevel != null)
- {
- tabs.setMap(tabs.specularLevel,mapSpecularLevel);
- mapSpecularLevel = null;
- }
- if(mapGlossiness != null)
- {
- tabs.setMap(tabs.glossiness,mapGlossiness);
- mapGlossiness = null;
- }
- if(colorSelfIllum != null)
- {
- tabs.setColor(tabs.selfIllum,colorSelfIllum);
- colorSelfIllum = null;
- }
- if(amountSelfIllum != null)
- {
- tabs.setAmount(tabs.selfIllum,amountSelfIllum);
- amountSelfIllum = null;
- }
- if(mapSelfIllum != null)
- {
- tabs.setMap(tabs.selfIllum,mapSelfIllum);
- mapSelfIllum = null;
- }
- if(amountOpacity != null)
- {
- tabs.setAmount(tabs.opacity,amountOpacity);
- amountOpacity = null;
- }
- if(mapOpacity != null)
- {
- tabs.setMap(tabs.opacity,mapOpacity);
- mapOpacity = null;
- }
- if(mapBump != null)
- {
- tabs.setMap(tabs.bump,mapBump);
- mapBump = null;
- }
- if(tabSelect != null)
- {
- fSelectTab(tabSelect);
- tabSelect = null;
- }
- if(enableDrag != null)
- {
- if(enableDrag == "true")
- {
- drag.enabled = true;
- }
- else
- {
- drag.enabled = false;
- dragColor._visible = false;
- dragMap._visible = false;
- dragTarget._visible = false;
- }
- enableDrag = null;
- }
- if(colorBackground != null)
- {
- new Color(background).setRGB(colorBackground);
- colorBackground = null;
- }
- if(colorText != null or colorSelected != null or colorUnselected != null)
- {
- tabs.setScheme(colorText,colorSelected,colorUnselected);
- colorText = null;
- colorSelected = null;
- colorUnselected = null;
- }
-