Jump to content

Mudar cor do nome da loja após aberta


WLN
 Share

Recommended Posts

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

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 by xabugas123
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...