C# 클래스 Defend_your_home.UI.ButtonImage

상속: IGraphicsControl
파일 보기 프로젝트 열기: MandragoraStudio/Defend-your-home

보호된 프로퍼티들

프로퍼티 타입 설명
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 ( SpriteBatch spriteBatch ) : void
Update ( ) : void

보호된 메소드들

메소드 설명
CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool
CheckIfTouchRelease ( Vector2 touchPosition ) : bool
DoOnTouchDown ( ) : void
DoOnTouchRelease ( ) : void
OnClick ( EventArgs e ) : void
OnTouchDown ( EventArgs e ) : void

메소드 상세

ButtonImage() 공개 메소드

public ButtonImage ( string imagen, Vector2 position, Color c ) : System
imagen string
position Vector2
c Color
리턴 System

ButtonImage() 공개 메소드

public ButtonImage ( string imagen, Vector2 position, Color c, float rotation ) : System
imagen string
position Vector2
c Color
rotation float
리턴 System

CheckIfFirstTouchDown() 보호된 메소드

protected CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool
touchPosition Vector2
리턴 bool

CheckIfTouchRelease() 보호된 메소드

protected CheckIfTouchRelease ( Vector2 touchPosition ) : bool
touchPosition Vector2
리턴 bool

DoOnTouchDown() 보호된 메소드

protected DoOnTouchDown ( ) : void
리턴 void

DoOnTouchRelease() 보호된 메소드

protected DoOnTouchRelease ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

OnClick() 보호된 메소드

protected OnClick ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnTouchDown() 보호된 메소드

protected OnTouchDown ( EventArgs e ) : void
e System.EventArgs
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

image 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics image
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

position 보호되어 있는 프로퍼티

protected Vector2 position
리턴 Vector2

pressed 보호되어 있는 프로퍼티

protected bool pressed
리턴 bool

rotation 보호되어 있는 프로퍼티

protected float rotation
리턴 float

textSize 보호되어 있는 프로퍼티

protected Vector2 textSize
리턴 Vector2

tintColor 보호되어 있는 프로퍼티

protected Color tintColor
리턴 Color

tintWhenTouched 보호되어 있는 프로퍼티

protected Color tintWhenTouched
리턴 Color