From 7639a4b55adc629b304888b6b40e5da3c52975ed Mon Sep 17 00:00:00 2001 From: ZouJin Date: Wed, 28 Dec 2022 18:24:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=AE=BE=E7=BD=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Display/MessageBar.xaml | 2 +- VPet-Simulator.Core/Display/ToolBar.xaml.cs | 2 +- VPet-Simulator.Core/Handle/IController.cs | 5 ++++- VPet-Simulator.Windows/MWController.cs | 6 ++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/VPet-Simulator.Core/Display/MessageBar.xaml b/VPet-Simulator.Core/Display/MessageBar.xaml index 43e6936..2585451 100644 --- a/VPet-Simulator.Core/Display/MessageBar.xaml +++ b/VPet-Simulator.Core/Display/MessageBar.xaml @@ -12,7 +12,7 @@ VerticalAlignment="Bottom" Padding="10" Margin="5" CornerRadius="5"> diff --git a/VPet-Simulator.Core/Display/ToolBar.xaml.cs b/VPet-Simulator.Core/Display/ToolBar.xaml.cs index 22d502c..fc11715 100644 --- a/VPet-Simulator.Core/Display/ToolBar.xaml.cs +++ b/VPet-Simulator.Core/Display/ToolBar.xaml.cs @@ -70,7 +70,7 @@ namespace VPet_Simulator.Core private void MenuSetting_Click(object sender, RoutedEventArgs e) { - + m.Core.Controller.ShowSetting(); } } } diff --git a/VPet-Simulator.Core/Handle/IController.cs b/VPet-Simulator.Core/Handle/IController.cs index 7094fd9..01248d8 100644 --- a/VPet-Simulator.Core/Handle/IController.cs +++ b/VPet-Simulator.Core/Handle/IController.cs @@ -47,6 +47,9 @@ namespace VPet_Simulator.Core /// 缩放比例 /// double ZoomRatio { get; } - + /// + /// 显示设置窗体 + /// + void ShowSetting(); } } diff --git a/VPet-Simulator.Windows/MWController.cs b/VPet-Simulator.Windows/MWController.cs index 45e5dc9..6a032fb 100644 --- a/VPet-Simulator.Windows/MWController.cs +++ b/VPet-Simulator.Windows/MWController.cs @@ -49,6 +49,12 @@ namespace VPet_Simulator.Windows mw.Top += Y * ZoomRatio; }); } + + public void ShowSetting() + {//TODO + throw new NotImplementedException(); + } + public double ZoomRatio => 0.5; } }