LuizFernando Posted March 7, 2018 at 09:43 PM Share Posted March 7, 2018 at 09:43 PM (edited) Abra o ficheiro root/uirefine.py e procure pela linha: textLine = ui.TextLine() Procure pela função: textLine.SetPackedFontColor(0xffdddddd) textLine.SetText("%s x %02d" % (item.GetItemName(), count)) E substitua pela seguinte função: if player.GetItemCountByVnum(vnum) < count: textLine.SetPackedFontColor(0xffFF0033) else: textLine.SetPackedFontColor(0xff40EF37) textLine.SetText("|cFFdddddd|H|h%s x%d|h|r (%d)" % (item.GetItemName(), count, player.GetItemCountByVnum(vnum))) Ficando assim: textLine = ui.TextLine() textLine.SetParent(thinBoard) textLine.SetFontName(localeInfo.UI_DEF_FONT) if player.GetItemCountByVnum(vnum) < count: textLine.SetPackedFontColor(0xffFF0033) else: textLine.SetPackedFontColor(0xff40EF37) textLine.SetText("|cFFdddddd|H|h%s x%d|h|r (%d)" % (item.GetItemName(), count, player.GetItemCountByVnum(vnum))) textLine.SetOutline() textLine.SetFeather(False) textLine.SetWindowVerticalAlignCenter() textLine.SetVerticalAlignCenter() Imagens Demostrando o funcionamento do sistema. Spoiler Edited March 7, 2018 at 09:55 PM by LuizFernando 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now