C# Class PantheonPrototype.Menu

This is the class for drawing our pause menu.
Afficher le fichier Open project: Bacon41/PantheonPrototype Class Usage Examples

Protected Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
loadDefaultMenu ( Pantheon gameReference ) : void

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

Method Details

Draw() public méthode

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
Résultat void

Load() public méthode

public Load ( Pantheon gameReference ) : void
gameReference Pantheon
Résultat void

Menu() public méthode

public Menu ( int SCREEN_WIDTH, int SCREEN_HEIGHT ) : System
SCREEN_WIDTH int
SCREEN_HEIGHT int
Résultat System

Update() public méthode

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.
Résultat void

Property Details

SCREEN_HEIGHT protected_oe property

protected int SCREEN_HEIGHT
Résultat int

SCREEN_WIDTH protected_oe property

protected int SCREEN_WIDTH
Résultat int

creditsButtons protected_oe property

protected Dictionary creditsButtons
Résultat MenuItem>.Dictionary

creditsRect protected_oe property

protected Rectangle,Microsoft.Xna.Framework creditsRect
Résultat Microsoft.Xna.Framework.Rectangle

first protected_oe property

protected bool first
Résultat bool

inventory protected_oe property

protected Inventory,PantheonPrototype inventory
Résultat Inventory

inventoryBackground protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics inventoryBackground
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

inventoryBackgroundTex protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics inventoryBackgroundTex
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

inventoryButtons protected_oe property

protected Dictionary inventoryButtons
Résultat MenuItem>.Dictionary

items protected_oe property

protected Dictionary items
Résultat MenuItem>.Dictionary

mainBackgroundRect protected_oe property

protected Rectangle,Microsoft.Xna.Framework mainBackgroundRect
Résultat Microsoft.Xna.Framework.Rectangle

mainBackgroundTex protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics mainBackgroundTex
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

menuState protected_oe property

protected String menuState
Résultat String

offset protected_oe property

protected int offset
Résultat int

splashScreen protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics splashScreen
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

splashScreenButtons protected_oe property

protected Dictionary splashScreenButtons
Résultat MenuItem>.Dictionary

splashScreenMask protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics splashScreenMask
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

splashScreenRect protected_oe property

protected Rectangle,Microsoft.Xna.Framework splashScreenRect
Résultat Microsoft.Xna.Framework.Rectangle

splashShine protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics splashShine
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

splashText protected_oe property

protected String splashText
Résultat String