mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
支持更多自动保存频率
This commit is contained in:
parent
5dce5ccf2e
commit
0dc1de0143
@ -284,10 +284,8 @@ namespace VPet_Simulator.Core
|
|||||||
var t1 = FL?.Run(FoodGrid.Front);
|
var t1 = FL?.Run(FoodGrid.Front);
|
||||||
var t2 = BL?.Run(FoodGrid.Back);
|
var t2 = BL?.Run(FoodGrid.Back);
|
||||||
FoodGrid.Food.Source = image;
|
FoodGrid.Food.Source = image;
|
||||||
if (t1 != null)
|
t1?.Start();
|
||||||
t1.Start();
|
t2?.Start();
|
||||||
if (t2 != null)
|
|
||||||
t2.Start();
|
|
||||||
Task.Run(() => Animations[0].Run(FoodGrid.Food, EndAction));
|
Task.Run(() => Animations[0].Run(FoodGrid.Food, EndAction));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int AutoSaveInterval
|
public int AutoSaveInterval
|
||||||
{
|
{
|
||||||
get => Math.Max(GetInt("autosave", 20), 0);
|
get => Math.Max(GetInt("autosave", 10), -1);
|
||||||
set => SetInt("autosave", value);
|
set => SetInt("autosave", value);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -143,7 +143,7 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int BackupSaveMaxNum
|
public int BackupSaveMaxNum
|
||||||
{
|
{
|
||||||
get => Math.Max(GetInt("bakupsave", 20), 1);
|
get => Math.Max(GetInt("bakupsave", 30), 1);
|
||||||
set => SetInt("bakupsave", value);
|
set => SetInt("bakupsave", value);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -239,6 +239,11 @@
|
|||||||
<system:Int32>-1</system:Int32>
|
<system:Int32>-1</system:Int32>
|
||||||
</ComboBoxItem.Tag>
|
</ComboBoxItem.Tag>
|
||||||
</ComboBoxItem>
|
</ComboBoxItem>
|
||||||
|
<ComboBoxItem Content="{ll:Str 每2分钟一次}">
|
||||||
|
<ComboBoxItem.Tag>
|
||||||
|
<system:Int32>2</system:Int32>
|
||||||
|
</ComboBoxItem.Tag>
|
||||||
|
</ComboBoxItem>
|
||||||
<ComboBoxItem Content="{ll:Str 每5分钟一次}">
|
<ComboBoxItem Content="{ll:Str 每5分钟一次}">
|
||||||
<ComboBoxItem.Tag>
|
<ComboBoxItem.Tag>
|
||||||
<system:Int32>5</system:Int32>
|
<system:Int32>5</system:Int32>
|
||||||
|
Loading…
Reference in New Issue
Block a user