C# Class Beyond_Beyaan.BBButton

Show file Open project: Beyonders/Beyond-Beyaan Class Usage Examples

Public Methods

Method Description
Draw ( ) : void
DrawToolTip ( ) : void
Initialize ( string backgroundSprite, string foregroundSprite, string buttonText, ButtonTextAlignment alignment, int xPos, int yPos, int width, int height, Random r, string &reason ) : bool
Initialize ( string backgroundSprite, string foregroundSprite, string buttonText, string font, ButtonTextAlignment alignment, int xPos, int yPos, int width, int height, Random r, string &reason, int xTextOffset, int yTextOffset ) : bool
MouseDown ( int x, int y ) : bool
MouseHover ( int x, int y, float frameDeltaTime ) : bool
MouseUp ( int x, int y ) : bool
MoveTo ( int x, int y ) : void
Reset ( ) : void
Resize ( int width, int height ) : void
SetText ( string text ) : void
SetTextColor ( Color color, Color outline ) : void
SetToolTip ( string name, string text, int screenWidth, int screenHeight, Random r, string &reason ) : bool

Method Details

Draw() public method

public Draw ( ) : void
return void

DrawToolTip() public method

public DrawToolTip ( ) : void
return void

Initialize() public method

public Initialize ( string backgroundSprite, string foregroundSprite, string buttonText, ButtonTextAlignment alignment, int xPos, int yPos, int width, int height, Random r, string &reason ) : bool
backgroundSprite string
foregroundSprite string
buttonText string
alignment ButtonTextAlignment
xPos int
yPos int
width int
height int
r System.Random
reason string
return bool

Initialize() public method

public Initialize ( string backgroundSprite, string foregroundSprite, string buttonText, string font, ButtonTextAlignment alignment, int xPos, int yPos, int width, int height, Random r, string &reason, int xTextOffset, int yTextOffset ) : bool
backgroundSprite string
foregroundSprite string
buttonText string
font string
alignment ButtonTextAlignment
xPos int
yPos int
width int
height int
r System.Random
reason string
xTextOffset int
yTextOffset int
return bool

MouseDown() public method

public MouseDown ( int x, int y ) : bool
x int
y int
return bool

MouseHover() public method

public MouseHover ( int x, int y, float frameDeltaTime ) : bool
x int
y int
frameDeltaTime float
return bool

MouseUp() public method

public MouseUp ( int x, int y ) : bool
x int
y int
return bool

MoveTo() public method

public MoveTo ( int x, int y ) : void
x int
y int
return void

Reset() public method

public Reset ( ) : void
return void

Resize() public method

public Resize ( int width, int height ) : void
width int
height int
return void

SetText() public method

public SetText ( string text ) : void
text string
return void

SetTextColor() public method

public SetTextColor ( Color color, Color outline ) : void
color Color
outline Color
return void

SetToolTip() public method

public SetToolTip ( string name, string text, int screenWidth, int screenHeight, Random r, string &reason ) : bool
name string
text string
screenWidth int
screenHeight int
r System.Random
reason string
return bool