Midnight Blue Game and Engine
Public Member Functions | List of all members
MidnightBlue.GalaxyHud Class Reference

HUD to show in the galaxy view. More...

Inheritance diagram for MidnightBlue.GalaxyHud:
Inheritance graph
Collaboration diagram for MidnightBlue.GalaxyHud:
Collaboration graph

Public Member Functions

 GalaxyHud (ContentManager content)
 Initializes a new instance of the T:MB2D.GalaxyHud class. More...
 
void Refresh (Inventory inventory)
 Refreshed the HUD with the specified inventory values. More...
 
- Public Member Functions inherited from MB2D.UI.UIView
 UIView (int rows, int cols)
 Initializes a new instance of the T:MB2D.UI.UIView class. Divides itself into the number of rows and columns evenly based on the size of the current viewport. More...
 
void Update ()
 Updates and handles input for all elements in the View. More...
 
void Draw (SpriteBatch spriteBatch, SpriteBatch uiSpriteBatch)
 Draws the View and its elements to the window More...
 
void Add (UIElement element, int atRow, int atCol, int rowSpan, int colSpan)
 Adds a new UIElement to the View More...
 
void AddToLookup (UIElement element)
 Adds an element to the lookup table used by the view More...
 

Additional Inherited Members

- Properties inherited from MB2D.UI.UIView
UIElement this[string key] [get]
 Gets the T:MB2D.UI.UIElement with the specified key. More...
 
UIElement [,] Content [get]
 Gets the elements this View contains in a 2D array More...
 
Texture2D BackgroundTexture [get, set]
 Gets or sets the background texture of the view. More...
 
bool StretchBackground [get, set]
 Gets or sets a value indicating whether the background image shoudl stretch to fit the window. More...
 

Detailed Description

HUD to show in the galaxy view.

Constructor & Destructor Documentation

§ GalaxyHud()

MidnightBlue.GalaxyHud.GalaxyHud ( ContentManager  content)
inline

Initializes a new instance of the T:MB2D.GalaxyHud class.

Parameters
contentContent to use in loading fonts and textures.
Here is the call graph for this function:

Member Function Documentation

§ Refresh()

void MidnightBlue.GalaxyHud.Refresh ( Inventory  inventory)
inline

Refreshed the HUD with the specified inventory values.

Parameters
inventoryInventory to use to refresh the display.
Here is the caller graph for this function:

The documentation for this class was generated from the following file: