C# 클래스 PantheonPrototype.Menu

This is the class for drawing our pause menu.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
SCREEN_HEIGHT int
SCREEN_WIDTH int
creditsButtons MenuItem>.Dictionary
creditsRect Microsoft.Xna.Framework.Rectangle
first bool
inventory Inventory
inventoryBackground Microsoft.Xna.Framework.Graphics.Texture2D
inventoryBackgroundTex Microsoft.Xna.Framework.Graphics.Texture2D
inventoryButtons MenuItem>.Dictionary
items MenuItem>.Dictionary
mainBackgroundRect Microsoft.Xna.Framework.Rectangle
mainBackgroundTex Microsoft.Xna.Framework.Graphics.Texture2D
menuState String
offset int
splashScreen Microsoft.Xna.Framework.Graphics.Texture2D
splashScreenButtons MenuItem>.Dictionary
splashScreenMask Microsoft.Xna.Framework.Graphics.Texture2D
splashScreenRect Microsoft.Xna.Framework.Rectangle
splashShine Microsoft.Xna.Framework.Graphics.Texture2D
splashText String

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch, SpriteFont Font, SpriteFont Splash ) : void

The method for drawing the whole menu.

Load ( Pantheon gameReference ) : void
Menu ( int SCREEN_WIDTH, int SCREEN_HEIGHT ) : System
Update ( GameTime gameTime, Pantheon gameReference ) : void

The method for updating the menu items.

비공개 메소드들

메소드 설명
loadDefaultMenu ( Pantheon gameReference ) : void

This is the method to set up a basic menu with items in it (resume / exit).

메소드 상세

Draw() 공개 메소드

The method for drawing the whole menu.
public Draw ( SpriteBatch spriteBatch, SpriteFont Font, SpriteFont Splash ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch What is used to draw.
Font Microsoft.Xna.Framework.Graphics.SpriteFont
Splash Microsoft.Xna.Framework.Graphics.SpriteFont
리턴 void

Load() 공개 메소드

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

Menu() 공개 메소드

public Menu ( int SCREEN_WIDTH, int SCREEN_HEIGHT ) : System
SCREEN_WIDTH int
SCREEN_HEIGHT int
리턴 System

Update() 공개 메소드

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

프로퍼티 상세

SCREEN_HEIGHT 보호되어 있는 프로퍼티

protected int SCREEN_HEIGHT
리턴 int

SCREEN_WIDTH 보호되어 있는 프로퍼티

protected int SCREEN_WIDTH
리턴 int

creditsButtons 보호되어 있는 프로퍼티

protected Dictionary creditsButtons
리턴 MenuItem>.Dictionary

creditsRect 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework creditsRect
리턴 Microsoft.Xna.Framework.Rectangle

first 보호되어 있는 프로퍼티

protected bool first
리턴 bool

inventory 보호되어 있는 프로퍼티

protected Inventory,PantheonPrototype inventory
리턴 Inventory

inventoryBackground 보호되어 있는 프로퍼티

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

inventoryBackgroundTex 보호되어 있는 프로퍼티

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

inventoryButtons 보호되어 있는 프로퍼티

protected Dictionary inventoryButtons
리턴 MenuItem>.Dictionary

items 보호되어 있는 프로퍼티

protected Dictionary items
리턴 MenuItem>.Dictionary

mainBackgroundRect 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework mainBackgroundRect
리턴 Microsoft.Xna.Framework.Rectangle

mainBackgroundTex 보호되어 있는 프로퍼티

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

menuState 보호되어 있는 프로퍼티

protected String menuState
리턴 String

offset 보호되어 있는 프로퍼티

protected int offset
리턴 int

splashScreen 보호되어 있는 프로퍼티

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

splashScreenButtons 보호되어 있는 프로퍼티

protected Dictionary splashScreenButtons
리턴 MenuItem>.Dictionary

splashScreenMask 보호되어 있는 프로퍼티

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

splashScreenRect 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework splashScreenRect
리턴 Microsoft.Xna.Framework.Rectangle

splashShine 보호되어 있는 프로퍼티

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

splashText 보호되어 있는 프로퍼티

protected String splashText
리턴 String