From f4c5177cc3dd0ee7b0fb23642f5eacc1e4b5bcc5 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Thu, 2 May 2024 22:08:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=94=E6=9C=BA=E5=AE=A0?= =?UTF-8?q?=E7=89=A9=E5=BD=A2=E5=8F=98=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Graph/GraphCore.cs | 2 +- VPet-Simulator.Windows.Interface/GameSave_VPet.cs | 6 ++++-- VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml | 2 +- VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml.cs | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/VPet-Simulator.Core/Graph/GraphCore.cs b/VPet-Simulator.Core/Graph/GraphCore.cs index a2dda1c..6135c78 100644 --- a/VPet-Simulator.Core/Graph/GraphCore.cs +++ b/VPet-Simulator.Core/Graph/GraphCore.cs @@ -173,7 +173,7 @@ namespace VPet_Simulator.Core return list; //} } - return null;// FindGraph(GraphType.Default, mode); + return new List();// FindGraph(GraphType.Default, mode); } public Config GraphConfig; diff --git a/VPet-Simulator.Windows.Interface/GameSave_VPet.cs b/VPet-Simulator.Windows.Interface/GameSave_VPet.cs index c60e639..7ea48d7 100644 --- a/VPet-Simulator.Windows.Interface/GameSave_VPet.cs +++ b/VPet-Simulator.Windows.Interface/GameSave_VPet.cs @@ -16,8 +16,10 @@ public class GameSave_VPet : IGameSave /// [Line(name: "name")] public string Name { get; set; } - public string HostName { get; set; } - + /// + /// 主人称呼 + /// + public string HostName { get; set; } = ""; /// /// 金钱 /// diff --git a/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml b/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml index 699ec20..707ad65 100644 --- a/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml +++ b/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml @@ -5,7 +5,7 @@ xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF" xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" Background="{x:Null}" WindowStyle="None" SizeToContent="Height" xmlns:local="clr-namespace:VPet_Simulator.Windows" mc:Ignorable="d" ShowInTaskbar="False" - ResizeMode="NoResize" Title="MWFriends" Width="250" pu:WindowXCaption.Height="0" Closed="WindowX_Closed"> + ResizeMode="NoResize" Title="MWFriends" pu:WindowXCaption.Height="0" Closed="WindowX_Closed"> diff --git a/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml.cs b/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml.cs index 597081f..00e3a9d 100644 --- a/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml.cs +++ b/VPet-Simulator.Windows/MutiPlayer/MPFriends.xaml.cs @@ -61,7 +61,7 @@ public partial class MPFriends : WindowX, IMPFriend { InitializeComponent(); - //MGrid.Height = 500 * mf.Set.ZoomLevel; + MGrid.Height = 500 * mw.Set.ZoomLevel; MGrid.Width = 500 * mw.Set.ZoomLevel; double L = 0, T = 0; if (mw.Set.StartRecordLast)