[PYTHON]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 556

Forgiven

Discord; burakhangunduz
Geliştirici
Yardımsever Üye
Usta Üye
Editör
Mesaj
778
Çözümler
61
Beğeni
853
Puan
950
Ticaret Puanı
4
Ş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:
Uyarı: Bu konu açıldığından bu yana baya zaman geçmiş.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.
Geri
Üst