C# Класс PantheonPrototype.Menu

This is the class for drawing our pause menu.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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