Property | Type | Description | |
---|---|---|---|
coordinates | |||
defaultWidth | int | ||
font | |||
image | Microsoft.Xna.Framework.Graphics.Texture2D | ||
isImage | System.Boolean | ||
opacity | Color | ||
rightJustifiedXCoord | int | ||
textImage | String |
Method | Description | |
---|---|---|
Draw ( |
The method to draw the component.
|
|
HUDItem ( Microsoft.Xna.Framework.Content.ContentManager Content, String img, int x, int y ) : System | ||
HUDItem ( |
||
SetOpacity ( int n ) : void |
Sets the opacity using an integer so you don't have to create a whole new Color(). Takes an integer from 0 to 255
|
|
Update ( |
The method to update the component.
|
public Draw ( |
||
spriteBatch | A shared SpriteBatch for the HUD. | |
return | void |
public HUDItem ( Microsoft.Xna.Framework.Content.ContentManager Content, String img, int x, int y ) : System | ||
Content | Microsoft.Xna.Framework.Content.ContentManager | |
img | String | |
x | int | |
y | int | |
return | System |
public HUDItem ( |
||
font | ||
text | String | |
x | int | |
y | int | |
return | System |
public Update ( |
||
gameTime | Contains the time since [wheneverYouWant]. | |
return | void |
protected Rectangle,Microsoft.Xna.Framework coordinates | ||
return |
protected SpriteFont,Microsoft.Xna.Framework.Graphics font | ||
return |
protected Texture2D,Microsoft.Xna.Framework.Graphics image | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |