Пример #1
0
        private Entry AddInputField(Game.Option option, object button)
        {
            Entry field = Output.Interface.Field(button);

            field.TextChanged += InputChange;

            Game.Router.InputResponse = option.Input;

            return(field);
        }
Пример #2
0
        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);
        }