프로퍼티 | 타입 | 설명 | |
---|---|---|---|
font | |||
position | Vector2 | ||
pressed | bool | ||
text | string | ||
textSize | Vector2 | ||
tintColor | Color | ||
tintWhenTouched | Color |
메소드 | 설명 | |
---|---|---|
Button ( string text, |
||
Draw ( |
||
Update ( ) : void |
메소드 | 설명 | |
---|---|---|
CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool | ||
CheckIfTouchRelease ( Vector2 touchPosition ) : bool | ||
DoOnTouchDown ( ) : void | ||
DoOnTouchRelease ( ) : void | ||
OnClick ( |
||
OnTouchDown ( |
public Button ( string text, |
||
text | string | |
font | ||
position | Vector2 | |
리턴 | System |
protected CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool | ||
touchPosition | Vector2 | |
리턴 | bool |
protected CheckIfTouchRelease ( Vector2 touchPosition ) : bool | ||
touchPosition | Vector2 | |
리턴 | bool |
public Draw ( |
||
spriteBatch | ||
리턴 | void |
protected SpriteFont,Microsoft.Xna.Framework.Graphics font | ||
리턴 |