mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复联机说话指向性错误
This commit is contained in:
parent
0bf1ffc7e4
commit
984361bd97
@ -1,4 +1,5 @@
|
||||
using System.Windows.Media;
|
||||
using LinePutScript;
|
||||
using System.Windows.Media;
|
||||
using VPet_Simulator.Core;
|
||||
using static VPet_Simulator.Core.GraphInfo;
|
||||
using static VPet_Simulator.Windows.Interface.MPMessage;
|
||||
@ -25,7 +26,6 @@ public interface IMPFriend
|
||||
/// 图像资源集
|
||||
/// </summary>
|
||||
ImageResources ImageSources { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前宠物图形名称
|
||||
/// </summary>
|
||||
|
@ -115,6 +115,10 @@ public struct MPMessage
|
||||
/// 发送者名字
|
||||
/// </summary>
|
||||
public string SendName { get; set; }
|
||||
/// <summary>
|
||||
/// 接受者名字
|
||||
/// </summary>
|
||||
public string ToName { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 交互结构
|
||||
|
@ -18,7 +18,7 @@ public partial class MainWindow
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
public int version { get; } = 11004;
|
||||
public int version { get; } = 11005;
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
|
@ -701,8 +701,8 @@ public partial class MPFriends : WindowX, IMPFriend
|
||||
wmp.Log("{0} 悄悄地对你说: {1}".Translate(msg.SendName, msg.Content));
|
||||
break;
|
||||
case Chat.Type.Internal:
|
||||
Main.Say("{0} 对你说: {1}".Translate(msg.SendName, msg.Content));
|
||||
wmp.Log("{0} 对你说: {1}".Translate(msg.SendName, msg.Content));
|
||||
Main.Say("{0} 对 {2} 说: {1}".Translate(msg.SendName, msg.Content, msg.ToName));
|
||||
wmp.Log("{0} 对 {2} 说: {1}".Translate(msg.SendName, msg.Content, msg.ToName));
|
||||
break;
|
||||
case Chat.Type.Public:
|
||||
Main.Say("{0} 对大家说: {1}".Translate(msg.SendName, msg.Content));
|
||||
@ -763,7 +763,7 @@ public partial class MPFriends : WindowX, IMPFriend
|
||||
{
|
||||
MPMessage msg = new MPMessage();
|
||||
msg.Type = (int)MSGType.Chat;
|
||||
msg.SetContent(new Chat() { Content = cont, ChatType = (Chat.Type)talktype, SendName = SteamClient.Name });
|
||||
msg.SetContent(new Chat() { Content = cont, ChatType = (Chat.Type)talktype, SendName = SteamClient.Name, ToName = friend.Name });
|
||||
msg.To = SteamClient.SteamId;
|
||||
|
||||
switch (talktype)
|
||||
@ -775,8 +775,8 @@ public partial class MPFriends : WindowX, IMPFriend
|
||||
break;
|
||||
case 1:
|
||||
wmp.SendMessageALL(msg);
|
||||
mw.Main.Say("{0} 对你说: {1}".Translate(SteamClient.Name, cont));
|
||||
wmp.Log("{0} 对你说: {1}".Translate(SteamClient.Name, cont));
|
||||
mw.Main.Say("{0} 对 {2} 说: {1}".Translate(SteamClient.Name, cont, friend.Name));
|
||||
wmp.Log("{0} 对 {2} 说: {1}".Translate(SteamClient.Name, cont, friend.Name));
|
||||
break;
|
||||
case 2:
|
||||
wmp.SendMessageALL(msg);
|
||||
|
@ -194,6 +194,8 @@ public partial class winMutiPlayer : WindowX, IMPWindows
|
||||
|
||||
private void Main_TimeHandle(Main obj)
|
||||
{
|
||||
|
||||
|
||||
lb.SetMemberData("save", mw.GameSavesData.GameSave.ToLine().ToString());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user