Exemple #1
0
        /// <summary>
        /// Adds a button to the overlay which invokes a function with no parameters
        /// </summary>
        /// <param name="onButtonDown"></param>
        public static void AddButton(Button.Callback onButtonDown)
        {
            var button = new Button(onButtonDown.Method.Name, onButtonDown);

            instance.Windows.Buttons.Add(button);
        }
Exemple #2
0
        /// <summary>
        /// Adds a button to the overlay which invokes a function with no parameters.
        /// </summary>
        /// <param name="description">What description to use for the button</param>
        /// <param name="onButtonDown">The function to be invoked when the button is pressed</param>
        public static void AddButton(string description, Button.Callback onButtonDown)
        {
            var button = new Button(description, onButtonDown);

            instance.Windows.Buttons.Add(button);
        }