XMenuStyle Class
This is a menu style. It is used to define how a menu should look.
  • Background - This is a string that is a path to an image in the content directory to use as the background
  • TopLeft - This is a Vector2 that defines the location of the top left corner of the menu
  • BottomRight - This is a Vector2 that defines the location of the bottom right corner of the menu
  • Padding - This is a Vector2 that defines where the top left corner of the buttons should be drawn on the form
  • TitleLocation - This is a Vector2 that defines what point on the form to draw its title
  • TitleFont - This is a string that is a path to a SriteFont in the content directory to use as the background
  • TitleColor - This is a color that defines what color the title should be drawn with
  • FillTexture - This is a string that is the path to an image in the content directory to use as the fill texture (see below)

Note: A fill texture is a texture that will be drawn behind the form. This is useful for when the forms background image won't cover the whole screen without stretching. This is an optional parameter.

Last edited Mar 23, 2008 at 8:53 AM by Hazardous101, version 2

Comments

No comments yet.