public void ShowMessageBox(string msg, string centerStr, UIEventListener.VoidDelegate callBack) { UIBaseWindow msgWindow = ReadyToShowBaseWindow(WindowID.WindowID_MessageBox); if (msgWindow != null) { UIMessageBox messageBoxWindow = ((UIMessageBox)msgWindow); ((UIMessageBox)msgWindow).ResetWindow(); messageBoxWindow.SetMsg(msg); messageBoxWindow.SetCenterBtnCallBack(centerStr, callBack); RealShowWindow(msgWindow, WindowID.WindowID_MessageBox); } }
public void ShowMessageBox(string msg, string leftStr, UIEventListener.VoidDelegate leftCallBack, string rightStr, UIEventListener.VoidDelegate rightCallBack) { UIBaseWindow msgWindow = ReadyToShowBaseWindow(WindowID.WindowID_MessageBox); if (msgWindow != null) { UIMessageBox messageBoxWindow = ((UIMessageBox)msgWindow); ((UIMessageBox)msgWindow).ResetWindow(); messageBoxWindow.SetMsg(msg); messageBoxWindow.SetRightBtnCallBack(rightStr, rightCallBack); messageBoxWindow.SetLeftBtnCallBack(leftStr, leftCallBack); RealShowWindow(msgWindow, WindowID.WindowID_MessageBox); } }