From 540b76009ded9a27d8f66b2778da64e5477269b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AB=E5=9F=8Evia?= Date: Thu, 28 Mar 2024 00:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Display/basestyle.xaml | 5 +- .../ResourceStyle.xaml | 35 +++- VPet-Simulator.Windows/App.xaml | 13 ++ VPet-Simulator.Windows/MainWindow.cs | 2 +- .../MutiPlayer/MPUserControl.xaml | 81 ++++++-- .../MutiPlayer/winMutiPlayer.xaml | 174 ++++++++++++----- .../MutiPlayer/winMutiPlayer.xaml.cs | 4 +- .../WinDesign/winBetterBuy.xaml | 18 +- .../WinDesign/winGameSetting.xaml | 25 ++- .../WinDesign/winInputBox.xaml | 15 +- .../WinDesign/winInputBox.xaml.cs | 3 +- .../WinDesign/winWorkMenu.xaml | 184 ++++++++++++------ .../WinDesign/winWorkMenu.xaml.cs | 184 +++++++++++------- 13 files changed, 515 insertions(+), 228 deletions(-) diff --git a/VPet-Simulator.Core/Display/basestyle.xaml b/VPet-Simulator.Core/Display/basestyle.xaml index e087bd9..a585212 100644 --- a/VPet-Simulator.Core/Display/basestyle.xaml +++ b/VPet-Simulator.Core/Display/basestyle.xaml @@ -29,6 +29,7 @@ + #AACC6C @@ -53,6 +54,7 @@ + #FFCC4C @@ -77,6 +79,7 @@ + #FF4C4C @@ -236,7 +239,7 @@ - + diff --git a/VPet-Simulator.Windows.Interface/ResourceStyle.xaml b/VPet-Simulator.Windows.Interface/ResourceStyle.xaml index 8a3c64c..f14b5eb 100644 --- a/VPet-Simulator.Windows.Interface/ResourceStyle.xaml +++ b/VPet-Simulator.Windows.Interface/ResourceStyle.xaml @@ -12,7 +12,10 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 6bab777..74f9dfa 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -482,7 +482,7 @@ namespace VPet_Simulator.Windows } else { - winWorkMenu.tbc.SelectedIndex = (int)type; + winWorkMenu.LsbCategory.SelectedIndex = (int)type; winWorkMenu.Focus(); winWorkMenu.Topmost = true; } diff --git a/VPet-Simulator.Windows/MutiPlayer/MPUserControl.xaml b/VPet-Simulator.Windows/MutiPlayer/MPUserControl.xaml index c575f6f..1f4cc62 100644 --- a/VPet-Simulator.Windows/MutiPlayer/MPUserControl.xaml +++ b/VPet-Simulator.Windows/MutiPlayer/MPUserControl.xaml @@ -1,26 +1,67 @@ - + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="clr-namespace:VPet_Simulator.Windows" + mc:Ignorable="d" + Margin="5" + Background="{DynamicResource SecondaryTrans4}" + CornerRadius="5"> - - - - - : - - : - - - + + diff --git a/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml b/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml index e9573be..82abf63 100644 --- a/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml +++ b/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml @@ -1,51 +1,123 @@ - - - - - - - - - - : - : - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + ID: + + + + + + + + + + + + + + + + + diff --git a/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml.cs b/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml.cs index bf4a2c4..4c4d641 100644 --- a/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml.cs +++ b/VPet-Simulator.Windows/MutiPlayer/winMutiPlayer.xaml.cs @@ -31,7 +31,7 @@ namespace VPet_Simulator.Windows; /// /// winMutiPlayer.xaml 的交互逻辑 /// -public partial class winMutiPlayer : Window, IMPWindows +public partial class winMutiPlayer : WindowX, IMPWindows { public Lobby lb; MainWindow mw; @@ -147,7 +147,7 @@ public partial class winMutiPlayer : Window, IMPWindows hostName.Text = lb.Owner.Name; HostID = lb.Owner.Id.Value; lbLid.Text = lb.Id.Value.ToString("x"); - HostHead.Source = ConvertToImageSource(img.Value); + HostHead.ImageSource = ConvertToImageSource(img.Value); }); SteamNetworking.AllowP2PPacketRelay(true); diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml index edb6122..033ea96 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml @@ -62,27 +62,27 @@ + ToggleBrush="{DynamicResource DARKPrimaryText}" pu:WindowX.IsDragMoveArea="False" + BoxWidth="24" Loaded="Switch_Loaded" /> diff --git a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml index 5fbc503..950ed4f 100644 --- a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml +++ b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml @@ -16,19 +16,24 @@ --> - + - - - + + + + + + + + + + - + + - +