protected static void showHelp() { scrollPosHelp = EditorGUILayout.BeginScrollView(scrollPosHelp, false, false); { GUILayout.Label("Resources", EditorStyles.boldLabel); //GUILayout.Space(8); GUILayout.BeginHorizontal(); { GUILayout.BeginVertical(); { if (GUILayout.Button(new GUIContent("Manual", EditorHelper.Icon_Manual, "Show the manual."))) { Application.OpenURL(Util.Constants.ASSET_MANUAL_URL); } GUILayout.Space(6); if (GUILayout.Button(new GUIContent("Forum", EditorHelper.Icon_Forum, "Visit the forum page."))) { Application.OpenURL(Util.Constants.ASSET_FORUM_URL); } } GUILayout.EndVertical(); GUILayout.BeginVertical(); { if (GUILayout.Button(new GUIContent("API", EditorHelper.Icon_API, "Show the API."))) { Application.OpenURL(Util.Constants.ASSET_API_URL); } GUILayout.Space(6); if (GUILayout.Button(new GUIContent("Product", EditorHelper.Icon_Product, "Visit the product page."))) { Application.OpenURL(Util.Constants.ASSET_WEB_URL); } } GUILayout.EndVertical(); } GUILayout.EndHorizontal(); EditorHelper.SeparatorUI(); GUILayout.Label("3rd Party Assets", EditorStyles.boldLabel); // GUILayout.BeginHorizontal (); // { GUILayout.BeginHorizontal(); { if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_PlayMaker, "More information about 'PlayMaker'."))) { Application.OpenURL(Util.Constants.ASSET_3P_PLAYMAKER); //Application.OpenURL(Util.Constants.ASSET_3RD_PARTY_URL); } if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_AdventureCreator, "More information about 'Adventure Creator'."))) { Application.OpenURL(Util.Constants.ASSET_3P_ADVENTURE_CREATOR); } if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_CinemaDirector, "More information about 'Cinema Director'."))) { Application.OpenURL(Util.Constants.ASSET_3P_CINEMA_DIRECTOR); } } GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); { if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_DialogueSystem, "More information about 'Dialogue System'."))) { Application.OpenURL(Util.Constants.ASSET_3P_DIALOG_SYSTEM); } if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_LDC, "More information about 'Localized Dialogs'."))) { Application.OpenURL(Util.Constants.ASSET_3P_LOCALIZED_DIALOGS); } //GUILayout.Space (6); if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_LipSync, "More information about 'LipSync'."))) { Application.OpenURL(Util.Constants.ASSET_3P_LIPSYNC); } } GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); { if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_NPC_Chat, "More information about 'NPC Chat'."))) { Application.OpenURL(Util.Constants.ASSET_3P_NPC_CHAT); } //GUILayout.Space (6); if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_QuestSystem, "More information about 'Quest System'."))) { Application.OpenURL(Util.Constants.ASSET_3P_QUEST_SYSTEM); } if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_SALSA, "More information about 'SALSA'."))) { Application.OpenURL(Util.Constants.ASSET_3P_SALSA); } } GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); { //GUILayout.Space (6); if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_SLATE, "More information about 'SLATE'."))) { Application.OpenURL(Util.Constants.ASSET_3P_SLATE); } if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_THE_Dialogue_Engine, "More information about 'THE Dialogue Engine'."))) { Application.OpenURL(Util.Constants.ASSET_3P_DIALOGUE_ENGINE); } //GUILayout.Space (6); if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Store_uSequencer, "More information about 'uSequencer'."))) { Application.OpenURL(Util.Constants.ASSET_3P_USEQUENCER); } } GUILayout.EndHorizontal(); // } // GUILayout.EndHorizontal (); GUILayout.Space(6); if (GUILayout.Button(new GUIContent("All Supported Assets", EditorHelper.Icon_3p_Assets, "More information about the all supported assets."))) { Application.OpenURL(Util.Constants.ASSET_3P_URL); //Application.OpenURL(Util.Constants.ASSET_3RD_PARTY_URL); } } EditorGUILayout.EndScrollView(); GUILayout.Space(6); }
protected static void showAbout() { scrollPosAbout = EditorGUILayout.BeginScrollView(scrollPosAbout, false, false); { GUILayout.Label(Util.Constants.ASSET_NAME, EditorStyles.boldLabel); GUILayout.BeginHorizontal(); { GUILayout.BeginVertical(GUILayout.Width(60)); { GUILayout.Label("Version:"); GUILayout.Space(12); GUILayout.Label("Web:"); GUILayout.Space(2); GUILayout.Label("Email:"); } GUILayout.EndVertical(); GUILayout.BeginVertical(GUILayout.Width(170)); { GUILayout.Space(0); GUILayout.Label(Util.Constants.ASSET_VERSION); GUILayout.Space(12); EditorGUILayout.SelectableLabel(Util.Constants.ASSET_AUTHOR_URL, GUILayout.Height(16), GUILayout.ExpandHeight(false)); GUILayout.Space(2); EditorGUILayout.SelectableLabel(Util.Constants.ASSET_CONTACT, GUILayout.Height(16), GUILayout.ExpandHeight(false)); } GUILayout.EndVertical(); GUILayout.BeginVertical(GUILayout.ExpandWidth(true)); { //GUILayout.Space(0); } GUILayout.EndVertical(); GUILayout.BeginVertical(GUILayout.Width(64)); { //GUILayout.Label(logo_asset, GUILayout.Height(80)); if (GUILayout.Button(new GUIContent(string.Empty, EditorHelper.Logo_Asset, "Visit asset website"))) { Application.OpenURL(Util.Constants.ASSET_URL); } if (!Util.Constants.isPro) { if (GUILayout.Button(new GUIContent("Upgrade", "Upgrade " + Util.Constants.ASSET_NAME + " to the PRO-version"))) { Application.OpenURL(Util.Constants.ASSET_PRO_URL); } } } GUILayout.EndVertical(); } GUILayout.EndHorizontal(); //GUILayout.Space(12); GUILayout.Label("© 2015-2017 by " + Util.Constants.ASSET_AUTHOR); EditorHelper.SeparatorUI(); if (worker == null || (worker != null && !worker.IsAlive)) { if (GUILayout.Button(new GUIContent("Check For Update", EditorHelper.Icon_Check, "Checks for available updates of " + Util.Constants.ASSET_NAME))) { worker = new System.Threading.Thread(() => UpdateCheck.UpdateCheckForEditor(out updateText)); worker.Start(); } } else { GUILayout.Label("Checking... Please wait.", EditorStyles.boldLabel); } Color fgColor = GUI.color; if (updateText.Equals(UpdateCheck.TEXT_NOT_CHECKED)) { GUI.color = Color.cyan; GUILayout.Label(updateText); } else if (updateText.Equals(UpdateCheck.TEXT_NO_UPDATE)) { GUI.color = Color.green; GUILayout.Label(updateText); } else { GUI.color = Color.yellow; GUILayout.Label(updateText); if (GUILayout.Button(new GUIContent("Download", "Visit the 'Unity AssetStore' to download the latest version."))) { Application.OpenURL(Util.Constants.ASSET_URL); } } GUI.color = fgColor; } EditorGUILayout.EndScrollView(); EditorHelper.SeparatorUI(); GUILayout.BeginHorizontal(); { if (GUILayout.Button(new GUIContent("AssetStore", EditorHelper.Logo_Unity, "Visit the 'Unity AssetStore' website."))) { Application.OpenURL(Util.Constants.ASSET_CT_URL); } if (GUILayout.Button(new GUIContent(Util.Constants.ASSET_AUTHOR, EditorHelper.Logo_CT, "Visit the '" + Util.Constants.ASSET_AUTHOR + "' website."))) { Application.OpenURL(Util.Constants.ASSET_AUTHOR_URL); } } GUILayout.EndHorizontal(); GUILayout.Space(6); }