修复跳舞为0时会直接开始跳舞的错误

This commit is contained in:
ZouJin 2024-02-09 22:00:32 +08:00
parent 3b4e8d3f2f
commit e93177b688
2 changed files with 4 additions and 4 deletions

View File

@ -222,7 +222,7 @@ namespace VPet_Simulator.Windows.Interface
{
get
{
int list = GetInt("savetimes", 100000) + 1 ;
int list = GetInt("savetimes", 100000) + 1;
SetInt("savetimes", list);
return list;
}
@ -419,7 +419,7 @@ namespace VPet_Simulator.Windows.Interface
/// </summary>
public double MusicCatch
{
get => this["gameconfig"].GetDouble("musiccatch", 0.3);
get => Math.Max(this["gameconfig"].GetDouble("musiccatch", 0.3), 0.02);
set => this["gameconfig"].SetDouble("musiccatch", value);
}
/// <summary>
@ -427,7 +427,7 @@ namespace VPet_Simulator.Windows.Interface
/// </summary>
public double MusicMax
{
get => this["gameconfig"].GetDouble("musicmax", 0.70);
get => Math.Max(this["gameconfig"].GetDouble("musicmax", 0.70), 0.02);
set => this["gameconfig"].SetDouble("musicmax", value);
}
/// <summary>

View File

@ -714,7 +714,7 @@
<TextBlock Grid.Row="0" VerticalAlignment="Center" Text="{ll:Str 触发音量}"
ToolTip="{ll:Str 当实时播放音量达到该值时运行音乐动作}" />
<Slider x:Name="VoiceCatchSilder" Grid.Column="2" VerticalAlignment="Center"
IsSnapToTickEnabled="True" LargeChange=".5" Maximum="1" Minimum="0"
IsSnapToTickEnabled="True" LargeChange=".5" Maximum="1" Minimum="0.02"
SmallChange=".02" Style="{DynamicResource StandardSliderStyle}" TickFrequency="0.01"
ToolTip="{ll:Str 当实时播放音量达到该值时运行音乐动作}" ValueChanged="VoiceCatchSilder_ValueChanged"
Value="0.3" />