Пример #1
0
        void RefreshUI()
        {
            _onPlayerPurchase?.Invoke();
            Console.WriteLine("Refeshing ShopItems UI");
            _queueRefresh = false;
            UIElements.Clear();
            int cursor = 0;

            foreach (Weapon w in A3RData.ShopWeapons)
            {
                UI_ShopButton shopButton = new UI_ShopButton(Camera, new Vector(Width(0.29f),
                                                                                Height(0.45f) + cursor * 160), A3RData.RarityReference, A3RData.RarityWords, _a3RData, ItemWasBought);
                shopButton.ItemBeingBought = w;

                AddElement(shopButton);
                cursor++;
            }
        }
Пример #2
0
 public void ItemWasBought(UI_ShopButton sender)
 {
     RefreshItems();
 }