mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Text to speech
This commit is contained in:
parent
61a703e04d
commit
323d181e6f
3 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,6 @@ from otp.nametag.Nametag import Nametag
|
||||||
from otp.nametag.NametagGroup import NametagGroup
|
from otp.nametag.NametagGroup import NametagGroup
|
||||||
from otp.nametag.NametagConstants import *
|
from otp.nametag.NametagConstants import *
|
||||||
|
|
||||||
|
|
||||||
teleportNotify = DirectNotifyGlobal.directNotify.newCategory('Teleport')
|
teleportNotify = DirectNotifyGlobal.directNotify.newCategory('Teleport')
|
||||||
teleportNotify.showTime = True
|
teleportNotify.showTime = True
|
||||||
if config.GetBool('want-teleport-debug', 1):
|
if config.GetBool('want-teleport-debug', 1):
|
||||||
|
|
|
@ -2,6 +2,7 @@ from pandac.PandaModules import *
|
||||||
from NametagConstants import *
|
from NametagConstants import *
|
||||||
from Nametag3d import *
|
from Nametag3d import *
|
||||||
from Nametag2d import *
|
from Nametag2d import *
|
||||||
|
import subprocess
|
||||||
|
|
||||||
class NametagGroup:
|
class NametagGroup:
|
||||||
CCNormal = CCNormal
|
CCNormal = CCNormal
|
||||||
|
@ -242,6 +243,9 @@ class NametagGroup:
|
||||||
tag.avatar = self.avatar
|
tag.avatar = self.avatar
|
||||||
tag.icon = self.icon
|
tag.icon = self.icon
|
||||||
|
|
||||||
|
if settings['talk2speech']:
|
||||||
|
subprocess.Popen('espeak "%s"' % tag.chatString)
|
||||||
|
|
||||||
tag.update()
|
tag.update()
|
||||||
|
|
||||||
def __testVisible3D(self):
|
def __testVisible3D(self):
|
||||||
|
|
|
@ -102,6 +102,8 @@ if 'tpTransition' not in settings:
|
||||||
settings['tpTransition'] = True
|
settings['tpTransition'] = True
|
||||||
if 'fov' not in settings:
|
if 'fov' not in settings:
|
||||||
settings['fov'] = OTPGlobals.DefaultCameraFov
|
settings['fov'] = OTPGlobals.DefaultCameraFov
|
||||||
|
if 'talk2speech' not in settings:
|
||||||
|
settings['talk2speech'] = False
|
||||||
|
|
||||||
loadPrcFileData('Settings: res', 'win-size %d %d' % tuple(settings['res']))
|
loadPrcFileData('Settings: res', 'win-size %d %d' % tuple(settings['res']))
|
||||||
loadPrcFileData('Settings: fullscreen', 'fullscreen %s' % settings['fullscreen'])
|
loadPrcFileData('Settings: fullscreen', 'fullscreen %s' % settings['fullscreen'])
|
||||||
|
|
Loading…
Reference in a new issue