mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
更新逻辑
This commit is contained in:
parent
279c15e34c
commit
7c03286e37
@ -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">
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ namespace VPet_Simulator.Windows
|
||||
|
||||
public void ShowSetting()
|
||||
{
|
||||
mw.Topmost = false;
|
||||
mw.winSetting.Show();
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user