添加射击无效语音
This commit is contained in:
@@ -45,6 +45,8 @@ const audioFils = {
|
||||
"https://static.shelingxingqiu.com/attachment/2025-07-14/dbbkll0gsuumekhpkn.mp3",
|
||||
"10环":
|
||||
"https://static.shelingxingqiu.com/attachment/2025-07-14/dbbklgw2dk22ek7qha.mp3",
|
||||
射击无效:
|
||||
"https://static.shelingxingqiu.com/attachment/2025-08-26/dcc9qc84rir8gkj3mo.mp3",
|
||||
};
|
||||
|
||||
class AudioManager {
|
||||
|
||||
@@ -60,9 +60,10 @@ async function onReceiveMessage(messages = []) {
|
||||
}
|
||||
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
||||
uni.showToast({
|
||||
title: "无效射击",
|
||||
title: "距离不足,无效",
|
||||
icon: "none",
|
||||
});
|
||||
audioManager.play("射击无效");
|
||||
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
||||
currentRoundEnded.value = true;
|
||||
audioManager.play("比赛开始");
|
||||
|
||||
@@ -137,9 +137,10 @@ async function onReceiveMessage(messages = []) {
|
||||
}
|
||||
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
||||
uni.showToast({
|
||||
title: "无效射击",
|
||||
title: "距离不足,无效",
|
||||
icon: "none",
|
||||
});
|
||||
audioManager.play("射击无效");
|
||||
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
||||
audioManager.play("比赛开始");
|
||||
} else if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
||||
|
||||
@@ -23,7 +23,7 @@ export const MESSAGETYPES = {
|
||||
RankUpdate: 1121669910,
|
||||
LvlUpdate: 3958625354,
|
||||
TeamUpdate: 4168086616,
|
||||
InvalidShot: 4468086617,
|
||||
InvalidShot: 4168086617,
|
||||
};
|
||||
|
||||
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
||||
|
||||
Reference in New Issue
Block a user