polish vmenu with tutorial mode

This commit is contained in:
chrys 2019-02-12 22:38:06 +01:00
parent 8322aa7905
commit 6fd2f60d66
2 changed files with 5 additions and 5 deletions

View File

@ -15,10 +15,10 @@ class command():
pass
def getDescription(self):
self.env['runtime']['helpManager'].toggleTutorialMode()
#self.env['runtime']['outputManager'].presentText(, interrupt=True)
return _('Exiting tutorial mode. To enter tutorial mode again press Fenrir+f1')
def run(self):
self.env['runtime']['helpManager'].toggleTutorialMode()
if self.env['runtime']['helpManager'].isTutorialMode():
self.env['runtime']['outputManager'].presentText( _('Entering tutorial mode. In this mode commands are described but not executed. You can move through the list of commands with the up and down arrow keys. To Exit tutorial mode press Fenrir+f1.'), interrupt=True)
def setCallback(self, callback):
pass

View File

@ -15,7 +15,7 @@ class command():
pass
def getDescription(self):
self.env['runtime']['vmenuManager'].togglelVMenuMode()
return _('Exiting v menu mode.')
return _('Entering or Leaving v menu mode.')
def run(self):
self.env['runtime']['vmenuManager'].togglelVMenuMode()
if self.env['runtime']['vmenuManager'].getActive():