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
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
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.