private Entry AddInputField(Game.Option option, object button) { Entry field = Output.Interface.Field(button); field.TextChanged += InputChange; Game.Router.InputResponse = option.Input; return(field); }
private Button AddOptionButton(Game.Option option, ref bool gameOver) { Button button = Output.Buttons.Option(option); Game.Router.AddDestination(option.Text, option.Destination, option.Do); gameOver = (option.Destination == 0); button.Clicked += Option_Click; return(button); }