Removed unused Code

This commit is contained in:
chrys87 2017-07-21 09:28:59 +02:00 committed by GitHub
parent fa5f7d384e
commit 62714a14c5

View File

@ -79,26 +79,4 @@ class helpManager():
return return
self.tutorialListIndex -= 1 self.tutorialListIndex -= 1
if self.tutorialListIndex < 0: if self.tutorialListIndex < 0:
self.tutorialListIndex = len(self.helpDict) - 1 self.tutorialListIndex = len(self.helpDict) - 1
def handleTutorialMode(self):
return
if self.env['runtime']['inputManager'].noKeyPressed():
return
if self.env['input']['currInput'] in [['KEY_F1', 'KEY_FENRIR']]:
self.env['runtime']['commandManager'].runCommand('TOGGLE_TUTORIAL_MODE', 'help')
return True
if not self.isTutorialMode():
return
if self.env['input']['currInput'] in [['KEY_ESC']]:
self.env['runtime']['commandManager'].runCommand('TOGGLE_TUTORIAL_MODE', 'help')
return True
if self.env['input']['currInput'] in [['KEY_UP']]:
self.env['runtime']['commandManager'].runCommand('PREV_HELP', 'help')
return True
if self.env['input']['currInput'] in [['KEY_DOWN']]:
self.env['runtime']['commandManager'].runCommand('NEXT_HELP', 'help')
return True
if self.env['input']['currInput'] in [['KEY_SPACE']]:
self.env['runtime']['commandManager'].runCommand('CURR_HELP', 'help')
return True
return False