Exemple #1
0
 public void ShowTextBox(string description, TextDialog.OnAccept callback, Predicate<string> acceptValueIf, string defaultValue = "")
 {
     //save callback
     _textDialogCallback = callback;
     //create a text box, sneakily sneak in the callback that unpauses the game and calls the callback
     TextDialog t = new TextDialog(CallTextDialogCallBack, description, acceptValueIf, defaultValue);
     //add menu to scene
     Scene.Add(t);
     //pause the rest game
     Scene.PauseGroup((int)PauseGroups.NotMenu);
 }
Exemple #2
0
        public void ShowTextBox(string description, TextDialog.OnAccept callback, Predicate <string> acceptValueIf, string defaultValue = "")
        {
            //save callback
            _textDialogCallback = callback;
            //create a text box, sneakily sneak in the callback that unpauses the game and calls the callback
            TextDialog t = new TextDialog(CallTextDialogCallBack, description, acceptValueIf, defaultValue);

            //add menu to scene
            Scene.Add(t);
            //pause the rest game
            Scene.PauseGroup((int)PauseGroups.NotMenu);
        }
Exemple #3
0
 public void ShowTextBox(string description, TextDialog.OnAccept callback)
 {
     ShowTextBox(description, callback, t => true);
 }