Neler yeni
XenForo Bannerlar

Foruma hoş geldin, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Kod Misali2 Tarzı Pazar Adet ve Tam Fiyat Göstergesi

Fatih Bulut

Süper Üye
Katılım
6 Kas 2021
Mesajlar
2,985
Tepkime puanı
4,500
Puanları
113
Yaş
31
Konum
Türkiye
Dc
fatihbulut
co5140y (1).gif

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


 
  Benzer konular Forum Tarih
Python / C++/ C# 1 943

Benzer konular

TOMARZALI

Aktif Üye
Katılım
13 Ara 2024
Mesajlar
23
Tepkime puanı
0
Puanları
1
Ekli dosyayı görüntüle 6087
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


ss
 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap

Tema düzenleyici

Tema özelletirmeleri

Grafik arka planlar

Granit arka planlar