Jump to content

disable quest esc


Go to solution Solved by Amun,

Recommended Posts

How can I make quest window don't close when I press the esc key?

 

is this true?

uiquest.py

spacer.png

 

	def OnPressEscapeKey(self):
		if None != self.btnNext:
			if event.BUTTON_TYPE_CANCEL == self.nextButtonType:
				event.SelectAnswer(self.descIndex, 254)
				self.CloseSelf()
			elif event.BUTTON_TYPE_DONE == self.nextButtonType:
				self.CloseSelf()
			elif event.BUTTON_TYPE_NEXT == self.nextButtonType:
				event.SelectAnswer(self.descIndex, 254)
				self.CloseSelf()
		##else:
			##event.SelectAnswer(self.descIndex, entire_questbutton_number -1 )		
			##self.nextbutton = None
			##self.prevbutton = None
			##self.CloseSelf()
		return True

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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.