//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /// <summary> /// Show message modal /// </summary> private void ShowMessageModal(string p_Message) { HideMessageModal(); m_MessageModalText.text = p_Message; m_ParserParams.EmitEvent("ShowMessageModal"); }
/// <summary> /// On deactivate /// </summary> /// <param name="p_RemovedFromHierarchy">Desactivation type</param> /// <param name="p_ScreenSystemEnabling">Is screen system enabled</param> protected override void DidDeactivate(bool p_RemovedFromHierarchy, bool p_ScreenSystemDisabling) { /// Forward event base.DidDeactivate(p_RemovedFromHierarchy, p_ScreenSystemDisabling); /// Close modals m_ParserParams.EmitEvent("CloseAllModals"); }
private void OnDeleteButton() { IBeatmapLevel l_LevelToDelete = standardLevelDetailView.GetField <IBeatmapLevel>("_level"); if (l_LevelToDelete != null && l_LevelToDelete is CustomBeatmapLevel customLevel) { m_DeleteConfirmationText.text = $"Are you sure you would like to delete '<color=#FFFFCC>{Utils.GameUI.EscapeTextMeshProTags(customLevel.songName)}</color>' by {Utils.GameUI.EscapeTextMeshProTags(customLevel.levelAuthorName)}?"; m_ParserParams.EmitEvent("show-delete-confirmation-modal"); } }
public void DonateClicked() { //button.interactable = false; //linkOpened.gameObject.SetActive(true); //StartCoroutine(SecondRemove(button)); parserParams.EmitEvent("close-patreonModal"); openedText.gameObject.SetActive(true); donateButton.interactable = false; Application.OpenURL("https://www.patreon.com/bobbievr"); StartCoroutine(DonateActiveAgain()); }
/// <summary> /// On deactivate /// </summary> /// <param name="p_RemovedFromHierarchy">Desactivation type</param> /// <param name="p_ScreenSystemEnabling">Is screen system enabled</param> protected override void DidDeactivate(bool p_RemovedFromHierarchy, bool p_ScreenSystemDisabling) { /// Forward event base.DidDeactivate(p_RemovedFromHierarchy, p_ScreenSystemDisabling); /// Close all remaining modals m_ParserParams.EmitEvent("CloseAllModals"); /// Stop preview music if any m_SongPreviewPlayer.CrossfadeToDefault(); }
/// <summary> /// Hide modal /// </summary> /// <param name="p_Event"></param> protected void CloseModal(string p_Event) { if (!UICreated) { Logger.Instance?.Error("[SDK.UI][ViewController.CloseModal] Close modal \"" + p_Event + "\" called before View UI's creation"); return; } if (m_ModalCoroutine != null) { StopCoroutine(m_ModalCoroutine); m_ModalCoroutine = null; } m_ParserParams.EmitEvent(p_Event); }
private void OnClearQueueButton() { /// Clear queue ChatRequest.Instance.ClearQueue(); /// Show modal m_ParserParams.EmitEvent("CloseClearQueueMessageModal"); }