Add new chat effects and shop items
This commit is contained in:
@@ -1277,7 +1277,7 @@
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', setupGomokuInviteListener);
|
||||
|
||||
// ── 全屏特效事件监听(烟花/下雨/雷电/下雪)─────────
|
||||
// ── 全屏特效事件监听(管理员菜单 / 会员进出场通用)─────────
|
||||
window.addEventListener('chat:effect', (e) => {
|
||||
const type = e.detail?.type;
|
||||
const target = e.detail?.target_username; // null = 全员,otherwise 指定昵称
|
||||
@@ -1294,7 +1294,7 @@
|
||||
/**
|
||||
* 管理员点击特效按钮,向后端 POST /command/effect
|
||||
*
|
||||
* @param {string} type 特效类型:fireworks / rain / lightning
|
||||
* @param {string} type 特效类型:fireworks / rain / lightning / snow / sakura / meteors / gold-rain / hearts / confetti / fireflies
|
||||
*/
|
||||
function triggerEffect(type) {
|
||||
const roomId = window.chatContext?.roomId;
|
||||
|
||||
Reference in New Issue
Block a user