MenuItem

Description

A MenuItem represents an option in a menu. It will hold the option name, what screen it would link to and the texture that it uses.

Relationships

Members

  • string name - A string representing the name of the option
  • string nextScreen - A string that represents the screen that this option who follow if chosen. It is null if it does not lead to another MenuScreen
  • GameTexture texture - The texture of the MenuItem
  • Vector2 position - The position of the item
  • MenuSlider slider - The MenuSlider

Methods

  • Select
    • Selects this MenuItem. Will be used for effects
  • Deselect
    • Deselects this MenuItem. Will be used for effects
  • ReturnName
    • Returns the name of the item
  • ReturnScreen
    • Returns the value for nextScreen
  • AddPosition)
    • Adds the position of the texture that will be associated with this MenuItem
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License