mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复跳舞为0时会直接开始跳舞的错误
This commit is contained in:
parent
3b4e8d3f2f
commit
e93177b688
@ -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>
|
||||
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user