private void DrawIOSPreferences() { EditorGUIExtensions.DrawHeader("iOS"); DrawScriptingImplementationIOS(); DrawAppleTeamId(); DrawAutomaticallySign(); }
private void DrawAndroidPreferences() { EditorGUIExtensions.DrawHeader("Android"); DrawMinAPIVersion(); DrawTargetAPIVersion(); DrawArchitecturesAndroid(); DrawScriptingImplementationAndroid(); DrawSplitAPKs(); DrawManifestIsDebuggable(); }
private void DrawPlatformButtons() { EditorGUIExtensions.DrawHeader("Platform settings"); GUILayout.BeginHorizontal(); DrawPlatformButton(BuildTarget.Android); DrawPlatformButton(BuildTarget.iOS); GUILayout.EndHorizontal(); }
private void DrawManifestInfo() { EditorGUIExtensions.DrawHeader("Android Manifest Settings"); if (ManifestUtility.HasManifest()) { DrawIsDebuggable(); } else { EditorGUILayout.HelpBox("AndroidManifest.xml doesn't exist.", MessageType.Warning); } }
private void DrawSharedSettings() { EditorGUIExtensions.DrawHeader("Application"); DrawProWarning(); DrawAppName(); DrawCompany(); DrawVersion(); DrawIcon(); EditorGUIExtensions.DrawHeader("Splash screen"); DrawSplashLogos(); DrawSplashBackgroundColor(); EditorGUIExtensions.DrawHeader("Orientation"); DrawOrientationMode(); }
private void DrawSDKs() { for (int i = 0; i < _target.SDKs.Count; i++) { var sdk = _target.SDKs[i]; EditorGUI.BeginChangeCheck(); bool removed; EditorGUILayout.BeginHorizontal(); var newSDK = (SDKBuildPreferences)EditorGUILayout.ObjectField(sdk, typeof(SDKBuildPreferences), false); removed = GUILayout.Button("Remove"); EditorGUILayout.EndHorizontal(); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(_target, "Edited Build Preferences"); _target.SDKs[i] = newSDK; } if (removed) { Undo.RecordObject(_target, "Edited Build Preferences"); _target.SDKs.RemoveAt(i); i--; continue; } if (newSDK) { EditorGUIExtensions.DrawHeader(newSDK.ItemName); newSDK.DrawPreferences(); } } if (GUILayout.Button("Add SDK")) { Undo.RecordObject(_target, "Edited Build Preferences"); _target.SDKs.Add(null); } }
private void DrawSDKsSettings() { foreach (var sdk in _settings.SelectedPreferences.SDKs) { if (sdk != null) { EditorGUIExtensions.DrawHeader(sdk.ItemName); sdk.DrawComparsion(); if (sdk.HasInternalSettings && GUILayout.Button("Open SDK settings")) { sdk.OpenInternalSettings(); } } } }
private bool DrawRequirable(Requirable requirable) { EditorGUI.BeginChangeCheck(); EditorGUIExtensions.DrawHeader(requirable.ItemName); var value = EditorGUILayout.Toggle("Required", requirable.Required); EditorGUILayout.Space(); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(_target, "Edited Build Preferences"); requirable.Required = value; } return(value); }
private void DrawOwnSettings() { EditorGUIExtensions.DrawHeader("Internal"); DrawBuildType(); DrawLinkToPreferences(); }