C# 클래스 Drought.Menu.MenuItem

파일 보기 프로젝트 열기: kiniry-teaching/UCD 1 사용 예제들

공개 메소드들

메소드 설명
MenuItem ( MenuFunctions function, String text, SpriteFont font ) : System
getFunction ( ) : MenuFunctions
render ( SpriteBatch spriteBatch ) : void
setDefaultColor ( Color c ) : void
setScale ( float scale ) : void
setSelectedColor ( Color c ) : void

비공개 메소드들

메소드 설명
initialise ( MenuFunctions function, String text, SpriteFont font, float scale, int x, int y ) : void

메소드 상세

MenuItem() 공개 메소드

public MenuItem ( MenuFunctions function, String text, SpriteFont font ) : System
function MenuFunctions
text String
font Microsoft.Xna.Framework.Graphics.SpriteFont
리턴 System

getFunction() 공개 메소드

public getFunction ( ) : MenuFunctions
리턴 MenuFunctions

render() 공개 메소드

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

setDefaultColor() 공개 메소드

public setDefaultColor ( Color c ) : void
c Color
리턴 void

setScale() 공개 메소드

public setScale ( float scale ) : void
scale float
리턴 void

setSelectedColor() 공개 메소드

public setSelectedColor ( Color c ) : void
c Color
리턴 void