Ejemplo n.º 1
0
        public void ShowMessageBox(string msg, string centerStr, UIEventListener.VoidDelegate callBack)
        {
            BaseUI msgWindow = GetUIByType(E_UIType.PanelMessageBox);

            if (msgWindow != null)
            {
                UIMessageBox messageBoxWindow = ((UIMessageBox)msgWindow);
                ((UIMessageBox)msgWindow).ResetWindow();
                messageBoxWindow.SetMsg(msg);
                messageBoxWindow.SetCenterBtnCallBack(centerStr, callBack);
                ShowUI(E_UIType.PanelMessageBox, typeof(UIMessageBox), null);
            }
        }