Artı Basmada İtem Sayısı Gösterme Düzenlemesi

FarquesFarques doğrulanmış üyedir.

~ Everything has an end

Konu Sahibi

Katılım
6 Haziran 2025
Mesajlar
68
Tepkime puanı
23
Puan
8
Web sitesi
darkmmo.tr
Discord
farques6
Resimleri ekte görebilmek için kayıtlı olmanız gerekmektedir


Arat root > uirefine.py
textLine = ui.TextLine()
Bloğu değiştir:
textLine = ui.TextLine()
textLine.SetParent(thinBoard)
textLine.SetFontName(localeInfo.UI_DEF_FONT)
have_count = player.GetItemCountByVnum(vnum)
if have_count < count:
textLine.SetFontColor(1.0, 0.0, 0.0)
else:
textLine.SetFontColor(0.0, 1.0, 0.0)
textLine.SetText("%s x %02d / %02d" % (item.GetItemName(), count, have_count))
textLine.SetOutline()
textLine.SetFeather(False)
textLine.SetWindowVerticalAlignCenter()
textLine.SetVerticalAlignCenter()