C# Class Beyond_Beyaan.BBButton

Afficher le fichier Open project: Beyonders/Beyond-Beyaan Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Draw ( ) : void
Résultat void

DrawToolTip() public méthode

public DrawToolTip ( ) : void
Résultat void

Initialize() public méthode

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
Résultat bool

Initialize() public méthode

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
Résultat bool

MouseDown() public méthode

public MouseDown ( int x, int y ) : bool
x int
y int
Résultat bool

MouseHover() public méthode

public MouseHover ( int x, int y, float frameDeltaTime ) : bool
x int
y int
frameDeltaTime float
Résultat bool

MouseUp() public méthode

public MouseUp ( int x, int y ) : bool
x int
y int
Résultat bool

MoveTo() public méthode

public MoveTo ( int x, int y ) : void
x int
y int
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Resize() public méthode

public Resize ( int width, int height ) : void
width int
height int
Résultat void

SetText() public méthode

public SetText ( string text ) : void
text string
Résultat void

SetTextColor() public méthode

public SetTextColor ( Color color, Color outline ) : void
color Color
outline Color
Résultat void

SetToolTip() public méthode

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
Résultat bool