Exemple #1
0
 /// <summary>
 /// Show texture format
 /// </summary>
 private void ShowTextureFormat()
 {
     GameEditorUtils.Space(2);
     EditorGUILayout.LabelField("TextureSize format ---- ");
     curTextureFormatType = (Alpha_Texture_Format_Type)EditorGUILayout.EnumPopup("Texture Format : ", curTextureFormatType);
     GameEditorUtils.Space(2);
 }
Exemple #2
0
    void OnGUI()
    {
        EditorGUILayout.BeginVertical();
        {
            totalscrollPos = EditorGUILayout.BeginScrollView(totalscrollPos, GUILayout.Width(position.width), GUILayout.Height(position.height));
            {
                ShowAllTexturePathList();

                if (curModel == Texture_Setting_Model.CHANG_MODEL)
                {
                    ShowTextureLevel();
                    ShowTextureFormat();

                    GUI.color = Color.green;
                    if (GUILayout.Button(" ===== 筛选图片格式进行转换 ======= ", GUILayout.Height(50)))
                    {
                        isAllChange = false;
                        ChangeTextureSize();
                    }

                    GameEditorUtils.Space(2);
                    GUI.color = Color.red;
                    if (GUILayout.Button(" ===== 状况所有图片 ========", GUILayout.Height(50)))
                    {
                        isAllChange = true;
                        ChangeTextureSize();
                    }
                }
                else if (curModel == Texture_Setting_Model.CHECK_MODEL)
                {
                    ShowCurrentTextureFormat();
                }
                GUI.color = Color.white;
            }
            EditorGUILayout.EndScrollView();
        }
        EditorGUILayout.EndVertical();
    }