Beispiel #1
0
        /// <summary>
        ///
        /// Draws GUIButton with passed parameters
        /// </summary>
        /// <param name="callbackEvent">Function that will be called when button is pressed</param>
        public void DrawButton(Texture2D normalTexture, Texture2D hoverTexture, Texture2D pressedTexture, Texture2D disabledTexture, GUIButtonState startState, ButtonPressedCallback callbackEvent, Rectangle rect)
        {
            GUIButton guiButton = new GUIButton(normalTexture, hoverTexture, pressedTexture, disabledTexture, callbackEvent, startState, rect);

            this.DrawButton(guiButton);
        }
Beispiel #2
0
        /// <summary>
        ///
        /// Draws GUIButton with passed parameters
        /// </summary>
        /// <param name="callbackEvent">Function that will be called when button is pressed</param>
        public void DrawButton(Texture2D normalTexture, Texture2D hoverTexture, Texture2D pressedTexture, Texture2D disabledTexture, GUIButtonState startState, ButtonPressedCallback callbackEvent, Vector2 position, float width, float height)
        {
            GUIButton guiButton = new GUIButton(normalTexture, hoverTexture, pressedTexture, disabledTexture, callbackEvent, startState, position, width, height);

            this.DrawButton(guiButton);
        }