static void DrawContentPlatfom() { EditorGUI.BeginChangeCheck(); var targetGroupList = PlatformUtils.GetSupportList(); GUILayout.BeginVertical(EditorStyles.helpBox); GUILayout.Label(S._Selectplatformtouse); foreach (var t in targetGroupList) { EditorGUI.BeginChangeCheck(); var _b = HEditorGUILayout.ToggleLeft(P.GetPlatform(t).enable, t.Icon(), t.GetName()); if (EditorGUI.EndChangeCheck()) { P.GetPlatform(t).enable = _b; BuildAssistWindow.ChangeActiveTarget(); } } GUILayout.EndVertical(); if (EditorGUI.EndChangeCheck()) { s_changed = true; } }
/// <summary> /// /// </summary> static void DrawGUI() { P.Load(); PB.Load(); Styles.Init(); using (new PreferenceLayoutScope(ref m_scroll2)) { PB.i.selectTool = GUILayout.Toolbar(PB.i.selectTool, toolName); GUILayout.Space(8); if (PB.i.selectTool == 0) { DrawContentPlatfom(); } else { DrawContentConfig(); } } if (s_changed) { P.Save(); PB.Save(); BuildAssistWindow.Repaint(); } }
public static void Changed() { foreach (var filename in DirectoryUtils.GetFiles(AssetDatabase.GUIDToAssetPath("3b63796fcdc63d441842ccad9baad1b2"), "*.csv")) { if (filename.Contains(EditorLocalize.GetLocalizeName())) { EditorLocalize.Load(Package.name, AssetDatabase.AssetPathToGUID(filename), "3dde87905623cf44f8233a6e89e15db5"); BuildAssistWindow.InitLocalize(); } } }
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(); }
//public void Reinit() => Init(); public void Init() { s_window = this; P.Load(); m_currentPlatform = null; m_supportBuildTarget = PlatformUtils.GetSupportList(); _enableAssetBundle = EditorHelper.HasMenuItem(Window_AssetBundle_Browser); _enableBuildReport = EditorHelper.HasMenuItem(Window_Show_Build_Report); MakeDrawBuildTarget(); OnFocus(); }
public void Draw(BuildAssistWindow parent) { var currentParams = P.GetCurrentParams(); if (currentParams == null) { return; } parent.DrawGUI_PackageName(); parent.DrawGUI_ConfigurationSelect(); parent.DrawGUI_AssetBundle(); parent.DrawGUI_BuildSettings(); parent.DrawGUI_PlayerSettings(); parent.DrawGUI_OutputDirectory(); // PlayerS DrawGUI_Android(currentParams); GUILayout.FlexibleSpace(); parent.DrawGUI_Bottom(); }
public void Draw(BuildAssistWindow window) { EditorGUILayout.HelpBox(S._Currentlynotsupported_, MessageType.Warning); }
public void Draw(BuildAssistWindow window) { EditorGUILayout.HelpBox("I don't have a mac.", MessageType.Warning); }
public void Draw(BuildAssistWindow window) { EditorGUILayout.HelpBox(S._Chooseyourplatformfrompreferences_, MessageType.Info); }