public void RenderCustom() { GenericPopupBuilder pop = GenericPopupBuilder.Create("Skip Time?", "Input the date you want to skip to. Format is YYYY-M-D ."); pop.AddButton("Cancel", NewClose, true, null); pop.AddInput("Date", (str) => { if (DateTime.TryParse(str, out DateTime t) && state.GetDayDiff(t) > 0) { RenderSkip(t); } else { GenericPopupBuilder.Create("Skip Time?", "Invalid Date!").AddButton("Cancel", NewClose, true, null) .AddFader(new UIColorRef?(LazySingletonBehavior <UIManager> .Instance.UILookAndColorConstants.PopupBackfill), 0f, true).Render(); } }, "3030-1-1", false, false); pop.AddFader(new UIColorRef?(LazySingletonBehavior <UIManager> .Instance.UILookAndColorConstants.PopupBackfill), 0f, true); pop.Render(); }