C# 클래스 Divine_Right.InterfaceComponents.MainMenuComponents.AutoSizeButton

상속: ISystemInterfaceComponent
파일 보기 프로젝트 열기: Haedrian/Divine-Right

공개 메소드들

메소드 설명
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