Files
fc/dev/project/library/imports/e3/e3f06131-9fa1-43f0-9f4f-cd12dfe21e3e.js
T

135 lines
3.5 KiB
JavaScript
Raw Normal View History

2026-05-24 10:21:26 +08:00
"use strict";
cc._RF.push(module, 'e3f06Exn6FD8J9PzRLf4h4+', 'chat_const');
// Scripts/mod/chat/chat_const.js
"use strict";
var _ChannelTag, _ChatTip, _ChatTimeIndex, _ChatConst$ainNameCol;
var ChatConst = {
// 聊天类型
TYPE_WORD: 0,
// 文字聊天
TYPE_VOICE: 1,
// 语音聊天
TYPE_TASK: 2,
// 任务聊天
TYPE_HERO: 3,
// 英雄聊天
TYPE_PACK: 4,
// 背包聊天
ChannelTag: (_ChannelTag = {}, _ChannelTag[1] = "Cross", _ChannelTag[2] = "Gang", _ChannelTag[3] = "Friend", _ChannelTag[4] = "System", _ChannelTag[5] = "Province", _ChannelTag[6] = "Cross", _ChannelTag),
ChatTip: (_ChatTip = {}, _ChatTip[1] = "chat.world", _ChatTip[4] = "chat.union", _ChatTip[7] = "chat.players", _ChatTip[16] = "chat.system", _ChatTip),
ChatTimeIndex: (_ChatTimeIndex = {}, _ChatTimeIndex[2048] = "cooldown_same_province", _ChatTimeIndex[1024] = "cooldown_cross_service", _ChatTimeIndex[1] = "cooldown_world", _ChatTimeIndex[4] = "cooldown_guild", _ChatTimeIndex),
Channel: {
Province: 2048,
// 同省频道
Cross: 1024,
// 跨服频道 //GY系统频道消息数量去除
// World : 1, // 世界频道
Gang: 4,
// 宗门频道
Friend: 7,
// 好友频道
System: 16,
// 剧道
NoticeTop: 32,
//传闻频道
System1: 64,
//系统频道
SystemTop: 128 //顶部系统
// Notice :16, // 传闻
},
ChannelLimit: {
Province: 40,
// 跨服频道
Cross: 40,
// 跨服频道
World: 40,
// 世界频道
Gang: 30,
// 宗门频道
Friend: 80,
// 好友频道
System: 50 // 剧道
},
Link: {
Item_Show: 49,
// 物品展示
Guild_Join: 6,
// 申请入帮
Guild_mem_red: 7,
// 公会成员红包
Guild_show_red: 8,
// 查看公会成员红包
BargainHelp: 15,
// 砍价链接
BigworldBoss: 16,
// 大世界的BS
BigworldBossPos: 17,
// 世界指定位置
OtherRole: 18,
// 弹出信息面板
Watch_Ladder: 51,
// 查看天梯录像
Open_Ladder: 52,
// 打开天梯界面
Open_Vedio_info: 57 //打开从录像馆分享的录像
}
};
ChatConst.ainNameColor = (_ChatConst$ainNameCol = {}, _ChatConst$ainNameCol[ChatConst.Channel.Province] = "#24ecf3", _ChatConst$ainNameCol[ChatConst.Channel.Cross] = "#24ecf3", _ChatConst$ainNameCol[ChatConst.Channel.World] = "#24ecf3", _ChatConst$ainNameCol[ChatConst.Channel.Gang] = "#24ecf3", _ChatConst$ainNameCol[ChatConst.Channel.Friend] = "#24ecf3", _ChatConst$ainNameCol[ChatConst.Channel.System] = "#24ecf3", _ChatConst$ainNameCol), ChatConst.SayConfig = {
"default_bubble": {
val: 1000,
desc: "默认聊天气泡"
},
"say_repeak_vip": {
val: 0,
desc: "VIPX以下限制"
},
"say_repeak_lev": {
val: 5,
desc: "X级以下限制"
},
"say_repeak_span": {
val: 15,
desc: "最近X分钟内的发言条数"
},
"say_repeak_num": {
val: 3,
desc: "筛选的发言条数"
},
"say_repeak_similar": {
val: 60,
desc: "封禁的相似度(百分比)"
},
"say_repeak_time": {
val: 10,
desc: "封禁的小时"
},
"say_string_length": {
val: 31,
desc: "限制的字符串长度(中文3个字符,英/数一个字符)"
},
"cooldown_same_province": {
val: 10,
desc: "同省发言冷却"
},
"cooldown_cross_service": {
val: 10,
desc: "跨服发言冷却"
},
"cooldown_world": {
val: 10,
desc: "世界发言冷却"
},
"cooldown_guild": {
val: 10,
desc: "公会发言冷却"
}
};
module.exports = ChatConst;
cc._RF.pop();