예제 #1
0
 public void RefreshItems()
 {
     _shopItemGrid.Clear();
     if (Main.netMode == 1)
     {
         MessageSender.SendGetNormalShop(-1);
     }
     else
     {
         for (var i = 0; i < 19; i++)
         {
             var testinfo = new JsonData.SimplifiedMarketItem
             {
                 ItemID   = Main.rand.Next(Main.itemTexture.Length),
                 Price    = Main.rand.Next(1, 10) * 10000,
                 Discount = Main.rand.Next(0, 5) * 5,
             };
             var bar = new UIShopItem(testinfo);
             _shopItemGrid.Add(bar);
         }
     }
     _relaxTimer = 180;
     _rotation   = 0f;
 }
 public void SetItem(JsonData.SimplifiedMarketItem item)
 {
     currentBuying = item;
 }