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