C# 클래스 GrandLarceny.Button

파일 보기 프로젝트 열기: melburn/GLhf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_bounds Microsoft.Xna.Framework.Rectangle
m_currentState State
m_isFocused bool
m_isPressed bool
m_isToggled bool
m_isVisible bool
m_text GrandLarceny.Text

공개 메소드들

메소드 설명
Button ( Vector2 a_position ) : System
Button ( Vector2 a_position, string a_normal, string a_hover, string a_pressed, string a_toggle ) : System
Button ( string a_buttonTexture, Vector2 a_position ) : System
Button ( string a_buttonTexture, Vector2 a_position, string a_buttonText, string a_font, Color a_color, Vector2 a_offset ) : System
draw ( GameTime a_gameTime, SpriteBatch a_spriteBatch ) : void
getBox ( ) : Rectangle
getIntState ( ) : int
getPosition ( ) : GrandLarceny.Position
getSize ( ) : Vector2
getState ( ) : State
getText ( ) : string
hasEvent ( ) : bool
invokeClickEvent ( ) : void
isButtonPressed ( ) : bool
isVisible ( ) : bool
kill ( ) : void
loadContent ( ) : void
move ( Vector2 a_moveLength ) : void
playDownSound ( ) : void
playUpSound ( ) : void
setColor ( Color a_color ) : void
setDownSound ( string a_name ) : void
setHotkey ( Keys a_key, clickDelegate a_method ) : void
setLayer ( float a_layer ) : void
setPosition ( Vector2 a_position ) : void
setState ( State a_state ) : void
setState ( int a_state ) : void
setText ( String a_string ) : void
setText ( string a_string, Vector2 a_offset ) : void
setUpSound ( string a_name ) : void
setVisible ( bool a_visible ) : void
update ( ) : bool
updateHitbox ( ) : void

비공개 메소드들

메소드 설명
hotkeyPressed ( ) : bool
setHoverTexture ( Microsoft.Xna.Framework.Graphics.Texture2D a_texture ) : void
setNormalTexture ( Microsoft.Xna.Framework.Graphics.Texture2D a_texture ) : void
setPressedTexture ( Microsoft.Xna.Framework.Graphics.Texture2D a_texture ) : void
setSize ( Vector2 a_size ) : void
setToggleTexture ( Microsoft.Xna.Framework.Graphics.Texture2D a_texture ) : void

메소드 상세

Button() 공개 메소드

public Button ( Vector2 a_position ) : System
a_position Vector2
리턴 System

Button() 공개 메소드

public Button ( Vector2 a_position, string a_normal, string a_hover, string a_pressed, string a_toggle ) : System
a_position Vector2
a_normal string
a_hover string
a_pressed string
a_toggle string
리턴 System

Button() 공개 메소드

public Button ( string a_buttonTexture, Vector2 a_position ) : System
a_buttonTexture string
a_position Vector2
리턴 System

Button() 공개 메소드

public Button ( string a_buttonTexture, Vector2 a_position, string a_buttonText, string a_font, Color a_color, Vector2 a_offset ) : System
a_buttonTexture string
a_position Vector2
a_buttonText string
a_font string
a_color Color
a_offset Vector2
리턴 System

draw() 공개 메소드

public draw ( GameTime a_gameTime, SpriteBatch a_spriteBatch ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
a_spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

getBox() 공개 메소드

public getBox ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

getIntState() 공개 메소드

public getIntState ( ) : int
리턴 int

getPosition() 공개 메소드

public getPosition ( ) : GrandLarceny.Position
리턴 GrandLarceny.Position

getSize() 공개 메소드

public getSize ( ) : Vector2
리턴 Vector2

getState() 공개 메소드

public getState ( ) : State
리턴 State

getText() 공개 메소드

public getText ( ) : string
리턴 string

hasEvent() 공개 메소드

public hasEvent ( ) : bool
리턴 bool

invokeClickEvent() 공개 메소드

public invokeClickEvent ( ) : void
리턴 void

isButtonPressed() 공개 메소드

public isButtonPressed ( ) : bool
리턴 bool

isVisible() 공개 메소드

public isVisible ( ) : bool
리턴 bool

kill() 공개 메소드

public kill ( ) : void
리턴 void

loadContent() 공개 메소드

public loadContent ( ) : void
리턴 void

move() 공개 메소드

public move ( Vector2 a_moveLength ) : void
a_moveLength Vector2
리턴 void

playDownSound() 공개 메소드

public playDownSound ( ) : void
리턴 void

playUpSound() 공개 메소드

public playUpSound ( ) : void
리턴 void

setColor() 공개 메소드

public setColor ( Color a_color ) : void
a_color Color
리턴 void

setDownSound() 공개 메소드

public setDownSound ( string a_name ) : void
a_name string
리턴 void

setHotkey() 공개 메소드

public setHotkey ( Keys a_key, clickDelegate a_method ) : void
a_key Keys
a_method clickDelegate
리턴 void

setLayer() 공개 메소드

public setLayer ( float a_layer ) : void
a_layer float
리턴 void

setPosition() 공개 메소드

public setPosition ( Vector2 a_position ) : void
a_position Vector2
리턴 void

setState() 공개 메소드

public setState ( State a_state ) : void
a_state State
리턴 void

setState() 공개 메소드

public setState ( int a_state ) : void
a_state int
리턴 void

setText() 공개 메소드

public setText ( String a_string ) : void
a_string String
리턴 void

setText() 공개 메소드

public setText ( string a_string, Vector2 a_offset ) : void
a_string string
a_offset Vector2
리턴 void

setUpSound() 공개 메소드

public setUpSound ( string a_name ) : void
a_name string
리턴 void

setVisible() 공개 메소드

public setVisible ( bool a_visible ) : void
a_visible bool
리턴 void

update() 공개 메소드

public update ( ) : bool
리턴 bool

updateHitbox() 공개 메소드

public updateHitbox ( ) : void
리턴 void

프로퍼티 상세

m_bounds 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework m_bounds
리턴 Microsoft.Xna.Framework.Rectangle

m_currentState 보호되어 있는 프로퍼티

protected State m_currentState
리턴 State

m_isFocused 보호되어 있는 프로퍼티

protected bool m_isFocused
리턴 bool

m_isPressed 보호되어 있는 프로퍼티

protected bool m_isPressed
리턴 bool

m_isToggled 보호되어 있는 프로퍼티

protected bool m_isToggled
리턴 bool

m_isVisible 보호되어 있는 프로퍼티

protected bool m_isVisible
리턴 bool

m_text 보호되어 있는 프로퍼티

protected Text,GrandLarceny m_text
리턴 GrandLarceny.Text