8 mesaje
  • Mesaje: 15
  • Reacții: 11
  • Mesaje utile: 0
  • Medalii

    *Problemă/Întrebare: am adaugat sistemul renewal affects, iar cand pun skill, de ex aura/iures/ orice buff, nu mi le arata colt stanga sus

    *Resursă folosită (sistem/funcție/modificare): https://just4metin.ro/sursa/renewal-aff ... 07101.html

    *Syserr: https://pastebin.com/wLaqJmGy

    *Fișier(e) cu problema (link pastebin / code): https://pastebin.com/wLaqJmGy

    *Poze / Video: https://gyazo.com/fb98c151b2e01fc8280b8871c2d15df9

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
  • Mesaje: 17
  • Reacții: 160
  • Mesaje utile: 0
  • Status: Working...
  • Server: Propriu
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de iShadoW »

    extrage de aici ce ai nevoie, Click , nu am sistemul pus dar sigur e un setevent de la clasa button sau ceva de genu
    Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48407
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    iShadoW scrie: 04 Noi 2024, 22:59 extrage de aici ce ai nevoie, Click , nu am sistemul pus dar sigur e un setevent de la clasa button sau ceva de genu
    Da, sistemul e incomplet din păcate.

    Si eu a trebuit sa il adaptez, vezi cu ce ti a dat Shadow. :ymdaydream:
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature
  • Mesaje: 15
  • Reacții: 11
  • Mesaje utile: 0
  • Medalii

    Mesaj de 3lteror »

    a mers, am adaugat din link-ul pe care l am primit de la voi urmatoarele:

    def SAFE_SetEvent(self, func, *args):
    self.eventFunc = __mem_func__(func)
    self.eventArgs = args

    def SetEvent(self, func, *args):
    self.eventFunc = func
    self.eventArgs = args


    Insa acum am urmatoarea problema: https://gyazo.com/1859c53bf76d062dc7e38f7f9b02f618
    skill urile apar un rand mai sus fata de viteza de atac si de miscare si nu pot vedea descrierea lor, iar in sysser am urmatoarele erori: https://pastebin.com/5De72dbD
  • Mesaje: 17
  • Reacții: 160
  • Mesaje utile: 0
  • Status: Working...
  • Server: Propriu
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de iShadoW »

    Sa ajung acasa si dau edit la mesajul asta, iti dau eu functia aia din uitooltip de la skilltooltip class
  • Mesaje: 15
  • Reacții: 11
  • Mesaje utile: 0
  • Medalii

    Mesaj de 3lteror »

    update:
    am facut rost de la cienva de pe discord de uitooltip dar problema este urmatoarea, imi apar in colt stanga sus, dar cand apas click pe ele nu se intampla nimic: https://gyazo.com/04acc5b0ac1bc5483b25b1f2922605bf
    sistemul acesta nu trebuia sa arate descrierea buff-urilor? mie imi arata "CLICK FOR REMOVE AFFECT" la toate ! :))
  • Mesaje: 17
  • Reacții: 160
  • Mesaje utile: 0
  • Status: Working...
  • Server: Propriu
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de iShadoW »

    L-am ajutat pe [smention u=382]3lteror[/smention] , s-a rezolvat!

    Edit1. Fix AffectShower has no SetEvent module, sau ceva de genu
    Code:
    class ImageBox(Window):
        def __init__(self, layer = "UI"):
            Window.__init__(self, layer)
     
            self.eventDict={}
            self.eventFunc = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
            self.eventArgs = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
     
        def __del__(self):
            Window.__del__(self)
            self.eventFunc = None
            self.eventArgs = None
     
        def RegisterWindow(self, layer):
            self.hWnd = wndMgr.RegisterImageBox(self, layer)
     
        def LoadImage(self, imageName):
            self.name=imageName
            wndMgr.LoadImage(self.hWnd, imageName)
     
            if len(self.eventDict)!=0:
                print("LOAD IMAGE", self, self.eventDict)
     
        def SetAlpha(self, alpha):
            wndMgr.SetDiffuseColor(self.hWnd, 1.0, 1.0, 1.0, alpha)
     
        def GetWidth(self):
            return wndMgr.GetWidth(self.hWnd)
     
        def GetHeight(self):
            return wndMgr.GetHeight(self.hWnd)
     
        def OnMouseOverIn(self):
            try:
                self.eventDict["MOUSE_OVER_IN"]()
            except KeyError:
                pass
     
        def OnMouseOverOut(self):
            try:
                self.eventDict["MOUSE_OVER_OUT"]()
            except KeyError:
                pass
     
        def SAFE_SetStringEvent(self, event, func):
            self.eventDict[event]=__mem_func__(func)
     
        def SetEvent(self, func, *args) :
            result = self.eventFunc.has_key(args[0])
            if result :
                self.eventFunc[args[0]] = func
                self.eventArgs[args[0]] = args
            else :
                print("[ERROR] ui.py SetEvent, Can`t Find has_key : %s" % args[0])
     
        def OnMouseLeftButtonUp(self) :
            if self.eventFunc["mouse_click"] :
                apply(self.eventFunc["mouse_click"], self.eventArgs["mouse_click"])
     
        def OnMouseOverIn(self) :
            if self.eventFunc["mouse_over_in"] :
                apply(self.eventFunc["mouse_over_in"], self.eventArgs["mouse_over_in"])
            else:
                try:
                    self.eventDict["MOUSE_OVER_IN"]()
                except KeyError:
                    pass
     
        def OnMouseOverOut(self) :
            if self.eventFunc["mouse_over_out"] :
                apply(self.eventFunc["mouse_over_out"], self.eventArgs["mouse_over_out"])
            else :
                try:
                    self.eventDict["MOUSE_OVER_OUT"]()
                except KeyError:
                    pass
     
        def GetLeft(self):
            x, y = self.GetLocalPosition()
            return x
    Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48407
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    iShadoW scrie: 05 Noi 2024, 17:41 L-am ajutat pe @3lteror , s-a rezolvat!

    Edit1. Fix AffectShower has no SetEvent module, sau ceva de genu
    Code:
    class ImageBox(Window):
        def __init__(self, layer = "UI"):
            Window.__init__(self, layer)
     
            self.eventDict={}
            self.eventFunc = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
            self.eventArgs = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
     
        def __del__(self):
            Window.__del__(self)
            self.eventFunc = None
            self.eventArgs = None
     
        def RegisterWindow(self, layer):
            self.hWnd = wndMgr.RegisterImageBox(self, layer)
     
        def LoadImage(self, imageName):
            self.name=imageName
            wndMgr.LoadImage(self.hWnd, imageName)
     
            if len(self.eventDict)!=0:
                print("LOAD IMAGE", self, self.eventDict)
     
        def SetAlpha(self, alpha):
            wndMgr.SetDiffuseColor(self.hWnd, 1.0, 1.0, 1.0, alpha)
     
        def GetWidth(self):
            return wndMgr.GetWidth(self.hWnd)
     
        def GetHeight(self):
            return wndMgr.GetHeight(self.hWnd)
     
        def OnMouseOverIn(self):
            try:
                self.eventDict["MOUSE_OVER_IN"]()
            except KeyError:
                pass
     
        def OnMouseOverOut(self):
            try:
                self.eventDict["MOUSE_OVER_OUT"]()
            except KeyError:
                pass
     
        def SAFE_SetStringEvent(self, event, func):
            self.eventDict[event]=__mem_func__(func)
     
        def SetEvent(self, func, *args) :
            result = self.eventFunc.has_key(args[0])
            if result :
                self.eventFunc[args[0]] = func
                self.eventArgs[args[0]] = args
            else :
                print("[ERROR] ui.py SetEvent, Can`t Find has_key : %s" % args[0])
     
        def OnMouseLeftButtonUp(self) :
            if self.eventFunc["mouse_click"] :
                apply(self.eventFunc["mouse_click"], self.eventArgs["mouse_click"])
     
        def OnMouseOverIn(self) :
            if self.eventFunc["mouse_over_in"] :
                apply(self.eventFunc["mouse_over_in"], self.eventArgs["mouse_over_in"])
            else:
                try:
                    self.eventDict["MOUSE_OVER_IN"]()
                except KeyError:
                    pass
     
        def OnMouseOverOut(self) :
            if self.eventFunc["mouse_over_out"] :
                apply(self.eventFunc["mouse_over_out"], self.eventArgs["mouse_over_out"])
            else :
                try:
                    self.eventDict["MOUSE_OVER_OUT"]()
                except KeyError:
                    pass
     
        def GetLeft(self):
            x, y = self.GetLocalPosition()
            return x
    Marcat ca rezolvat, mersi de raspuns
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Închis

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori

    Discord ID copiat: