Esempio n. 1
0
    static void OnOpenWaitBox(bool bSuccess, object param)
    {
        if (!bSuccess)
        {
            return;
        }
        if (MessageBoxLogic.Instance() != null)
        {
            WaitBoxInfo curInfo = param as WaitBoxInfo;

            MessageBoxLogic.Instance().CleanData();
            MessageBoxLogic.Instance().delWaitTimeOut = curInfo._delWaitTimeOut;
            MessageBoxLogic.Instance().m_waitTimer    = curInfo._duration;
            MessageBoxLogic.Instance().m_delayTimer   = curInfo._delay;
            MessageBoxLogic.Instance().m_ePassword    = curInfo._password;
            MessageBoxLogic.Instance().ShowMessageBox("", curInfo._text, Games.GlobeDefine.GameDefine_Globe.MESSAGEBOX_TYPE.TYPE_WAIT);
            if (curInfo._delay > 0)
            {
                MessageBoxLogic.Instance().HideBox();
            }
        }
    }
Esempio n. 2
0
    // 等待界面
    // duration 等待时间,如果<=0 则无限等待,
    // delay 延时弹出时间,如有延时,则会先以透明底版的形式弹出,延时结束后显示内容
    public static void OpenWaitBox(string text, float duration = 0, float delay = 0, OnWaitTimeOut delWaitTimeOutFun = null, PASSWORD password = PASSWORD.INVALID)
    {
        WaitBoxInfo curInfo = new WaitBoxInfo(text, duration, delay, delWaitTimeOutFun, password);

        UIManager.ShowUI(UIInfo.MessageBox, OnOpenWaitBox, curInfo);
    }