Ejemplo n.º 1
0
    private IEnumerator LoginEnum(string username, string password, bool rememberMe)
    {
        Coroutine <bool> routine = this.StartCoroutine <bool>(GameManager.instance.Login(username, password, rememberMe));

        yield return(routine.coroutine);

        Debug.Log(routine.returnVal);
        if (routine.returnVal == true)
        {
            loginPopup.Hide();
        }
    }
Ejemplo n.º 2
0
        /// <summary> Fires the 'Back' button event (if it can be executed and is enabled) </summary>
        public void Execute()
        {
            if (!CanExecuteBackButton)
            {
                return;
            }
            if (BackButtonDisabled)
            {
                return;
            }

            if (UIPopup.AnyPopupVisible)
            {
                UIPopup popup = UIPopup.LastShownPopup;
                if (popup.HideOnBackButton)
                {
                    popup.Hide();
                }
                return;
            }

            if (UIDrawer.AnyDrawerOpened)
            {
                UIDrawer.OpenedDrawer.Close();
                return;
            }

            Message.Send(new UIButtonMessage(NAME, UIButtonBehaviorType.OnClick));
            m_lastBackButtonPressTime = Time.realtimeSinceStartup;
        }
Ejemplo n.º 3
0
 private void ClosePopup()
 {
     if (m_popup != null)
     {
         m_popup.Hide();
     }
 }
Ejemplo n.º 4
0
    public void HidePopup()
    {
        if (popup == null)
        {
            return;
        }

        spawnPopup = false;
        popup.Hide();
    }
Ejemplo n.º 5
0
    public void ClosePopup()
    {
        InputManager.Instance.RemoveInputEventDelegate(OnInputUpdate);

        m_CurrentPopup.Hide();

        Destroy(m_CurrentPopup.gameObject, 1f); // awful! need a delay based on the animation finishing
        m_CurrentPopup  = null;
        m_CloseCallback = null;
    }
Ejemplo n.º 6
0
    public void ShowDialogueText(DialogueData data)
    {
        Debug.Log($"#Dialogue#Data text: '{data.text}' and bool {data.HasText}");

        if (data.HasSprite)
        {
            _portrait.gameObject.SetActive(true);
            SetPortrait(data.sprite);
        }
        else
        {
            _portrait.gameObject.SetActive(false);
        }
        if (data.HasDescriptionImage)
        {
            _currentPopup?.Hide();
            _currentPopup = UIPopup.GetPopup(POPUP_NAME);
            SetDescriptionImage(data.descriptionSprite);
        }
        SetDialogue(data.text, data.name);
        ShowDialogueTween(CutDialog());
    }
Ejemplo n.º 7
0
    private IEnumerator RegisterEnum(string username, string password, string email)
    {
        Coroutine <bool> routine = this.StartCoroutine <bool>(GameManager.instance.Register(username, password, email));

        yield return(routine.coroutine);

        Debug.Log(routine.returnVal);
        if (routine.returnVal == true)
        {
            registerPopup.Hide();
        }
        loginPopup.Hide();
    }
        /// <summary> Fire the 'Back' button event (if it can be executed and is enabled) </summary>
        public void Execute()
        {
            if (!DoozySettings.Instance.UseBackButton)
            {
                return;
            }
            if (!CanExecuteBackButton)
            {
                return;
            }
            if (BackButtonDisabled)
            {
                return;
            }

            if (UIPopup.AnyPopupVisible)
            {
                UIPopup lastShownPopup = UIPopup.LastShownPopup;
                if (lastShownPopup.HideOnBackButton)
                {
                    lastShownPopup.Hide();
                }

                if (lastShownPopup.BlockBackButton)
                {
                    return;
                }
            }

            if (UIDrawer.AnyDrawerOpened)
            {
                UIDrawer openedDrawer = UIDrawer.OpenedDrawer;
                if (openedDrawer.HideOnBackButton)
                {
                    openedDrawer.Close();
                }

                if (openedDrawer.BlockBackButton)
                {
                    return;
                }
            }

            Message.Send(new UIButtonMessage(NAME, UIButtonBehaviorType.OnClick));
            m_lastBackButtonPressTime = Time.realtimeSinceStartup;
        }
Ejemplo n.º 9
0
        public void ShowPopup(UIPopup popup, bool show)
        {
            if (show && _waitUntilAllControlsHidden)
            {
                StartCoroutine(ShowPopupAfterAllControlsHide(popup));
                return;
            }

            foreach (var button in popup.Data.Buttons)
            {
                button.Interactable = show;
            }

            if (show)
            {
                popup.Show();
                _currOpenPopup = popup;
            }
            else
            {
                popup.Hide();
            }
        }
Ejemplo n.º 10
0
    private IEnumerator HideControls(float waitTime)
    {
        yield return(new WaitForSeconds(waitTime));

        ControlsPopUp.Hide();
    }
 public void HidePopup()
 {
     popup.Hide();
     Invoke("ActivateShowButton", 0.5f);
 }
 public void OnClick()
 {
     m_popup.Hide();
 }
Ejemplo n.º 13
0
 public void Hide()
 {
     window.Hide();
 }
Ejemplo n.º 14
0
 public void hidePopup()
 {
     _popup.Hide();
 }
Ejemplo n.º 15
0
 public void SelecOk()
 {
     //this.gameObject.SetActive(false);
     uIPopup.Hide();
     Debug.Log(nameof(SelecOk));
 }