mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
更好买优化
This commit is contained in:
parent
18d837b23f
commit
cf6e48ed6a
@ -354,15 +354,15 @@ namespace VPet_Simulator.Windows
|
||||
notifyIcon.ShowBalloonTip(10, "你好" + (IsSteamUser ? Steamworks.SteamClient.Name : Environment.UserName),
|
||||
"欢迎使用虚拟桌宠模拟器!\n如果遇到桌宠爬不见了,可以在我这里设置居中或退出桌宠", ToolTipIcon.Info);
|
||||
Thread.Sleep(2000);
|
||||
Main.Say("欢迎使用虚拟桌宠模拟器\n这是个早期的测试版,若有bug请多多包涵\n欢迎在菜单栏-管理-反馈中提交bug或建议", GraphCore.Helper.SayType.Shining);
|
||||
Main.Say("欢迎使用虚拟桌宠模拟器\n这是个中期的测试版,若有bug请多多包涵\n欢迎加群虚拟主播模拟器430081239或在菜单栏-管理-反馈中提交bug或建议", GraphCore.Helper.SayType.Shining);
|
||||
});
|
||||
}
|
||||
else if (Set["SingleTips"].GetDateTime("update") <= new DateTime(2023, 6, 8))
|
||||
{
|
||||
// if (Set["SingleTips"].GetDateTime("update") <= new DateTime(2023, 3, 4))
|
||||
// notifyIcon.ShowBalloonTip(10, "更新通知 05/26",
|
||||
//"支持外置消息窗/时钟等窗口\n新增语音插件,请在设置中MOD管理开启", ToolTipIcon.Info);
|
||||
// else
|
||||
if (Set["SingleTips"].GetDateTime("update") > new DateTime(2023, 6, 8))
|
||||
notifyIcon.ShowBalloonTip(10, "更新通知 06/09",
|
||||
"修复频繁喝水的bug,更好买新增查看详细信息\n修复干完活后动画停止播放的错误", ToolTipIcon.Info);
|
||||
else
|
||||
notifyIcon.ShowBalloonTip(10, "更新通知 06/08",
|
||||
"现已支持数据计算,桌宠现在需要进行吃饭喝水等\n前往设置调整速率和关闭数据计算\n若有游戏数据设计上的反馈,欢迎加群虚拟主播模拟器430081239或使用反馈功能反馈", ToolTipIcon.Info);
|
||||
Set["SingleTips"].SetDateTime("update", DateTime.Now);
|
||||
|
BIN
VPet-Simulator.Windows/Res/BetterBuy.png
Normal file
BIN
VPet-Simulator.Windows/Res/BetterBuy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
@ -251,6 +251,7 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Res\TopLogo2019.PNG" />
|
||||
<Resource Include="Res\BetterBuy.png" />
|
||||
<Content Include="steam_api.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
@ -6,7 +6,7 @@
|
||||
xmlns:pu="https://opensource.panuon.com/wpf-ui" xmlns:local="clr-namespace:VPet_Simulator.Windows"
|
||||
mc:Ignorable="d" Title="更好买" Height="450" Width="800" FontSize="14" WindowStartupLocation="CenterScreen"
|
||||
Background="#E0F6FF" pu:WindowXCaption.Height="45" pu:WindowXCaption.Background="{DynamicResource DARKPrimary}"
|
||||
pu:WindowXCaption.Foreground="#FFFFFF" pu:WindowXCaption.Buttons="Close"
|
||||
pu:WindowXCaption.Foreground="#FFFFFF" pu:WindowXCaption.Buttons="Close" Icon="/Res/BetterBuy.png"
|
||||
pu:WindowXCaption.ShadowColor="{DynamicResource ShadowColor}" Closing="WindowX_Closing">
|
||||
<pu:WindowXCaption.CloseButtonStyle>
|
||||
<Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:WindowXCaption.CloseButtonStyleKey}}">
|
||||
@ -25,9 +25,11 @@
|
||||
<DataTemplate>
|
||||
<Grid Margin="10,0">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image x:Name="ImageWHY" Width="28" Height="28" Source="/Res/BetterBuy.png"
|
||||
VerticalAlignment="Center" Margin="30,0,0,0" />
|
||||
<Button Style="{DynamicResource TextButtonStyle}" Foreground="{DynamicResource DARKPrimaryText}"
|
||||
Content="更好买" VerticalAlignment="Center" FontSize="20" Click="BtnTitle_Click"
|
||||
pu:WindowX.IsDragMoveArea="False" Margin="15,0,0,0"/>
|
||||
pu:WindowX.IsDragMoveArea="False" Margin="10,0,0,0"/>
|
||||
<Grid Grid.Column="1" Margin="15,0,0,0" Width="200" pu:WindowX.IsDragMoveArea="False">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
|
@ -168,11 +168,10 @@ namespace VPet_Simulator.Windows
|
||||
mw.Core.Save.EatFood(item);
|
||||
mw.Core.Save.Money -= item.Price;
|
||||
}
|
||||
this.Hide();
|
||||
TryClose();
|
||||
IRunImage eat = (IRunImage)mw.Core.Graph.FindGraph(GraphType.Eat, GameSave.ModeType.Nomal);
|
||||
var b = mw.Main.FindDisplayBorder(eat);
|
||||
eat.Run(b, item.ImageSource, mw.Main.DisplayToNomal);
|
||||
|
||||
}
|
||||
|
||||
private void BtnSearch_Click(object sender, RoutedEventArgs e)
|
||||
@ -206,13 +205,16 @@ namespace VPet_Simulator.Windows
|
||||
mw.Set["betterbuy"].SetBool("lastasc", asc);
|
||||
OrderItemSource((Food.FoodType)LsbCategory.SelectedIndex, order, asc, _searchTextBox?.Text);
|
||||
}
|
||||
|
||||
public void TryClose()
|
||||
{
|
||||
IcCommodity.ItemsSource = null;
|
||||
mw.Topmost = mw.Set.TopMost;
|
||||
Hide();
|
||||
}
|
||||
private void WindowX_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
mw.Topmost = mw.Set.TopMost;
|
||||
TryClose();
|
||||
e.Cancel = true;
|
||||
IcCommodity.ItemsSource = null;
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user