problema efect sistem okey

Închis
Avatar utilizator
RazZ0r
Nivel 1

Nivel 1
Mesaje: 85
Membru din: 24 Dec 2021, 02:13
Server: Metin2Kage soon!
Regat: Jinno
Aprecieri: 79  
Mulţumiri: 1  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

*Problemă/Întrebare:Salut, am o problema legata de sistemul de carti okey.Atunci cand fac o pereche de carti imi apare efectul de "succes" si nu mai dispare deloc pana nu dau teleport
Tipologie server:
*Resursă folosită:sursa/new-gameforge-event-okay-cards-t44356.html
*ServerFiles utilizat: martysama
*Syserr:este gol
Poză:https://gyazo.com/a84c987ae7dce8badad12cecb38840d6
*Detalii suplimentare: animagebox(window):

Cod: Selectaţi tot

class AniImageBox(Window):
	def __init__(self, layer = "UI"):
		Window.__init__(self, layer)
		
		self.eventEndFrame = None
		
		if app.ENABLE_FISH_EVENT:
			self.end_frame_event = None

	def __del__(self):
		Window.__del__(self)
		
		self.eventEndFrame = None
		
		if app.ENABLE_FISH_EVENT:
			self.end_frame_event = None
			
	def SetRotation(self, rotation):
		wndMgr.SetRotationAni(self.hWnd, rotation)

	def RegisterWindow(self, layer):
		self.hWnd = wndMgr.RegisterAniImageBox(self, layer)

	def SetDelay(self, delay):
		wndMgr.SetDelay(self.hWnd, delay)

	def AppendImage(self, filename):
		wndMgr.AppendImage(self.hWnd, filename)
		
	def SetOnEndFrame(self, event):
		self.eventEndFrame = event

	def SetPercentage(self, curValue, maxValue):
		wndMgr.SetRenderingRect(self.hWnd, 0.0, 0.0, -1.0 + float(curValue) / float(maxValue), 0.0)

	if app.ENABLE_FISH_EVENT:
		def ResetFrame(self):
			wndMgr.ResetFrame(self.hWnd)
			
		def SetEndFrameEvent(self, event, *args):
			self.end_frame_event = event
			self.endFrameArgs = args

		def OnEndFrame(self):
			if self.end_frame_event:
				self.eventEndFrame()
				
		def SetScale(self, xScale, yScale):
			wndMgr.SetSlotScale(self.hWnd, xScale, yScale)
			
Avatar utilizator
RazZ0r
Nivel 1

Nivel 1
Mesaje: 85
Membru din: 24 Dec 2021, 02:13
Server: Metin2Kage soon!
Regat: Jinno
Aprecieri: 79  
Mulţumiri: 1  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

rezolvat
in functia SetOnEndFrame schimbati cu self.eventEndFrame = event sau cu self.end_frame_event = event daca aveti si jigsaw
Închis
Răspunsuri
9
Vizualizări
503
Răspunsuri
13
Vizualizări
3323
Răspunsuri
10
Vizualizări
1091
Răspunsuri
1
Vizualizări
213

Înapoi la “Probleme Rezolvate”

  • Informaţie
  • Cine este conectat

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