Cum fac rendertarget pe buton, in timp real?

În cazul în care aveţi o nelămurire postaţi aici, de asemenea este locul unde puteţi găsi posibile rezolvări la problemele dvs.
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

*Problemă/Întrebare: Cum pot face astfel incat Render Target sa apara pe tasta shift, dar fara sa dau prima data shift dupa hover pe item?
Tipologie server:
*Resursă folosită: Render Target Volvox: sursa/render-target-edited-volvox-t95578.html
*ServerFiles utilizat: propriu
*Syserr:
Poză:
*Detalii suplimentare:

Salut! :D As dori daca stie cineva sa ma ajute sa fac render target sa apara in timp real atunci cand apas shift. Momentan il am pus pe tasta shift, dar merge doar daca apas prima oara shift si dupa fac hover pe item. Daca sunt deja cu cursorul pe item si apas tasta "shift" nu merge.

Asa am eu acum:




Rezolvarea ar fi in uitooltip, in functia def OnUpdate(self), dar nu am cunostintele necesare in python sa rezolv, am incercat..

Un exemplu de cum as vrea sa fie de fapt este in functia de compare pe care am pus-o, unde daca sunt deja cu cursorul pe item si apas CTRL merge indiferent ca dau hover sau nu inainte :




Asta la compare am rezolvat dupa un tutorial facut de un membru de pe dev, care zice asa:
I have improved the code about show/hide the compare tooltip because you need press the button alt before move the mouse over the item, my english isnt good but here you can see the fix:
https://metin2.download/picture/Mjw4S50 ... 8U59F/.gif

Open uitooltip.py and find:

Cod: Selectaţi tot

		if app.__COMPARE_TOOLTIP__ and app.IsPressed(app.DIK_LALT) and not slotIndex >= player.EQUIPMENT_SLOT_START and CompareItem:
			self.SetCompareItem(itemVnum)
remove or comment that code

now go to def OnUpdate(self):

and over this code

Cod: Selectaţi tot

		if app.__COMPARE_TOOLTIP__:
			if self.IsCompare:
				return
add:

Cod: Selectaţi tot

		if app.IsPressed(app.DIK_G):
			if self.IsCompare:
				return
			if not self.CompareTooltip:
				self.SetCompareItem(self.itemVnum)
		else:
			if self.CompareTooltip:
				self.CompareTooltip.Hide()
				self.IsCompare = False
				self.CompareTooltip = None
must see like this:
https://metin2.download/picture/23J65uM ... yBN5f/.png

PD: I have changed the key to G because in key ALT i have the Rendertarget system and 2 systems made a bug in same key, but you can change the key to any you want.
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

up
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

Rezolvat de mine.

Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Răspunde
Răspunsuri
6
Vizualizări
149
Răspunsuri
3
Vizualizări
179
Răspunsuri
4
Vizualizări
341

Înapoi la “Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

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