polish sound
This commit is contained in:
@ -6,10 +6,10 @@ class command():
|
||||
def run(self, environment):
|
||||
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
|
||||
environment['runtime']['outputManager'].presentText(environment, "braille disabled")
|
||||
environment['runtime']['outputManager'].presentText(environment, "braille disabled",soundIconName='BrailleOff', interrupt=True)
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled')))
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
|
||||
environment['runtime']['outputManager'].presentText(environment, "braille enabled")
|
||||
environment['runtime']['outputManager'].presentText(environment, "braille enabled",soundIconName='BrailleOn', interrupt=True)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -7,7 +7,7 @@ class command():
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled') or \
|
||||
environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled') or \
|
||||
environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
|
||||
environment['runtime']['outputManager'].presentText(environment, "fenrir muted")
|
||||
environment['runtime']['outputManager'].presentText(environment, "fenrir muted", soundIconName='Accept', interrupt=True)
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled','False')
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled','False')
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled','False')
|
||||
@ -15,7 +15,7 @@ class command():
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled','True')
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled','True')
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled','True')
|
||||
environment['runtime']['outputManager'].presentText(environment, "fenrir unmuted")
|
||||
environment['runtime']['outputManager'].presentText(environment, "fenrir unmuted", soundIconName='Cancel', interrupt=True)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -6,10 +6,11 @@ class command():
|
||||
def run(self, environment):
|
||||
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
|
||||
environment['runtime']['outputManager'].presentText(environment, "sound disabled")
|
||||
environment['runtime']['outputManager'].presentText(environment, "sound disabled",soundIconName='SoundOff', interrupt=True)
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled')))
|
||||
print(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'))
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
|
||||
environment['runtime']['outputManager'].presentText(environment, "sound enabled")
|
||||
environment['runtime']['outputManager'].presentText(environment, "sound enabled",soundIconName='SoundOn', interrupt=True)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -5,11 +5,11 @@ class command():
|
||||
pass
|
||||
def run(self, environment):
|
||||
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled',soundIconName='SpeechOff', interrupt=True):
|
||||
environment['runtime']['outputManager'].presentText(environment, "speech disabled")
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled')))
|
||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
|
||||
environment['runtime']['outputManager'].presentText(environment, "speech enabled")
|
||||
environment['runtime']['outputManager'].presentText(environment, "speech enabled",soundIconName='SpeechOn', interrupt=True)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -4,12 +4,12 @@ class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def run(self, environment):
|
||||
#if environment['screenData']['newDelta'] != environment['screenData']['oldDelta']:
|
||||
# return environment
|
||||
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta']:
|
||||
return environment
|
||||
if environment['screenData']['newCursor']['y'] == environment['screenData']['oldCursor']['y']:
|
||||
return environment
|
||||
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']].strip(" \t\n") == '':
|
||||
environment['runtime']['outputManager'].presentText(environment, "blank", True)
|
||||
environment['runtime']['outputManager'].presentText(environment, "blank", soundIconName='EmptyLine', interrupt=True)
|
||||
else:
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']], True)
|
||||
return environment
|
||||
|
@ -14,7 +14,7 @@ class command():
|
||||
return environment
|
||||
if ttyChanged:
|
||||
environment['runtime']['outputManager'].playSoundIcon(environment,'ChangeTTY')
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], ttyChanged)
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=ttyChanged)
|
||||
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
|
@ -13,7 +13,7 @@ class command():
|
||||
not ttyChanged:
|
||||
return environment
|
||||
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], ttyChanged)
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], soundIconName='', interrupt=ttyChanged)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user