更新逻辑

This commit is contained in:
ZouJin 2023-01-11 21:44:16 +08:00
parent 279c15e34c
commit 7c03286e37
4 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,7 @@
mc:Ignorable="d" d:DesignHeight="250" d:DesignWidth="250">
<Viewbox>
<Grid x:Name="MainGrid" Width="500" Height="500" MouseLeftButtonDown="MainGrid_MouseLeftButtonDown"
MouseLeftButtonUp="MainGrid_MouseLeftButtonUp">
MouseLeftButtonUp="MainGrid_MouseLeftButtonUp" MouseRightButtonDown="MainGrid_MouseRightButtonDown">
<Border x:Name="PetGrid" VerticalAlignment="Bottom" />
<Border x:Name="PetGrid2" VerticalAlignment="Bottom" />
<Grid x:Name="UIGrid">

View File

@ -121,5 +121,10 @@ namespace VPet_Simulator.Core
if (Math.Abs(x) + Math.Abs(y) > 10)
rasetype = 0;
}
private void MainGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
ToolBar.Show();
}
}
}

View File

@ -49,6 +49,7 @@ namespace VPet_Simulator.Windows
public void ShowSetting()
{
mw.Topmost = false;
mw.winSetting.Show();
}

View File

@ -27,8 +27,7 @@ namespace VPet_Simulator.Windows
private bool AllowChange = false;
public winGameSetting(MainWindow mw)
{
this.mw = mw;
mw.Topmost = false;
this.mw = mw;
InitializeComponent();
TopMostBox.IsChecked = mw.Set.TopMost;
if (mw.Set.IsFullScreen)