C# Класс Divine_Right.InterfaceComponents.MainMenuComponents.AutoSizeButton

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

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

Метод Описание
AutoSizeButton ( string text, Microsoft.Xna.Framework.Content.ContentManager content, InternalActionEnum action, Object args, int centerX, int centreY ) : System

Creats a Main Menu Button

Draw ( Microsoft.Xna.Framework.Content.ContentManager content, SpriteBatch batch ) : void
HandleClick ( int x, int y, DRObjects &instruction, object &args ) : bool
ReturnLocation ( ) : Rectangle

Защищенные методы

Метод Описание
AutoSizeButton ( ) : System

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

AutoSizeButton() защищенный Метод

protected AutoSizeButton ( ) : System
Результат System

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

Creats a Main Menu Button
public AutoSizeButton ( string text, Microsoft.Xna.Framework.Content.ContentManager content, InternalActionEnum action, Object args, int centerX, int centreY ) : System
text string The text to show
content Microsoft.Xna.Framework.Content.ContentManager The content manager
action InternalActionEnum The action to perform when clicked
args Object Arguments to pass when clicked
centerX int The CENTRE of the button
centreY int The CENTRE of the button
Результат System

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

public Draw ( Microsoft.Xna.Framework.Content.ContentManager content, SpriteBatch batch ) : void
content Microsoft.Xna.Framework.Content.ContentManager
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

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

public HandleClick ( int x, int y, DRObjects &instruction, object &args ) : bool
x int
y int
instruction DRObjects
args object
Результат bool

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

public ReturnLocation ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle