主界面添加,许多bug修复。祝贺黑盒1如期开始
This commit is contained in:
@@ -34,8 +34,8 @@ public class controllerSettings : MonoBehaviour
|
||||
private bool previousKeyValid = false;
|
||||
|
||||
// slider range
|
||||
private const float NoteSpeedMin = 0.8f;
|
||||
private const float NoteSpeedMax = 1.25f;
|
||||
private const float NoteSpeedMin = 0.5f;
|
||||
private const float NoteSpeedMax = 2f;
|
||||
private const string NoteSpeedPrefKey = "noteSpeedMultiplier";
|
||||
|
||||
// continuous change
|
||||
@@ -441,7 +441,9 @@ public class controllerSettings : MonoBehaviour
|
||||
{
|
||||
if (noteSpeedMultipler_valueText != null)
|
||||
{
|
||||
noteSpeedMultipler_valueText.text = value.ToString("F3");
|
||||
// 将 0.5-2.0 映射为 50%-200% 的百分比显示
|
||||
int percentage = Mathf.RoundToInt(value * 100f);
|
||||
noteSpeedMultipler_valueText.text = $"{percentage}%";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user