CloseSubtitles 关闭字幕
格式
CloseSubtitles()
简介
关闭字幕。
实例
运行开始时屏幕底端显示字幕“WoXiao.net”,等待3秒后关闭字幕。
import fg,coroutine
asset = fg.AssetCreate()
asset.name = 'Main Scene'
asset.state = fg.STATE.VOXMODEL
asset.vmFile = 'mainScene'
asset.icon='icon.png'
fg.AssetRegister(asset)
def onStart(self):
fg.ShowSubtitles('WoXiao.net')
yield coroutine.WaitForSecond(3)
fg.CloseSubtitles ()
fg.AssetSetStartCBFunc(asset, onStart)