添加无效射击通知
This commit is contained in:
@@ -58,6 +58,11 @@ async function onReceiveMessage(messages = []) {
|
|||||||
: "未上靶";
|
: "未上靶";
|
||||||
audioManager.play(currentSound.value);
|
audioManager.play(currentSound.value);
|
||||||
}
|
}
|
||||||
|
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "无效射击",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
||||||
currentRoundEnded.value = true;
|
currentRoundEnded.value = true;
|
||||||
audioManager.play("比赛开始");
|
audioManager.play("比赛开始");
|
||||||
@@ -77,7 +82,7 @@ async function onReceiveMessage(messages = []) {
|
|||||||
audioManager.play("比赛结束");
|
audioManager.play("比赛结束");
|
||||||
} else if (msg.constructor === MESSAGETYPES.FinalShoot) {
|
} else if (msg.constructor === MESSAGETYPES.FinalShoot) {
|
||||||
audioManager.play("决金箭轮");
|
audioManager.play("决金箭轮");
|
||||||
tips.value = '即将开始...'
|
tips.value = "即将开始...";
|
||||||
} else if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
|
} else if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
|
||||||
ended.value = true;
|
ended.value = true;
|
||||||
} else if (msg.constructor === MESSAGETYPES.MatchOver) {
|
} else if (msg.constructor === MESSAGETYPES.MatchOver) {
|
||||||
|
|||||||
@@ -135,6 +135,11 @@ async function onReceiveMessage(messages = []) {
|
|||||||
: "未上靶";
|
: "未上靶";
|
||||||
audioManager.play(currentSound.value);
|
audioManager.play(currentSound.value);
|
||||||
}
|
}
|
||||||
|
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "无效射击",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
||||||
audioManager.play("比赛开始");
|
audioManager.play("比赛开始");
|
||||||
} else if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
} else if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export const MESSAGETYPES = {
|
|||||||
RankUpdate: 1121669910,
|
RankUpdate: 1121669910,
|
||||||
LvlUpdate: 3958625354,
|
LvlUpdate: 3958625354,
|
||||||
TeamUpdate: 4168086616,
|
TeamUpdate: 4168086616,
|
||||||
|
InvalidShot: 4468086617,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
||||||
|
|||||||
Reference in New Issue
Block a user