Example #1
0
        public void Draw(SpriteBatch spriteBatch, Vector2 MovingPosition)
        {
            Background.Draw(Texture2DStorage.GetInventoryBackgroundSpriteSheet(), spriteBatch, Backgroundposition + MovingPosition);

            if (MovingPosition == new Vector2(0, 0))
            {
                Selection.Draw(Texture2DStorage.GetRedSelectionSpriteSheet(), spriteBatch, SelectionPosition);

                if (game.Link.HasMap)
                {
                    MapSprite.Draw(Texture2DStorage.GetMapSpriteSheet(), spriteBatch, SmallMapPosition);
                    //MapPositionSprite.Draw();
                    //LinkPositionSprite.Draw();
                }

                if (game.Link.BombNumber > 0)
                {
                    BombSprite.Draw(Texture2DStorage.GetBombSelectSpriteSheet(), spriteBatch, BombPosition);
                }

                if (game.Link.HasBow)
                {
                    BowSprite.Draw(Texture2DStorage.GetBowSpriteSheet(), spriteBatch, bowPosition);
                }
                if (game.Link.HasCompass)
                {
                    CompassSprite.Draw(Texture2DStorage.GetCompassSpriteSheet(), spriteBatch, CompassPosition);
                }
                if (game.Link.HasBoomer)
                {
                    BoomerSprite.Draw(Texture2DStorage.GetBoomerSelectSpriteSheet(), spriteBatch, BoomerPosition);
                }

                if (selectedItem == BombSprite)
                {
                    BombSprite.Draw(Texture2DStorage.GetBombSpriteSheet(), spriteBatch, SelectItemPosition);
                }
                else if (selectedItem == BowSprite)
                {
                    BowSprite.Draw(Texture2DStorage.GetBowSpriteSheet(), spriteBatch, SelectItemPosition);
                }
                else if (selectedItem == BoomerSprite)
                {
                    BoomerSprite.Draw(Texture2DStorage.GetBoomerangSpriteSheet(), spriteBatch, SelectItemPosition);
                }
            }
        }