try command structure, fix tutorial mode command

This commit is contained in:
chrys
2016-09-17 17:35:03 +02:00
parent 0f10ecd08a
commit 11289c09cd
5 changed files with 10 additions and 11 deletions

View File

@ -12,9 +12,9 @@ class command():
return 'You are leving the tutorial mode. Press that shortcut again to enter the tutorial mode again.'
def run(self, environment):
text = 'you entered the tutorial mode. In that mode the commands are not executed. but you get an description what the shortcut does. to leve the tutorial mode press that shortcut again.'
environment['runtime']['outputManager'].presentText(environment, text, interrupt=True)
environment['generalInformation']['tutorialMode'] = True
text = 'you entered the tutorial mode. In that mode the commands are not executed. but you get an description what the shortcut does. to leve the tutorial mode press that shortcut again.'
environment['runtime']['outputManager'].presentText(environment, text, interrupt=True)
environment['generalInformation']['tutorialMode'] = True
return environment
def setCallback(self, callback):
pass