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

    Autor subiect

  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    Avatar utilizator
    Administrator

    Autor subiect

    Administrator
    *Descriere:

    Aici aveti sistemul Affect Renewall V2 a lui dracarys. :-*


    *Poze / Video (obligatoriu):
    *Link download:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Mai jos aveti 2 FIX-uri pe care sa le faceti dupa ce ati instalat sistemul:
    FIX #1:
    Cauta:
    Code:
    	def UpdateDescription(self):

    Mai jos vei gasi:
    Code:
    		if self.endTime > 0:
    			leftTime = localeInfo.SecondToDHM(self.endTime - app.GetGlobalTimeStamp())

    Adauga:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.



    FIX #2 - tooltip(Multumim @Eder )
    The Issue:
    The problem is that the new function replacing SetToolTipText is never actually called.

    Basically, we used the same name for a setter (the older function), and that’s it. The text updates correctly, but nothing triggers it to be rendered.

    I made a few small changes to better understand where the issue was.

    Instead of adding this (as it is in the original post):
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Replace it with this:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    What’s happening here?
    We are still setting the tooltip text, but now we tell SetToolTip not to receive anything because, in theory, we already have the "text" variable set by another function.

    So how do we render it?
    Easy!

    Find this function within the same class:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Right below it, you’ll find OnMouseOverIn.
    Modify it like this:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    What's happening here?
    Basically, when we hover over the affect icon, it checks if the tooltip is initialized and then calls SetToolTip(). This function, in turn, generates the text visually.

    Cum descarc de pe TeraBox?

    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo
    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

    📢 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: 1
  • Reacții: 1
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Regat: Shinsoo
  • Medalii

    This forum has become a reference point.
    9 out of 10 of what I download often works without further modification.
    Thank you for your commitment and spirit of sharing.
  • Mesaje: 5
  • Reacții: 42
  • Mesaje utile: 0
  • Status: Tax's
  • Regat: Chunjo
  • Medalii

    I don’t understand why my messages, along with the one from the other member reporting a bug, were deleted.
    But anyway, moving on:
    After installing the "system" (if you can even call such a small change a system), I noticed there are some bugs, just like the other member pointed out. After a bit of debugging and fixing on my end, I managed to get it working. I even helped the guy via Discord since it was his issue that made me take a closer look.

    I’ll post the fix here as well, in case you want to add it to the thread, @[HF]White . It's up to you.

    The Issue:
    The problem is that the new function replacing SetToolTipText is never actually called.

    Basically, we used the same name for a setter (the older function), and that’s it. The text updates correctly, but nothing triggers it to be rendered.

    I made a few small changes to better understand where the issue was.

    Instead of adding this (as it is in the original post):
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Replace it with this:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    What’s happening here?
    We are still setting the tooltip text, but now we tell SetToolTip not to receive anything because, in theory, we already have the "text" variable set by another function.

    So how do we render it?
    Easy!

    Find this function within the same class:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Right below it, you’ll find OnMouseOverIn.
    Modify it like this:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    What's happening here?
    Basically, when we hover over the affect icon, it checks if the tooltip is initialized and then calls SetToolTip(). This function, in turn, generates the text visually.

    With this change, the "system" (I hesitate to even call it that, since it’s just a small text adjustment...basically just replacing TextLine with uiToolTip lol) now works correctly.

    Alright, I did my good deed for the day.
    Avatar utilizator
    Administrator
  • Administrator

    Autor subiect

  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    Avatar utilizator
    Administrator

    Autor subiect

    Administrator
    Eder scrie: I don’t understand why my messages, along with the one from the other member reporting a bug, were deleted.
    But anyway, moving on:
    After installing the "system" (if you can even call such a small change a system), I noticed there are some bugs, just like the other member pointed out. After a bit of debugging and fixing on my end, I managed to get it working. I even helped the guy via Discord since it was his issue that made me take a closer look.

    I’ll post the fix here as well, in case you want to add it to the thread, @[HF]White . It's up to you.

    The Issue:
    The problem is that the new function replacing SetToolTipText is never actually called.

    Basically, we used the same name for a setter (the older function), and that’s it. The text updates correctly, but nothing triggers it to be rendered.

    I made a few small changes to better understand where the issue was.

    Instead of adding this (as it is in the original post):
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Replace it with this:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    What’s happening here?
    We are still setting the tooltip text, but now we tell SetToolTip not to receive anything because, in theory, we already have the "text" variable set by another function.

    So how do we render it?
    Easy!

    Find this function within the same class:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    Right below it, you’ll find OnMouseOverIn.
    Modify it like this:
    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    What's happening here?
    Basically, when we hover over the affect icon, it checks if the tooltip is initialized and then calls SetToolTip(). This function, in turn, generates the text visually.

    With this change, the "system" (I hesitate to even call it that, since it’s just a small text adjustment...basically just replacing TextLine with uiToolTip lol) now works correctly.

    Alright, I did my good deed for the day.
    I just hope my message doesn’t get deleted again for no reason.
    The messages were simply deleted because there's a dedicated area for support. Thank you for providing this fix, I will add it!

    I support freedom of speech and members contributions, but I want to keep the topics as clean as possible.

    I hope this makes it clear :x
    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
  • Mesaje: 43
  • Reacții: 548
  • Mesaje utile: 0
  • Status: Nemurirea sufletului
  • Server: -
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:

    Medalii

    Fix daca folosesti multitext line, prin fixul nr. 2 este totul in regula mai putin daca folosesti multi textline
    Inlocuieste def SetToolTip(self) cu functia de mai jos

    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    La final totul va arata asa
    [C++/Py] System Affect Renewal V2 + FIX - Mesaj 5 - Imagine 1

    🔥 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 Vaynz » » în FIX-uri
        0
        Răspunsuri
        482
        Vizualizări
        de Vaynz
      • de Oregon » » în FIX-uri
        0
        Răspunsuri
        262
        Vizualizări
        de Oregon
      • de Oregon » » în FIX-uri
        0
        Răspunsuri
        328
        Vizualizări
        de Oregon
      • de [HF]White » » în Sisteme Metin2
        0
        Răspunsuri
        614
        Vizualizări
        de [HF]White
      • de Alexuu » » în FIX-uri
        1
        Răspunsuri
        1081
        Vizualizări
        de [HF]White

    Înapoi la “Sisteme Metin2”

    Informații

    Utilizatori ce navighează pe acest forum: darkgh0st, freziop, mtz6879, root500, SpartanEver, szilo9905, uakkes și 6 vizitatori