WLN Posted July 23, 2018 Share Posted July 23, 2018 abra uiprivateshopbuilder.py e procure: class PrivateShopAdvertisementBoard(ui.ThinBoard): def __init__(self): ui.ThinBoard.__init__(self, "UI_BOTTOM") self.vid = None self.__MakeTextLine() alterem para class PrivateShopAdvertisementBoard(ui.ThinBoard): def __init__(self): ui.ThinBoard.__init__(self, "UI_BOTTOM") self.shopAdvertismentBoardSeen =[] self.vid = None self.__MakeTextLine() busquem : def Open(self, vid, text): deixem a função assim: def Open(self, vid, text): self.vid = vid self.textLine.SetText(text) if vid in self.shopAdvertismentBoardSeen: self.textLine.SetFontColor(1.0, 0.5, 0.1) self.textLine.UpdateRect() self.SetSize(len(text)*6 + 10*2, 20) self.Show() g_privateShopAdvertisementBoardDict[vid] = self busquem: def OnMouseLeftButtonUp(self): deixem a função assim: def OnMouseLeftButtonUp(self): if not self.vid: return net.SendOnClickPacket(self.vid) if self.vid != player.GetMainCharacterIndex(): self.textLine.SetFontColor(1.0, 0.5, 0.1) self.shopAdvertismentBoardSeen.append(self.vid) return True ficar atento as tabulações pois o codigo não está formatado creditos ao nicutzy da freakgamers Link to comment Share on other sites More sharing options...
xabugas123 Posted July 24, 2018 Share Posted July 24, 2018 (edited) 4 horas atrás, wery disse: abra uiprivateshopbuilder.py e procure: class PrivateShopAdvertisementBoard(ui.ThinBoard): def __init__(self): ui.ThinBoard.__init__(self, "UI_BOTTOM") self.vid = None self.__MakeTextLine() alterem para class PrivateShopAdvertisementBoard(ui.ThinBoard): def __init__(self): ui.ThinBoard.__init__(self, "UI_BOTTOM") self.shopAdvertismentBoardSeen =[] self.vid = None self.__MakeTextLine() busquem : def Open(self, vid, text): deixem a função assim: def Open(self, vid, text): self.vid = vid self.textLine.SetText(text) if vid in self.shopAdvertismentBoardSeen: self.textLine.SetFontColor(1.0, 0.5, 0.1) self.textLine.UpdateRect() self.SetSize(len(text)*6 + 10*2, 20) self.Show() g_privateShopAdvertisementBoardDict[vid] = self busquem: def OnMouseLeftButtonUp(self): deixem a função assim: def OnMouseLeftButtonUp(self): if not self.vid: return net.SendOnClickPacket(self.vid) if self.vid != player.GetMainCharacterIndex(): self.textLine.SetFontColor(1.0, 0.5, 0.1) self.shopAdvertismentBoardSeen.append(self.vid) return True ficar atento as tabulações pois o codigo não está formatado creditos ao nicutzy da freakgamers viste quando queres és muito boa pessoa ._. Edited July 24, 2018 by xabugas123 Link to comment Share on other sites More sharing options...
xabugas123 Posted July 24, 2018 Share Posted July 24, 2018 22 minutos atrás, xabugas123 disse: viste quando queres és muito boa pessoa ._. fiz como diz no tuturial comigo fica igual :/ Link to comment Share on other sites More sharing options...
WLN Posted July 24, 2018 Author Share Posted July 24, 2018 confere com o autor do outro tópico, o problema dele foi resolvido, então provavelmente ou foi pelo tópico ou modo semelhante, mas o modo do tópico está funcionando Link to comment Share on other sites More sharing options...
xabugas123 Posted July 24, 2018 Share Posted July 24, 2018 20 minutos atrás, wery disse: confere com o autor do outro tópico, o problema dele foi resolvido, então provavelmente ou foi pelo tópico ou modo semelhante, mas o modo do tópico está funcionando eu fiz igual ao tópico dele na freak e comigo não dá. Link to comment Share on other sites More sharing options...
LuizFernando Posted July 24, 2018 Share Posted July 24, 2018 Valeu mano, você está sempre salvando! Link to comment Share on other sites More sharing options...
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