Exemplo n.º 1
0
 /// <summary>
 /// Draw buttons from a selected button group
 /// </summary>
 /// <param name="spriteBatch">The sprite batch to draw the buttons with</param>
 /// <param name="drawGroup">The group to draw, eg the menu bar</param>
 public void Draw(SpriteBatch spriteBatch, PCButtonGroup drawGroup)
 {
     drawGroup.Draw(spriteBatch);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a set of buttons to the manager
 /// </summary>
 /// <param name="buttonGroup">A group of buttons (in close proximity)</param>
 /// <returns>The index of the group in this manager</returns>
 public int AddButtonGroup(PCButtonGroup buttonGroup)
 {
     mButtons.Add(buttonGroup);
     return mButtons.Count - 1;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add a set of buttons to the manager in a new button group
 /// </summary>
 /// <param name="buttons">The buttons to add (in close proximity)</param>
 /// <returns>The index of the group in this manager</returns>
 public int AddButtonGroup(params PCButton[] buttons)
 {
     PCButtonGroup buttonGroup = new PCButtonGroup(buttons);
     mButtons.Add(buttonGroup);
     return mButtons.Count - 1;
 }