private void OnGUI() { GUILayout.Label("UI Kit Settings:"); GUILayout.BeginVertical("box"); CurSettingData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", CurSettingData.Namespace); CurSettingData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", CurSettingData.UIScriptDir); CurSettingData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", CurSettingData.UIPrefabDir); if (GUILayout.Button("Apply")) { CurSettingData.Save(); } GUILayout.EndVertical(); GUILayout.Label("Framework:"); GUILayout.BeginVertical("box"); GUILayout.Label(string.Format("Current Framework Version:{0}", FrameworkLocalVersion.Version)); GUILayout.BeginHorizontal(); if (GUILayout.Button("Download Latest Version")) { this.ExecuteNode(new DownloadLatestFramework()); } if (GUILayout.Button("Download Demo")) { this.ExecuteNode(new DownloadLatestDemo()); } GUILayout.EndHorizontal(); GUILayout.EndVertical(); }
private void DrawInit() { if (mHasConfigFile) { GUILayout.BeginHorizontal(); GUILayout.Label("当前版本号", GUILayout.Width(100)); GUILayout.Label(mPackageVersion.Version, GUILayout.Width(100)); GUILayout.EndHorizontal(); } GUILayout.BeginHorizontal(); GUILayout.Label("发布版本号", GUILayout.Width(100)); mVersionText = GUILayout.TextField(mVersionText, GUILayout.Width(100)); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Label("类型", GUILayout.Width(100)); mPackageVersion.Type = (PackageType)EditorGUILayout.EnumPopup(mPackageVersion.Type); GUILayout.EndHorizontal(); GUILayout.Label("发布说明:", GUILayout.Width(150)); mReleaseNote = GUILayout.TextArea(mReleaseNote, GUILayout.Width(250), GUILayout.Height(300)); User.Username = EditorGUIUtils.GUILabelAndTextField("username:"******"password:"******"发布")) { User.Save(); if (mReleaseNote.Length < 2) { ShowErrorMsg("请输入版本修改说明"); return; } if (!IsVersionValide(mVersionText)) { ShowErrorMsg("请输入正确的版本号"); return; } mPackageVersion.Version = mVersionText; mPackageVersion.Readme = new ReleaseItem(mVersionText, mReleaseNote, SystemInfo.deviceName, DateTime.Now.ToString("yyyy-MM-dd")); mPackageVersion.Save(); AssetDatabase.Refresh(); GotoPacking(); } }
void OnGUI() { CurConfigData.Namespace = EditorGUIUtils.GUILabelAndTextField ("Namespace", CurConfigData.Namespace); CurConfigData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField ("UI Script Generate Dir", CurConfigData.UIScriptDir); CurConfigData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField ("UI Prefab Dir", CurConfigData.UIPrefabDir); if (GUILayout.Button ("Apply")) { CurConfigData.Save (); } }
private void OnGUI() { CurSettingData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", CurSettingData.Namespace); CurSettingData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", CurSettingData.UIScriptDir); CurSettingData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", CurSettingData.UIPrefabDir); if (GUILayout.Button("Apply")) { CurSettingData.Save(); } if (GUILayout.Button("Download Latest Version")) { DownloadLatestVersion(); } }
private void OnGUI() { GUILayout.Label("UI Kit Settings:"); GUILayout.BeginVertical("box"); CurSettingData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", CurSettingData.Namespace); CurSettingData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", CurSettingData.UIScriptDir); CurSettingData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", CurSettingData.UIPrefabDir); if (GUILayout.Button("Apply")) { CurSettingData.Save(); } GUILayout.EndVertical(); mPMView.OnGUI(); }
public override void OnGUI() { base.OnGUI(); GUILayout.Label("UI Kit Settings:"); GUILayout.BeginVertical("box"); mFrameworkSettingData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", mFrameworkSettingData.Namespace); mFrameworkSettingData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", mFrameworkSettingData.UIScriptDir); mFrameworkSettingData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", mFrameworkSettingData.UIPrefabDir); if (GUILayout.Button("Apply")) { mFrameworkSettingData.Save(); } GUILayout.EndVertical(); }
void OnGUI() { CurConfigData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", CurConfigData.Namespace); #if NONE_LUA_SUPPORT CurConfigData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", CurConfigData.UIScriptDir); CurConfigData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", CurConfigData.UIPrefabDir); #endif CurConfigData.ResLoaderSupportIndex = EditorGUIUtils.GUILabelAndPopup("AB Support", CurConfigData.ResLoaderSupportIndex, QFrameworkConfigData.RES_LOADER_SUPPORT_TEXTS); CurConfigData.LuaSupportIndex = EditorGUIUtils.GUILabelAndPopup("Lua Support", CurConfigData.LuaSupportIndex, QFrameworkConfigData.LUA_SUPPORT_TEXTS); CurConfigData.CocosSupportIndex = EditorGUIUtils.GUILabelAndPopup("Cocos Support", CurConfigData.CocosSupportIndex, QFrameworkConfigData.COCOS_SUPPORT_TEXTS); if (GUILayout.Button("Apply")) { CurConfigData.Save(); MicroEditor.ApplyAllPlatform(); } }
public override void OnGUI() { base.OnGUI(); if (GUIHelpers.DoToolbarEx("UI Kit Settings")) { GUILayout.BeginVertical("box"); mUiKitSettingData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", mUiKitSettingData.Namespace); mUiKitSettingData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", mUiKitSettingData.UIScriptDir); mUiKitSettingData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", mUiKitSettingData.UIPrefabDir); if (GUILayout.Button("Apply")) { mUiKitSettingData.Save(); } GUILayout.EndVertical(); } }
private void DrawInit() { if (mHasConfigFile) { GUILayout.BeginHorizontal(); GUILayout.Label("当前版本号", GUILayout.Width(100)); GUILayout.Label(mPackageVersion.Version, GUILayout.Width(100)); GUILayout.EndHorizontal(); } GUILayout.BeginHorizontal(); GUILayout.Label("发布版本号", GUILayout.Width(100)); mVersionText = GUILayout.TextField(mVersionText, GUILayout.Width(100)); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Label("类型", GUILayout.Width(100)); mPackageVersion.Type = (PackageType)EditorGUILayout.EnumPopup(mPackageVersion.Type); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Label("权限", GUILayout.Width(100)); mPackageVersion.AccessRight = (PackageAccessRight)EditorGUILayout.EnumPopup(mPackageVersion.AccessRight); GUILayout.EndHorizontal(); GUILayout.Label("发布说明:", GUILayout.Width(150)); mReleaseNote = GUILayout.TextArea(mReleaseNote, GUILayout.Width(250), GUILayout.Height(300)); if (User.Token.Value.IsNullOrEmpty()) { User.Username.Value = EditorGUIUtils.GUILabelAndTextField("username:"******"password:"******"登录")) { GetTokenAction.DoGetToken(User.Username.Value, User.Password.Value, token => { User.Token.Value = token; User.Save(); }); } if (!inRegisterView && GUILayout.Button("注册")) { inRegisterView = true; } if (inRegisterView) { if (GUILayout.Button("注册")) { } if (GUILayout.Button("返回注册")) { inRegisterView = false; } } } else { if (GUILayout.Button("注销")) { User.Token.Value = string.Empty; User.Save(); } } if (User.Token.Value.IsNotNullAndEmpty() && GUILayout.Button("发布")) { User.Save(); if (mReleaseNote.Length < 2) { ShowErrorMsg("请输入版本修改说明"); return; } if (!IsVersionValide(mVersionText)) { ShowErrorMsg("请输入正确的版本号"); return; } mPackageVersion.Version = mVersionText; mPackageVersion.Readme = new ReleaseItem(mVersionText, mReleaseNote, SystemInfo.deviceName, DateTime.Now.ToString("yyyy-MM-dd")); mPackageVersion.Save(); AssetDatabase.Refresh(); GotoPacking(); } }
private void DrawInit() { if (mHasConfigFile) { GUILayout.BeginHorizontal(); GUILayout.Label("当前版本号", GUILayout.Width(100)); GUILayout.Label(mPackageVersion.Version, GUILayout.Width(100)); GUILayout.EndHorizontal(); } GUILayout.BeginHorizontal(); GUILayout.Label("发布版本号", GUILayout.Width(100)); mVersionText = GUILayout.TextField(mVersionText, GUILayout.Width(100)); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Label("类型", GUILayout.Width(100)); mPackageVersion.Type = (PackageType)EditorGUILayout.EnumPopup(mPackageVersion.Type); GUILayout.EndHorizontal(); GUILayout.Label("发布说明:", GUILayout.Width(150)); mReleaseNote = GUILayout.TextArea(mReleaseNote, GUILayout.Width(250), GUILayout.Height(300)); if (!User.Logined) { User.Username.Value = EditorGUIUtils.GUILabelAndTextField("username:"******"password:"******"登录")) { Observable.FromCoroutine(_ => LoginAction.DoLogin(User.Username.Value, User.Password.Value, () => { Debug.Log("True"); User.Logined = true; })).Subscribe(); } if (!inRegisterView && GUILayout.Button("注册")) { inRegisterView = true; } if (inRegisterView) { if (GUILayout.Button("注册")) { } if (GUILayout.Button("返回注册")) { inRegisterView = false; } } } if (User.Logined && GUILayout.Button("发布")) { User.Save(); if (mReleaseNote.Length < 2) { ShowErrorMsg("请输入版本修改说明"); return; } if (!IsVersionValide(mVersionText)) { ShowErrorMsg("请输入正确的版本号"); return; } mPackageVersion.Version = mVersionText; mPackageVersion.Readme = new ReleaseItem(mVersionText, mReleaseNote, SystemInfo.deviceName, DateTime.Now.ToString("yyyy-MM-dd")); mPackageVersion.Save(); AssetDatabase.Refresh(); GotoPacking(); } }