private void DoCreateWindow(SimplePopUpMessageWindow popupWindow) { popupWindow.OnClose += () => { ClientJobManager.I.ReserveJob(async() => { m_VeldridWindow.TryRemoveRenderer(popupWindow); }); }; AddGui(popupWindow); }
public void CreatePopUp(string message, Action onOk, Action onCancel) { var popupWindow = new SimplePopUpMessageWindow(message, onOk, onCancel); DoCreateWindow(popupWindow); }
public void CreatePopUp(string message) { var popupWindow = new SimplePopUpMessageWindow(message); DoCreateWindow(popupWindow); }