예제 #1
0
        ////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Show message modal
        /// </summary>
        private void ShowMessageModal(string p_Message)
        {
            HideMessageModal();

            m_MessageModalText.text = p_Message;

            m_ParserParams.EmitEvent("ShowMessageModal");
        }
예제 #2
0
        /// <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());
 }
예제 #5
0
        /// <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();
        }
예제 #6
0
        /// <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);
        }
예제 #7
0
        private void OnClearQueueButton()
        {
            /// Clear queue
            ChatRequest.Instance.ClearQueue();

            /// Show modal
            m_ParserParams.EmitEvent("CloseClearQueueMessageModal");
        }