polish sound
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user