public override void DoGUI() { SkillEditorStyles.Init(); GUILayout.BeginVertical(new GUILayoutOption[0]); SkillEditorGUILayout.PlaymakerHeader(this); GUILayout.Label(FsmEditorSettings.ProductCopyright, EditorStyles.get_miniLabel(), new GUILayoutOption[0]); GUILayout.Label((!EditorApp.IsSourceCodeVersion) ? string.Format(Strings.get_AboutPlaymaker_Version_Info(), VersionInfo.GetAssemblyInformationalVersion()) : "Source Code Version", new GUILayoutOption[0]); if (VersionInfo.PlayMakerVersionInfo != "") { EditorGUILayout.HelpBox(VersionInfo.PlayMakerVersionInfo, 0); } EditorGUILayout.HelpBox(string.Format(Strings.get_AboutPlaymaker_Special_Thanks(), "Erin Ko, Kemal Amarasingham, Bruce Blumberg, Steve Gargolinski, Lee Hepler, Bart Simon, Lucas Meijer, Joachim Ante, Jaydee Alley, James Murchison, XiaoHang Zheng, Andrzej Łukasik, Vanessa Wesley, Marek Ledvina, Bob Berkebile, Jean Fabre, MaDDoX, gamesonytablet, Marc 'Dreamora' Schaerer, Eugenio 'Ryo567' Martínez, Steven 'Nightreaver' Barthen, Damiangto, VisionaiR3D, 黄峻, Nilton Felicio, Andre Dantas Lima, Ramprasad Madhavan, and the PlayMaker Community!\r\n"), 0); if (GUILayout.Button(Strings.get_AboutPlaymaker_Release_Notes(), new GUILayoutOption[0])) { EditorCommands.OpenWikiPage(WikiPages.ReleaseNotes); } if (GUILayout.Button(Strings.get_AboutPlaymaker_Hutong_Games_Link(), new GUILayoutOption[0])) { Application.OpenURL("http://hutonggames.com/"); } GUILayout.Space(5f); GUILayout.EndVertical(); if (!AboutPlaymaker.heightHasBeenSet && Event.get_current().get_type() == 7) { this.SetWindowHeightToFitContents(); } }
public override void DoGUI() { FsmEditorStyles.Init(); GUILayout.BeginVertical(); FsmEditorGUILayout.PlaymakerHeader(this); GUILayout.Space(10); GUILayout.Label("© Hutong Games LLC. All Rights Reserved.", EditorStyles.miniLabel); GUILayout.Label("Version 1.7.8.4"); if (VersionInfo.PlayMakerVersionInfo != "") { EditorGUILayout.HelpBox(VersionInfo.PlayMakerVersionInfo, MessageType.None); } #if (UNITY_5_0 || UNITY_5) if (showUpdateWarning) { EditorGUILayout.HelpBox("Update PlayMaker for Unity 5!" + "\nUpdate in the Unity 5 Asset store, or " + "download from the Hutong Games store.", MessageType.Error); } #endif EditorGUILayout.HelpBox(string.Format(Strings.AboutPlaymaker_Special_Thanks, "Erin Ko, Kemal Amarasingham, Bruce Blumberg, Steve Gargolinski, Lee Hepler, Bart Simon, " + "Lucas Meijer, Joachim Ante, Jaydee Alley, James Murchison, XiaoHang Zheng, Andrzej Łukasik, " + "Vanessa Wesley, Marek Ledvina, Bob Berkebile, Jean Fabre, MaDDoX, gamesonytablet, " + "Marc 'Dreamora' Schaerer, Eugenio 'Ryo567' Martínez, Steven 'Nightreaver' Barthen, " + "Damiangto, VisionaiR3D, 黄峻, Nilton Felicio, Andre Dantas Lima, " + "Ramprasad Madhavan, and the PlayMaker Community!\r\n"), MessageType.None); if (GUILayout.Button(Strings.AboutPlaymaker_Release_Notes)) { EditorCommands.OpenWikiPage(WikiPages.ReleaseNotes); } if (GUILayout.Button(Strings.AboutPlaymaker_Hutong_Games_Link)) { Application.OpenURL("http://www.hutonggames.com/"); } GUILayout.Space(5); GUILayout.EndVertical(); if (!heightHasBeenSet && Event.current.type == EventType.repaint) { SetWindowHeightToFitContents(); } }
public static bool OpenWikiPage(string topic) { int wikiPageNumber = EditorCommands.GetWikiPageNumber(topic); if (wikiPageNumber > 0) { EditorCommands.OpenWikiPage(wikiPageNumber); return(true); } return(false); }
private void DoBottomPanel() { SkillEditorGUILayout.Divider(new GUILayoutOption[0]); if (this.selectedAction != null) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); GUILayout.Label(Labels.GetActionLabel(this.selectedAction), SkillEditorStyles.ActionPreviewTitle, new GUILayoutOption[] { GUILayout.MaxWidth(base.get_position().get_width() - 30f) }); GUILayout.FlexibleSpace(); if (SkillEditorGUILayout.HelpButton("Online Help")) { EditorCommands.OpenWikiPage(this.previewAction); } GUILayout.EndHorizontal(); string tooltip = Actions.GetTooltip(this.selectedAction); GUILayout.Box(tooltip, SkillEditorStyles.LabelWithWordWrap, new GUILayoutOption[0]); if (Event.get_current().get_type() == 7) { this.descriptionHeight = GUILayoutUtility.GetLastRect().get_height(); } ActionEditor.PreviewMode = true; EditorGUILayout.Space(); SkillEditorGUILayout.Divider(new GUILayoutOption[0]); if (FsmEditorSettings.ShowActionPreview) { this.DoSelectedActionPreview(); } ActionEditor.PreviewMode = false; } GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag = GUILayout.Toggle(FsmEditorSettings.ShowActionPreview, Strings.get_ActionSelector_Preview(), new GUILayoutOption[0]); if (flag != FsmEditorSettings.ShowActionPreview) { FsmEditorSettings.ShowActionPreview = flag; FsmEditorSettings.SaveSettings(); } EditorGUI.BeginDisabledGroup(SkillEditor.SelectedState == null || this.selectedAction == null || FsmGraphView.EditingDisable); if (GUILayout.Button(new GUIContent(Strings.get_ActionSelector_Add_Action_To_State(), Strings.get_ActionSelector_Add_Action_To_State_Tooltip()), new GUILayoutOption[0])) { this.AddSelectedActionToState(); } EditorGUI.EndDisabledGroup(); GUILayout.EndHorizontal(); EditorGUILayout.Space(); }
public static void OpenWikiPage(SkillStateAction action) { HelpUrlAttribute attribute = CustomAttributeHelpers.GetAttribute <HelpUrlAttribute>(action.GetType()); if (attribute != null) { Application.OpenURL(attribute.get_Url()); return; } string topic = Labels.StripNamespace(action.ToString()); if (!EditorCommands.OpenWikiPage(topic)) { EditorCommands.SearchWikiHelp(action); } }
private void DoBottomPanel() { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool enabled = GUI.get_enabled(); if (SkillEditor.SelectedFsm == null || this.selectedEvent == null || SkillEditor.SelectedFsm.HasEvent(this.selectedEvent.get_Name())) { GUI.set_enabled(false); } if (GUILayout.Button(Strings.get_Command_Add_Selected_Event_To_FSM(), new GUILayoutOption[0])) { this.AddSelectedEventToState(); } GUI.set_enabled(enabled); if (SkillEditorGUILayout.HelpButton("Online Help")) { EditorCommands.OpenWikiPage(WikiPages.EventBrowser); } GUILayout.EndHorizontal(); EditorGUILayout.Space(); }
public override void DoGUI() { FsmEditorStyles.Init(); GUILayout.BeginVertical(); FsmEditorGUILayout.PlaymakerHeader(this); GUILayout.Label(FsmEditorSettings.ProductCopyright, EditorStyles.miniLabel); GUILayout.Label(!EditorApp.IsSourceCodeVersion ? string.Format(Strings.AboutPlaymaker_Version_Info, VersionInfo.GetAssemblyInformationalVersion()) : "Source Code Version"); if (VersionInfo.PlayMakerVersionInfo != "") { EditorGUILayout.HelpBox(VersionInfo.PlayMakerVersionInfo, MessageType.None); } // Some actions use render pipeline defines // E.g., Set Material Color uses _BaseColor instead of _Color #if PLAYMAKER_URP GUILayout.Label("Render Pipeline: URP"); #elif PLAYMAKER_HDRP GUILayout.Label("Render Pipeline: HDRP"); #else GUILayout.Label("Render Pipeline: Built-in"); #endif #if PLAYMAKER_TMPRO // Some actions use this define to support TextMeshPro features. GUILayout.Label("TextMeshPro support enabled."); #endif EditorGUILayout.HelpBox(string.Format(Strings.AboutPlaymaker_Special_Thanks, "Erin Ko, Jean Fabre, DjayDino, Lane Fox, Stephen Scott Day, Kemal Amarasingham, Bruce Blumberg, " + "Steve Gargolinski, Lee Hepler, Bart Simon, Lucas Meijer, Joachim Ante, " + "Jaydee Alley, James Murchison, XiaoHang Zheng, Andrzej Łukasik, " + "Vanessa Wesley, Marek Ledvina, Bob Berkebile, MaDDoX, gamesonytablet, " + "Marc 'Dreamora' Schaerer, Eugenio 'Ryo567' Martínez, Steven 'Nightreaver' Barthen, " + "Damiangto, VisionaiR3D, 黄峻, Nilton Felicio, Andre Dantas Lima, " + "Ramprasad Madhavan, and the PlayMaker Community!\r\n"), MessageType.None); if (GUILayout.Button(Strings.AboutPlaymaker_Release_Notes)) { EditorCommands.OpenWikiPage(WikiPages.ReleaseNotes); } if (GUILayout.Button(Strings.AboutPlaymaker_Hutong_Games_Link)) { Application.OpenURL(FsmEditorSettings.ProductUrl); } GUILayout.Space(5); GUILayout.EndVertical(); if (!heightHasBeenSet && Event.current.type == EventType.Repaint) { SetWindowHeightToFitContents(); } }
private static void OpenOnlineHelp() { EditorCommands.OpenWikiPage(WikiPages.VariableManager); }
public static void OpenWikiPage(WikiPages page) { EditorCommands.OpenWikiPage((int)page); }
public static void OpenWikiHelp() { EditorCommands.OpenWikiPage(WikiPages.Home); }