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(); } }
/// <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; }
private void ClosePopup() { if (m_popup != null) { m_popup.Hide(); } }
public void HidePopup() { if (popup == null) { return; } spawnPopup = false; popup.Hide(); }
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; }
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()); }
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; }
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(); } }
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(); }
public void Hide() { window.Hide(); }
public void hidePopup() { _popup.Hide(); }
public void SelecOk() { //this.gameObject.SetActive(false); uIPopup.Hide(); Debug.Log(nameof(SelecOk)); }