C# 클래스 Beyond_Beyaan.BBButton

파일 보기 프로젝트 열기: Beyonders/Beyond-Beyaan 1 사용 예제들

공개 메소드들

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

메소드 상세

Draw() 공개 메소드

public Draw ( ) : void
리턴 void

DrawToolTip() 공개 메소드

public DrawToolTip ( ) : void
리턴 void

Initialize() 공개 메소드

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
리턴 bool

Initialize() 공개 메소드

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
리턴 bool

MouseDown() 공개 메소드

public MouseDown ( int x, int y ) : bool
x int
y int
리턴 bool

MouseHover() 공개 메소드

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

MouseUp() 공개 메소드

public MouseUp ( int x, int y ) : bool
x int
y int
리턴 bool

MoveTo() 공개 메소드

public MoveTo ( int x, int y ) : void
x int
y int
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Resize() 공개 메소드

public Resize ( int width, int height ) : void
width int
height int
리턴 void

SetText() 공개 메소드

public SetText ( string text ) : void
text string
리턴 void

SetTextColor() 공개 메소드

public SetTextColor ( Color color, Color outline ) : void
color Color
outline Color
리턴 void

SetToolTip() 공개 메소드

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
리턴 bool