예제 #1
0
        public static void Draw(SpriteBatch sb, MouseState mouseState)
        {
            for (int i = 0; i < L.Count(); i++)
            {
                L.ElementAt(i).Show(sb);
            }

            P.Show(sb, mouseState);
            ((Town)L.ElementAt(0)).Merchant(sb, mouseState);
            P.ShowMouseStorage(sb, mouseState);
            P.DisplayChat(sb);

            for (int i = 0; i < L.Count(); i++)
            {
                L.ElementAt(i).AShow(sb);
            }
            if (P.Inv)
            {
                P.PInv.ShowInventory(sb, mouseState);
            }
            sb.Draw(P.BeltSprite, new Rectangle(Game.Width / 2 - 320, Game.Height - 40, 640, 40), new Color(200, 200, 200, 225));
        }