public override void draw(SpriteBatch b)
 {
     for (int index = 0; index < VerticalToolBar.NUM_BUTTONS; ++index)
     {
         verticalToolBar.buttons[index].bounds = new Rectangle(
             //TODO: Use more reliable coordinates
             verticalToolBar.xPositionOnScreen,
             verticalToolBar.yPositionOnScreen + (index * Game1.tileSize),
             Game1.tileSize,
             Game1.tileSize);
     }
     base.draw(b);
     verticalToolBar.draw(b);
 }
Пример #2
0
 public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch b)
 {
     for (int index = 0; index < VerticalToolBar.NUM_BUTTONS; ++index)
     {
         verticalToolBar.buttons[index].bounds = new Rectangle(
             //TODO: Use more reliable coordinates
             verticalToolBar.xPositionOnScreen + IClickableMenu.spaceToClearSideBorder,
             verticalToolBar.yPositionOnScreen + IClickableMenu.spaceToClearSideBorder + (index * Game1.tileSize),
             Game1.tileSize,
             Game1.tileSize);
     }
     verticalToolBar.draw(b);
     base.draw(b);
     verticalToolBar.drawToolTip(b);
 }