public override void OnInspectorGUI()
 {
   if (TextureImporterInspector.s_Styles == null)
     TextureImporterInspector.s_Styles = new TextureImporterInspector.Styles();
   bool enabled = GUI.enabled;
   EditorGUI.BeginChangeCheck();
   EditorGUI.showMixedValue = this.textureTypeHasMultipleDifferentValues;
   int num = EditorGUILayout.IntPopup(TextureImporterInspector.s_Styles.textureType, (int) this.textureType, TextureImporterInspector.s_Styles.textureTypeOptions, this.m_TextureTypeValues, new GUILayoutOption[0]);
   EditorGUI.showMixedValue = false;
   if (EditorGUI.EndChangeCheck())
   {
     this.m_TextureType.intValue = num;
     TextureImporterSettings propertySettings = this.GetSerializedPropertySettings();
     propertySettings.ApplyTextureType(this.textureType, true);
     this.SetSerializedPropertySettings(propertySettings);
     this.SyncPlatformSettings();
     this.ApplySettingsToTexture();
   }
   if (!this.textureTypeHasMultipleDifferentValues)
   {
     switch (this.textureType)
     {
       case TextureImporterType.Image:
         this.ImageGUI();
         break;
       case TextureImporterType.Bump:
         this.BumpGUI();
         break;
       case TextureImporterType.Cubemap:
         this.CubemapGUI();
         break;
       case TextureImporterType.Cookie:
         this.CookieGUI();
         break;
       case TextureImporterType.Advanced:
         this.AdvancedGUI();
         break;
       case TextureImporterType.Sprite:
         this.SpriteGUI();
         break;
     }
   }
   EditorGUILayout.Space();
   this.PreviewableGUI();
   this.SizeAndFormatGUI();
   GUILayout.BeginHorizontal();
   GUILayout.FlexibleSpace();
   this.ApplyRevertGUI();
   GUILayout.EndHorizontal();
   this.UpdateImportWarning();
   if (this.m_ImportWarning != null)
     EditorGUILayout.HelpBox(this.m_ImportWarning, MessageType.Warning);
   GUI.enabled = enabled;
 }