TheSLZ 105 Posted August 4, 2015 Share Posted August 4, 2015 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 More sharing options...
Premium masodikbela 1359 Posted August 5, 2015 Premium Share Posted August 5, 2015 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. 2 The one and only UI programming guideline Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now