mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复超模自动计算未回正的问题
This commit is contained in:
parent
c23eb52bc2
commit
1936301fa8
@ -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
|
||||
|
@ -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>
|
||||
|
@ -364,6 +364,7 @@ namespace VPet_Simulator.Windows
|
||||
if (f.IsOverLoad())
|
||||
{
|
||||
f.Price = Math.Max((int)f.RealPrice, 1);
|
||||
f.isoverload = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -596,20 +597,25 @@ namespace VPet_Simulator.Windows
|
||||
// }
|
||||
//);
|
||||
Main.ToolBar.AddMenuButton(VPet_Simulator.Core.ToolBar.MenuType.Feed, "吃饭".Translate(), () =>
|
||||
{
|
||||
winBetterBuy.Show(Food.FoodType.Meal);
|
||||
}
|
||||
);
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user