Exemple #1
0
        public static void Ask(string prompt, Action onYes, Action onNo)
        {
            if (me == null)
            {
                me = new ConfirmScreen(Kafe.Me);
            }

            me.prompt   = prompt;
            me.onYes    = onYes;
            me.onNo     = onNo;
            me.animTime = 0;
            me.onRight  = false;

            Kafe.PauseAll(false, me);
            Kafe.Me.Components.Add(me);
        }
Exemple #2
0
 public static void AskToQuit()
 {
     ConfirmScreen.Ask("Are you sure you want to exit?", () => { Kafe.Me.Exit(); }, () => { Input.Flush(); });
 }