コード例 #1
0
        public void Draw(BuildAssistWindow parent)
        {
            var currentParams = P.GetCurrentParams();

            parent.DrawGUI_PackageName();
            parent.DrawGUI_ConfigurationSelect();

            parent.DrawGUI_AssetBundle();
            parent.DrawGUI_BuildSettings();
            parent.DrawGUI_PlayerSettings();

            DrawGUI_WebGL(currentParams);

            parent.DrawGUI_OutputDirectory();



            bool once = false;

            void errorLabel(string s, string icon = "")
            {
                var c = EditorStyles.label.normal.textColor;

                EditorStyles.label.normal.textColor = Color.red;
                EditorStyles.label.fontStyle        = FontStyle.Bold;

                GUILayout.Label(EditorHelper.TempContent(s, Icon.Get(icon)), EditorStyles.label);

                EditorStyles.label.fontStyle        = FontStyle.Normal;
                EditorStyles.label.normal.textColor = c;
            }

            void errorTitle()
            {
                if (once)
                {
                    return;
                }
                errorLabel("PlayerSettings.Standalone settings are incomplete", "console.erroricon.sml");
                once = true;
            }

            if (currentParams.development)
            {
                HEditorGUILayout.BoldLabel(SS._Info, EditorIcon.Info);
                HEditorGUILayout.BoldLabel(S._NotethatWebGLdevelopmentbuildsaremuchlargerthanreleasebuildsandshoundnotbepublicsed);
            }

            GUILayout.FlexibleSpace();
            parent.DrawGUI_Bottom();
        }