优化聊天气泡

This commit is contained in:
2026-07-01 23:17:57 +08:00
parent 911cc9cc23
commit 7e83dc27c9
4 changed files with 268 additions and 5 deletions
+2 -2
View File
@@ -911,7 +911,7 @@ Desk.send_text=function(_msg){//发送消息
if(!_msg.data.type){
var pobj = Desk.GetPlayerBySeat(_msg.data.seat);
GameUI.playTextVoice(_msg.data.text,pobj.sex);
GameUI.ShowChat(Logic.ChangeToStatus(C_Player.seat,_msg.data.seat),_msg.data.text);
GameUI.ShowChat(_msg.data.seat,_msg.data.text);
GameUI.addCommunion(Logic.ChangeToStatus(C_Player.seat,_msg.data.seat),1,_msg.data.text,0,null,pobj.sex);
}else if(_msg.data.type == 1){//全服公告
GameUI.CloseChat();
@@ -929,7 +929,7 @@ Desk.send_text=function(_msg){//发送消息
var idx = Number(_msg.data.text);
_msg.data.text = Game_Config.Info.TextContent[(idx - 1)%Game_Config.Info.TextContent.length];
GameUI.playTextVoice(_msg.data.text);
GameUI.ShowChat(Logic.ChangeToStatus(C_Player.seat,_msg.data.seat),_msg.data.text);
GameUI.ShowChat(_msg.data.seat,_msg.data.text);
GameUI.addCommunion(Logic.ChangeToStatus(C_Player.seat,_msg.data.seat),1,_msg.data.text,0);
}
}