C# Класс MoodSwingGUI.MSAnimatingButton

Наследование: MSButton
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Hover ( ) : void
LeftClick ( ) : void
MSAnimatingButton ( MSLabel label, MSAction action, Rectangle boundingRectangle, Microsoft.Xna.Framework.Graphics.Texture2D unhovered, Microsoft.Xna.Framework.Graphics.Texture2D clicked, Microsoft.Xna.Framework.Graphics.Texture2D hovered, Color highlight, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System

Constructs an MSButton.

MSAnimatingButton ( MSLabel label, MSAction action, Rectangle boundingRectangle, Microsoft.Xna.Framework.Graphics.Texture2D unhovered, Microsoft.Xna.Framework.Graphics.Texture2D clicked, Microsoft.Xna.Framework.Graphics.Texture2D hovered, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System

Constructs an MSAnimatingButton with no highlight.

UnHover ( ) : void
UnLeftClick ( ) : void
Update ( GameTime gameTime ) : void

Описание методов

Hover() публичный Метод

public Hover ( ) : void
Результат void

LeftClick() публичный Метод

public LeftClick ( ) : void
Результат void

MSAnimatingButton() публичный Метод

Constructs an MSButton.
public MSAnimatingButton ( MSLabel label, MSAction action, Rectangle boundingRectangle, Microsoft.Xna.Framework.Graphics.Texture2D unhovered, Microsoft.Xna.Framework.Graphics.Texture2D clicked, Microsoft.Xna.Framework.Graphics.Texture2D hovered, Color highlight, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
label MSLabel Add text to this MSButton with an MSLabel. Use null if you don't need to add text. Make sure to position the MSLabel relative to the upper-left corner of this MSButton.
action MSAction will be executed when this MSButton is clicked
boundingRectangle Microsoft.Xna.Framework.Rectangle the bounding Rectangle of thisMSButton
unhovered Microsoft.Xna.Framework.Graphics.Texture2D will be drawn when this MSButton is unhovered
clicked Microsoft.Xna.Framework.Graphics.Texture2D will be drawn when this MSButton is pressed and hovered
hovered Microsoft.Xna.Framework.Graphics.Texture2D will be drawn when this MSButton is released and hovered
highlight Color the Color to overlay this MSButton with
toolTip MSToolTip
shape Shape the Shape of this MSButton
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch the SpriteBatch that will draw this MSButton
game Microsoft.Xna.Framework.Game the Game where this MSButton will be used
Результат System

MSAnimatingButton() публичный Метод

Constructs an MSAnimatingButton with no highlight.
public MSAnimatingButton ( MSLabel label, MSAction action, Rectangle boundingRectangle, Microsoft.Xna.Framework.Graphics.Texture2D unhovered, Microsoft.Xna.Framework.Graphics.Texture2D clicked, Microsoft.Xna.Framework.Graphics.Texture2D hovered, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
label MSLabel Add text to this MSAnimatingButton with an MSLabel. Use null if you don't need to add text. Make sure to position the MSLabel relative to the upper-left corner of this MSButton.
action MSAction will be executed when this MSAnimatingButton is clicked
boundingRectangle Microsoft.Xna.Framework.Rectangle the bounding Rectangle of this MSAnimatingButton
unhovered Microsoft.Xna.Framework.Graphics.Texture2D will be drawn when this MSAnimatingButton is unhovered
clicked Microsoft.Xna.Framework.Graphics.Texture2D will be drawn when this MSAnimatingButton is pressed and hovered
hovered Microsoft.Xna.Framework.Graphics.Texture2D will be drawn when this MSAnimatingButton is released and hovered
toolTip MSToolTip
shape Shape the Shape of this MSButton
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch the SpriteBatch that will draw this MSButton
game Microsoft.Xna.Framework.Game the Game where this MSButton will be used
Результат System

UnHover() публичный Метод

public UnHover ( ) : void
Результат void

UnLeftClick() публичный Метод

public UnLeftClick ( ) : void
Результат void

Update() публичный Метод

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void