- Katılım
- 6 Kas 2021
- Mesajlar
- 2,985
- Tepkime puanı
- 4,500
- Puanları
- 113
- Yaş
- 31
- Konum
- Türkiye
- Dc
- fatihbulut
ConstInfo.py açılır ve müsait yere eklenir.
Python:
ENABLE_SHOP_SINGLE_PRICE = True
UiTooltip.py açılır ve aratılır.
Python:
def SetShopItem(self, slotIndex):
İçerisinde bulunur.
Python:
price = shop.GetItemPrice(slotIndex)
Altına eklenir.
Python:
if constInfo.ENABLE_SHOP_SINGLE_PRICE:
count = shop.GetItemCount(slotIndex)
singleItemPrice = price / count
Tekrar SetShopItem içerisinde aratılır.
Python:
self.AppendPrice(price)
Üstüne eklenir.
Python:
Python:
if constInfo.ENABLE_SHOP_SINGLE_PRICE:
if shop.IsPrivateShop() and count > 1:
self.AppendPrice(singleItemPrice, isSingleItem=True)
Aratılır.
Python:
def AppendPrice(self, price):
Değiştirilir.
Python:
if constInfo.ENABLE_SHOP_SINGLE_PRICE:
def AppendPrice(self, price, isSingleItem=False):
self.AppendSpace(3)
if isSingleItem:
self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE_SINGLE % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))
else:
self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))
else:
def AppendPrice(self, price):
self.AppendSpace(5)
self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))
locale_game.txt açılır ve TOOLTIP_BUYPRICE altına eklenir.
Python:
TOOLTIP_BUYPRICE_SINGLE Adet Fiyat: %s