Jump to content

Recommended Posts

Hi

 

Today I noticed it's possible to press esc button when quest is open, and i wan't to disable this, because when we press esc, it's choose the last option (select), and sometimes it's not good. In original gf client, we can't press esc when quest open, so it's not normal.

I'm using Test Client Für 40250

 

Thanks in advance.

Link to comment
https://metin2.dev/topic/8027-quest-esc/
Share on other sites

  • Premium

Open uiquest.py, then search for def OnPressEscapeKey(self): then remove or uncomment these:

		else:
		## µµÁßżˇ ˛¨ąö¸®°ĹłŞ, ESCąöưŔĚ łŞżÓŔ»°ćżě 
			event.SelectAnswer(self.descIndex, entire_questbutton_number -1 )		
			self.nextbutton = None
			self.prevbutton = None
			self.OnCancel()	

This will disable that when you press ESC it won't choose the last button, but the 'Next' or 'Done' button (if they available). If you totally want to remove the ESC key, just write 

return True

directly under the definition.

  • Love 2

The one and only UI programming guideline

Link to comment
https://metin2.dev/topic/8027-quest-esc/#findComment-49980
Share on other sites

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.