Lucrăm la îmbunătățirea site-ului! Este posibil ca unele module să nu funcționeze corect!
8 mesaje

Autor subiect

  • Mesaje: 15
  • Reacții: 4
  • 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

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
  • Mesaje: 17
  • Reacții: 131
  • Mesaje utile: 0
  • Status: Working...
  • Server: Propriu
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:

    Medalii

    extrage de aici ce ai nevoie, Click , nu am sistemul pus dar sigur e un setevent de la clasa button sau ceva de genu
    Avatar utilizator
    Administrator
  • Administrator
  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator
    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/Kr9nUpWa4X

    Suntem aproape 1000 membri! - Avem chat activ zilnic, support, cereri, resurse.



    See full signature

    Autor subiect

  • Mesaje: 15
  • Reacții: 4
  • Mesaje utile: 0
  • Medalii

    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: 131
  • Mesaje utile: 0
  • Status: Working...
  • Server: Propriu
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:

    Medalii

    Sa ajung acasa si dau edit la mesajul asta, iti dau eu functia aia din uitooltip de la skilltooltip class

    Autor subiect

  • Mesaje: 15
  • Reacții: 4
  • Mesaje utile: 0
  • Medalii

    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: 131
  • Mesaje utile: 0
  • Status: Working...
  • Server: Propriu
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:

    Medalii

    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
    Avatar utilizator
    Administrator
  • Administrator
  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    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/Kr9nUpWa4X

    Suntem aproape 1000 membri! - Avem chat activ zilnic, support, cereri, resurse.



    See full signature
    Moved from Support to Probleme rezolvate on 06 Noi 2024, 12:01 by [HF]White

    🔥 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ț
    Scrie răspuns

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Înregistrează-te și alătură-te comunității noastre

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra rapid utilizând contul tău de Discord sau Github

    Înregistrare

    Autentifică-te

    • Subiecte similare

      • de [HF]White » » în FIX-uri
        0
        Răspunsuri
        1202
        Vizualizări
        de [HF]White
      • de ZuZuR » » în Sisteme Metin2
        3
        Răspunsuri
        667
        Vizualizări
        de [HF]White
      • de salexandru9982 » » în Arhivă probleme
        1
        Răspunsuri
        101
        Vizualizări
        de salexandru9982
      • de ZuZuR » » în Altele
        0
        Răspunsuri
        326
        Vizualizări
        de ZuZuR
      • de [HF]White » » în Îmbunătățiri
        0
        Răspunsuri
        1366
        Vizualizări
        de [HF]White

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator