Jump to content

Official Quest Renewal


Go to solution Solved by Marcos17,

Recommended Posts

Good night everyone, I'm implementing the Owsap system, but I'm having problems with uiCharacter.py

I already searched here in the forum I didn't get a solution, if someone can help me, thanks in advance

Error:

Spoiler

0817 20:24:02839 :: 
uiCharacter.py(line:1132) __LoadWindow
uiCharacter.py(line:979) __BindObject
uiCharacter.py(line:637) __init__
uiCharacter.py(line:343) __init__

CharacterWindow.__LoadWindow - <type 'exceptions.AttributeError'>:'Window' object has no attribute 'SetOnMouseLeftButtonUpEvent'

0817 20:24:02840 :: ============================================================================================================
0817 20:24:02840 :: Abort!!!!


0817 20:24:02840 :: filename=exception.py, name=Abort
0817 20:24:02840 :: filename=uiCharacter.py, name=__LoadWindow
0817 20:24:02840 :: filename=uiCharacter.py, name=__init__
0817 20:24:02840 :: filename=interfaceModule.py, name=__MakeWindows
0817 20:24:02840 :: filename=interfaceModule.py, name=MakeInterface
0817 20:24:02840 :: filename=game.py, name=__init__
0817 20:24:02840 :: filename=networkModule.py, name=SetGamePhase
0817 20:24:02840 :: filename=prototype.py, name=RunApp
0817 20:24:02840 :: filename=prototype.py, name=<module>
0817 20:24:02840 :: filename=system.py, name=execfile
0817 20:24:02840 :: filename=system.py, name=RunMainScript
0817 20:24:02840 :: filename=system.py, name=<module>
0817 20:24:02840 :: filename=<string>, name=<module>
 

 

Link to comment
Share on other sites

On 8/17/2023 at 8:42 PM, Marcos17 said:

Good night everyone, I'm implementing the Owsap system, but I'm having problems with uiCharacter.py

I already searched here in the forum I didn't get a solution, if someone can help me, thanks in advance

Error:

  Reveal hidden contents

0817 20:24:02839 :: 
uiCharacter.py(line:1132) __LoadWindow
uiCharacter.py(line:979) __BindObject
uiCharacter.py(line:637) __init__
uiCharacter.py(line:343) __init__

CharacterWindow.__LoadWindow - <type 'exceptions.AttributeError'>:'Window' object has no attribute 'SetOnMouseLeftButtonUpEvent'

0817 20:24:02840 :: ============================================================================================================
0817 20:24:02840 :: Abort!!!!


0817 20:24:02840 :: filename=exception.py, name=Abort
0817 20:24:02840 :: filename=uiCharacter.py, name=__LoadWindow
0817 20:24:02840 :: filename=uiCharacter.py, name=__init__
0817 20:24:02840 :: filename=interfaceModule.py, name=__MakeWindows
0817 20:24:02840 :: filename=interfaceModule.py, name=MakeInterface
0817 20:24:02840 :: filename=game.py, name=__init__
0817 20:24:02840 :: filename=networkModule.py, name=SetGamePhase
0817 20:24:02840 :: filename=prototype.py, name=RunApp
0817 20:24:02840 :: filename=prototype.py, name=<module>
0817 20:24:02840 :: filename=system.py, name=execfile
0817 20:24:02840 :: filename=system.py, name=RunMainScript
0817 20:24:02840 :: filename=system.py, name=<module>
0817 20:24:02840 :: filename=<string>, name=<module>
 

 

up

Link to comment
Share on other sites

  • 1 month later...

ui.py
Search: 

class Window(object):

	def __init__(self, layer = "UI"):

add bellow:

		self.onMouseLeftButtonUpEvent = None

also in class Window(object):
 

search: 

		def OnRender(self):
			if self.renderEvent:
				apply(self.renderEvent, self.renderArgs)

add bellow: 

	def SetOnMouseLeftButtonUpEvent(self, event):
		self.onMouseLeftButtonUpEvent = event

	def OnMouseLeftButtonUp(self):
		if self.onMouseLeftButtonUpEvent:
			self.onMouseLeftButtonUpEvent()

 

  • Metin2 Dev 1
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.