修复超模自动计算未回正的问题

This commit is contained in:
ZouJin 2023-09-03 18:03:22 +08:00
parent c23eb52bc2
commit 1936301fa8
3 changed files with 17 additions and 9 deletions

View File

@ -235,6 +235,8 @@ namespace VPet_Simulator.Core
{
Width = 500;
Height = 500;
VerticalAlignment = VerticalAlignment.Top;
HorizontalAlignment = HorizontalAlignment.Left;
Front = new Image();
Back = new Image();
Food = new Image

View File

@ -149,7 +149,7 @@ namespace VPet_Simulator.Windows.Interface
/// </summary>
[Line(ignoreCase: true)]
public string Image;
private bool? isoverload = null;
public bool? isoverload = null;
/// <summary>
/// 当前物品推荐价格
/// </summary>

View File

@ -364,6 +364,7 @@ namespace VPet_Simulator.Windows
if (f.IsOverLoad())
{
f.Price = Math.Max((int)f.RealPrice, 1);
f.isoverload = false;
}
}
}
@ -598,18 +599,23 @@ namespace VPet_Simulator.Windows
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "吃饭".Translate(), () =>
{
winBetterBuy.Show(Food.FoodType.Meal);
}
);
});
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "喝水".Translate(), () =>
{
winBetterBuy.Show(Food.FoodType.Drink);
}
);
});
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "收藏".Translate(), () =>
{
winBetterBuy.Show(Food.FoodType.Star);
});
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "药品".Translate(), () =>
{
winBetterBuy.Show(Food.FoodType.Drug);
}
);
});
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "礼品".Translate(), () =>
{
winBetterBuy.Show(Food.FoodType.Gift);
});
Main.SetMoveMode(Set.AllowMove, Set.SmartMove, Set.SmartMoveInterval * 1000);
Main.SetLogicInterval((int)(Set.LogicInterval * 1000));
if (Set.MessageBarOutside)