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
https://metin2.dev/topic/29654-disable-quest-esc/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.