Misali2 Tarzı Pazar Adet ve Tam Fiyat Göstergesi

  • Konuyu açan Konuyu açan Forgiven
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 0
  • Gösterim Gösterim 309

Forgiven

burakhangunduz
Geliştirici
Yardımsever Üye
Usta Üye
Editör
Mesaj
633
Çözümler
47
Beğeni
664
Puan
949
Ticaret Puanı
0
Şekillendirmek size kalmış, iyi kullanımlar.

co5140y.gif


ConstInfo.py açılır ve müsait yere eklenir.
Python:
Genişlet Daralt Kopyala
ENABLE_SHOP_SINGLE_PRICE = True
UiTooltip.py açılır ve aratılır.
Python:
Genişlet Daralt Kopyala
    def SetShopItem(self, slotIndex):
İçerisinde bulunur.
Python:
Genişlet Daralt Kopyala
        price = shop.GetItemPrice(slotIndex)
Altına eklenir.
Python:
Genişlet Daralt Kopyala
        if constInfo.ENABLE_SHOP_SINGLE_PRICE:
            count = shop.GetItemCount(slotIndex)
            singleItemPrice = price / count

Tekrar SetShopItem içerisinde aratılır.
Python:
Genişlet Daralt Kopyala
        self.AppendPrice(price)

Üstüne eklenir.
Python:
Genişlet Daralt Kopyala
        if constInfo.ENABLE_SHOP_SINGLE_PRICE:
            if shop.IsPrivateShop() and count > 1:
                self.AppendPrice(singleItemPrice, isSingleItem=True)

Aratılır.
Python:
Genişlet Daralt Kopyala
    def AppendPrice(self, price):

Değiştirilir.
Python:
Genişlet Daralt Kopyala
    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:
Genişlet Daralt Kopyala
TOOLTIP_BUYPRICE_SINGLE    Adet Fiyat: %s




 
Son düzenleme:
Üst