Property | Type | Description | |
---|---|---|---|
background | Microsoft.Xna.Framework.Graphics.Texture2D | ||
drawBox | |||
font | |||
isDisabled | System.Boolean | ||
isSelected | System.Boolean | ||
selcted | Microsoft.Xna.Framework.Graphics.Texture2D | ||
text | string | ||
textSize | Vector2 |
Method | Description | |
---|---|---|
Draw ( |
The method for drawing the item.
|
|
Load ( |
||
MenuItem ( string text, |
Creats a new menu item with the text "text" at the location of "percentDrawBox." percentDrawBox is given as the "percent points" of the screen.
|
|
Update ( |
public Draw ( |
||
spriteBatch | What is used to draw. | |
return | void |
public Load ( |
||
gameReference | ||
return | void |
public MenuItem ( string text, |
||
text | string | |
percentDrawBox | ||
screenCoordinates | Vector2 | |
return | System |
public Update ( |
||
gameTime | How much time has elapsed. | |
gameReference | The reference to everything. | |
return | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics background | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Rectangle,Microsoft.Xna.Framework drawBox | ||
return |
protected SpriteFont,Microsoft.Xna.Framework.Graphics font | ||
return |
protected Texture2D,Microsoft.Xna.Framework.Graphics selcted | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |