home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2002 April / GSSH42002.iso / EDITOREN / DS / gmax / gmaxinst_1-1.exe / gmaxsetup11.cab / gMaterialEDtabs.swf / scripts / frame_6 / DoAction.as
Text File  |  2002-02-13  |  3KB  |  135 lines

  1. if(colorDiffuse != null)
  2. {
  3.    tabs.setColor(tabs.diffuse,colorDiffuse);
  4.    colorDiffuse = null;
  5. }
  6. if(mapDiffuse != null)
  7. {
  8.    tabs.setMap(tabs.diffuse,mapDiffuse);
  9.    mapDiffuse = null;
  10. }
  11. if(lockAmbient != null)
  12. {
  13.    if(lockAmbient == "true")
  14.    {
  15.       tabs.clearTab(tabs.ambient);
  16.       tabs.lockAmbient._visible = true;
  17.    }
  18.    else
  19.    {
  20.       tabs.lockAmbient._visible = false;
  21.    }
  22.    lockAmbient = null;
  23. }
  24. if(colorAmbient != null)
  25. {
  26.    tabs.setColor(tabs.ambient,colorAmbient);
  27.    colorAmbient = null;
  28. }
  29. if(mapAmbient != null)
  30. {
  31.    tabs.setMap(tabs.ambient,mapAmbient);
  32.    mapAmbient = null;
  33. }
  34. if(amountSpecularLevel != null || amountGlossiness != null)
  35. {
  36.    tabs.setHighlight(amountSpecularLevel,amountGlossiness);
  37.    amountSpecularLevel = null;
  38.    amountGlossiness = null;
  39. }
  40. if(lockSpecular != null)
  41. {
  42.    if(lockSpecular == "true")
  43.    {
  44.       tabs.clearTab(tabs.specularColor);
  45.       tabs.lockSpecular._visible = true;
  46.    }
  47.    else
  48.    {
  49.       tabs.lockSpecular._visible = false;
  50.    }
  51.    lockSpecular = null;
  52. }
  53. if(colorSpecular != null)
  54. {
  55.    tabs.setColor(tabs.specularColor,colorSpecular);
  56.    colorSpecular = null;
  57. }
  58. if(mapSpecular != null)
  59. {
  60.    tabs.setMap(tabs.specularColor,mapSpecular);
  61.    mapSpecular = null;
  62. }
  63. if(mapSpecularLevel != null)
  64. {
  65.    tabs.setMap(tabs.specularLevel,mapSpecularLevel);
  66.    mapSpecularLevel = null;
  67. }
  68. if(mapGlossiness != null)
  69. {
  70.    tabs.setMap(tabs.glossiness,mapGlossiness);
  71.    mapGlossiness = null;
  72. }
  73. if(colorSelfIllum != null)
  74. {
  75.    tabs.setColor(tabs.selfIllum,colorSelfIllum);
  76.    colorSelfIllum = null;
  77. }
  78. if(amountSelfIllum != null)
  79. {
  80.    tabs.setAmount(tabs.selfIllum,amountSelfIllum);
  81.    amountSelfIllum = null;
  82. }
  83. if(mapSelfIllum != null)
  84. {
  85.    tabs.setMap(tabs.selfIllum,mapSelfIllum);
  86.    mapSelfIllum = null;
  87. }
  88. if(amountOpacity != null)
  89. {
  90.    tabs.setAmount(tabs.opacity,amountOpacity);
  91.    amountOpacity = null;
  92. }
  93. if(mapOpacity != null)
  94. {
  95.    tabs.setMap(tabs.opacity,mapOpacity);
  96.    mapOpacity = null;
  97. }
  98. if(mapBump != null)
  99. {
  100.    tabs.setMap(tabs.bump,mapBump);
  101.    mapBump = null;
  102. }
  103. if(tabSelect != null)
  104. {
  105.    fSelectTab(tabSelect);
  106.    tabSelect = null;
  107. }
  108. if(enableDrag != null)
  109. {
  110.    if(enableDrag == "true")
  111.    {
  112.       drag.enabled = true;
  113.    }
  114.    else
  115.    {
  116.       drag.enabled = false;
  117.       dragColor._visible = false;
  118.       dragMap._visible = false;
  119.       dragTarget._visible = false;
  120.    }
  121.    enableDrag = null;
  122. }
  123. if(colorBackground != null)
  124. {
  125.    new Color(background).setRGB(colorBackground);
  126.    colorBackground = null;
  127. }
  128. if(colorText != null or colorSelected != null or colorUnselected != null)
  129. {
  130.    tabs.setScheme(colorText,colorSelected,colorUnselected);
  131.    colorText = null;
  132.    colorSelected = null;
  133.    colorUnselected = null;
  134. }
  135.