private void OpenPopUp(string message, PopUpWindows popUp)
 {
     CloseAndSave();
     popUpController.GetComponent <IPopUpController>().OnClosePopUp = OpenSaved;
     popUpController.GetComponent <IPopUpController>().ShowPopUp(message, popUp);
     Debug.Log(message);
 }
Beispiel #2
0
    /// <summary>
    /// 打开提示窗口
    /// </summary>
    /// <param name="content"></param>
    /// <param name="okCallback"></param>
    /// <param name="cancelCallback"></param>
    public static void OpenAtlerWin(string content, UnityAction okCallback = null, UnityAction cancelCallback = null)
    {
        UIManager.GetInstance().ShowUIForm(EM_WinType.PopUpWindows);
        PopUpWindows win = UIManager.GetInstance().GetWinForm(EM_WinType.PopUpWindows) as PopUpWindows;

        if (win != null)
        {
            win.Init(content, okCallback, cancelCallback);
        }
    }
Beispiel #3
0
    public void ShowPopUp(string message, PopUpWindows popUp)
    {
        switch (popUp)
        {
        case PopUpWindows.Success:
            success_Panel.GetComponent <IPopUp>().ShowPopUp(message);
            break;

        case PopUpWindows.Error:
            error_Panel.GetComponent <IPopUp>().ShowPopUp(message);
            break;

        case PopUpWindows.Warning:
            warning_Panel.GetComponent <IPopUp>().ShowPopUp(message);
            break;

        case PopUpWindows.Extended:
            extended_Panel.GetComponent <IPopUp>().ShowPopUp(message);
            break;
        }
    }