private void OnGUI()
{
GUI.skin.label.fontSize = 9;
GUI.skin.button.fontSize = 9;
EditorStyles.popup.fixedHeight= 20;
EditorStyles.popup.fontSize = 8;
GUI.skin.textField.alignment = TextAnchor.UpperLeft;
GUI.Label(new Rect( 5, 20, 150, 20), "Read/Write Enabled" );
TextureImporterSetting._readable = EditorGUI.Toggle( new Rect( 120, 20, 20, 20), TextureImporterSetting._readable );
GUI.Label(new Rect( 5, 40, 150, 20), "Non Power of 2");
TextureImporterSetting.npotIndex = EditorGUI.Popup( new Rect(120, 40, 80, 20 ), TextureImporterSetting.npotIndex, _npot );
TextureImporterSetting._npotScale = NpotScaleSetup();
GUI.Label(new Rect( 5, 60, 150, 20), "Generate Mip Maps");
TextureImporterSetting._mipmapEnabled = EditorGUI.Toggle( new Rect( 120, 60, 20, 20), TextureImporterSetting._mipmapEnabled );
GUI.Label(new Rect( 5, 80, 150, 20), "Texture Format");
TextureImporterSetting.formIndex = EditorGUI.Popup( new Rect(120, 80, 80, 20 ), TextureImporterSetting.formIndex, _form );
TextureImporterSetting._textureFormat = FormatSetup();
GUI.Label(new Rect( 5, 100, 150, 20), "Max Texture Size");
TextureImporterSetting.sizeIndex = EditorGUI.Popup( new Rect(120, 100, 80, 20 ), TextureImporterSetting.sizeIndex, _size );
TextureImporterSetting._maxTextureSize = System.Convert.ToInt32( _size[TextureImporterSetting.sizeIndex] );
if( GUI.Button(new Rect( 120, 170, 80, 20 ), "Apply")) Closer();
}