Feat: 实现全屏特效系统(烟花/下雨/雷电),管理员一键触发全房间广播
This commit is contained in:
@@ -63,6 +63,11 @@ export function initChat(roomId) {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent("chat:screen-cleared", { detail: e }),
|
||||
);
|
||||
})
|
||||
// 监听管理员触发的全屏特效(烟花/下雨/雷电)
|
||||
.listen("EffectBroadcast", (e) => {
|
||||
console.log("特效播放:", e);
|
||||
window.dispatchEvent(new CustomEvent("chat:effect", { detail: e }));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user