public void ShowNoticeWindow(NoticeWindowStyle style, string title, Action yesCB, Action noCB, string yesText, string noText, float countDownTime, Action countDownCallback) { NoticeInfoItem.style = style; NoticeInfoItem.Title = title; NoticeInfoItem.YesCallback = yesCB; NoticeInfoItem.NoCallback = noCB; NoticeInfoItem.YesText = yesText; NoticeInfoItem.NoText = noText; NoticeInfoItem.CountDownTime = countDownTime; NoticeInfoItem.CountDownCallback = countDownCallback; }
private void Reset() { style = NoticeWindowStyle.YESNO; title = string.Empty; yesCallback = null; noCallback = null; countDownCallback = null; yesTex = string.Empty; noText = string.Empty; countDownTime = 0; adapter.SetCrossVisible(false); }
private void ShowCountDownWindow(string title, Action countDownCallback, float countDownTime) { Reset(); this.style = NoticeWindowStyle.COUNTDOWN; this.title = title; this.yesCallback = null; this.yesTex = ""; this.noCallback = null; this.noText = ""; this.countDownCallback = countDownCallback; this.countDownTime = countDownTime; RefreshGui(); }
private void ShowYesWindow(string title, Action yesCallback, string yesText) { Reset(); this.style = NoticeWindowStyle.YES; this.title = title; this.yesCallback = yesCallback; this.yesTex = yesText; this.noCallback = null; this.noText = ""; this.countDownCallback = null; this.countDownTime = 0; RefreshGui(); }