C# Class Divine_Right.InterfaceComponents.MainMenuComponents.SystemButton

Inheritance: ISystemInterfaceComponent
Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Méthode Description
Draw ( Microsoft.Xna.Framework.Content.ContentManager content, SpriteBatch batch ) : void
HandleClick ( int x, int y, DRObjects &instruction, object &args ) : bool
ReturnLocation ( ) : Rectangle
SystemButton ( string text, Microsoft.Xna.Framework.Content.ContentManager content, InternalActionEnum action, Object args, Rectangle drawArea ) : System

Creats a Main Menu Button

Method Details

Draw() public méthode

public Draw ( Microsoft.Xna.Framework.Content.ContentManager content, SpriteBatch batch ) : void
content Microsoft.Xna.Framework.Content.ContentManager
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

HandleClick() public méthode

public HandleClick ( int x, int y, DRObjects &instruction, object &args ) : bool
x int
y int
instruction DRObjects
args object
Résultat bool

ReturnLocation() public méthode

public ReturnLocation ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

SystemButton() public méthode

Creats a Main Menu Button
public SystemButton ( string text, Microsoft.Xna.Framework.Content.ContentManager content, InternalActionEnum action, Object args, Rectangle drawArea ) : 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
drawArea Microsoft.Xna.Framework.Rectangle The rectangle to draw in
Résultat System