播放游戏时,停止待机任务

This commit is contained in:
2025-02-26 19:45:47 +08:00
parent 8b080a8081
commit 593d7758bf
19 changed files with 422 additions and 275 deletions

View File

@@ -14,8 +14,10 @@ func SoundStart() leaf.HandlerFunc {
defer func() {
switch leaf.Value[leaf.EndType](c, leaf.EndKey) {
case leaf.EndTimer:
case leaf.End:
tts.DefaultTTS.Sound(pm.TTS.End)
case leaf.EndTimeout:
tts.DefaultTTS.Sound(pm.TTS.Timeout)
case leaf.EndStop:
tts.DefaultTTS.Sound(pm.TTS.Stop)
}