C# 클래스 PantheonPrototype.MenuItem

This is the class that contains a component of the menu screen.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
background Microsoft.Xna.Framework.Graphics.Texture2D
drawBox Microsoft.Xna.Framework.Rectangle
font Microsoft.Xna.Framework.Graphics.SpriteFont
isDisabled System.Boolean
isSelected System.Boolean
selcted Microsoft.Xna.Framework.Graphics.Texture2D
text string
textSize Vector2

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void

The method for drawing the item.

Load ( Pantheon gameReference ) : void
MenuItem ( string text, Rectangle percentDrawBox, Vector2 screenCoordinates ) : System

Creats a new menu item with the text "text" at the location of "percentDrawBox." percentDrawBox is given as the "percent points" of the screen.

Update ( GameTime gameTime, Pantheon gameReference ) : void

메소드 상세

Draw() 공개 메소드

The method for drawing the item.
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch What is used to draw.
리턴 void

Load() 공개 메소드

public Load ( Pantheon gameReference ) : void
gameReference Pantheon
리턴 void

MenuItem() 공개 메소드

Creats a new menu item with the text "text" at the location of "percentDrawBox." percentDrawBox is given as the "percent points" of the screen.
public MenuItem ( string text, Rectangle percentDrawBox, Vector2 screenCoordinates ) : System
text string
percentDrawBox Microsoft.Xna.Framework.Rectangle
screenCoordinates Vector2
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime How much time has elapsed.
gameReference Pantheon The reference to everything.
리턴 void

프로퍼티 상세

background 보호되어 있는 프로퍼티

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

drawBox 보호되어 있는 프로퍼티

The draw box for the item.
protected Rectangle,Microsoft.Xna.Framework drawBox
리턴 Microsoft.Xna.Framework.Rectangle

font 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

isDisabled 보호되어 있는 프로퍼티

protected Boolean,System isDisabled
리턴 System.Boolean

isSelected 보호되어 있는 프로퍼티

protected Boolean,System isSelected
리턴 System.Boolean

selcted 보호되어 있는 프로퍼티

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

text 보호되어 있는 프로퍼티

The text to display on the menu item.
protected string text
리턴 string

textSize 보호되어 있는 프로퍼티

protected Vector2 textSize
리턴 Vector2