truncate float refactor
This commit is contained in:
@ -191,11 +191,11 @@ class Judgement extends Option
|
||||
Conductor.recalculateTimings();
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Safe Frames: " + Conductor.safeFrames + " - Description - " + description +
|
||||
" - SIK: " + OptionsMenu.truncateFloat(45 * Conductor.timeScale, 0) +
|
||||
"ms GD: " + OptionsMenu.truncateFloat(90 * Conductor.timeScale, 0) +
|
||||
"ms BD: " + OptionsMenu.truncateFloat(135 * Conductor.timeScale, 0) +
|
||||
"ms SHT: " + OptionsMenu.truncateFloat(155 * Conductor.timeScale, 0) +
|
||||
"ms TOTAL: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset,0) + "ms";
|
||||
" - SIK: " + HelperFunctions.truncateFloat(45 * Conductor.timeScale, 0) +
|
||||
"ms GD: " + HelperFunctions.truncateFloat(90 * Conductor.timeScale, 0) +
|
||||
"ms BD: " + HelperFunctions.truncateFloat(135 * Conductor.timeScale, 0) +
|
||||
"ms SHT: " + HelperFunctions.truncateFloat(155 * Conductor.timeScale, 0) +
|
||||
"ms TOTAL: " + HelperFunctions.truncateFloat(Conductor.safeZoneOffset,0) + "ms";
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -210,11 +210,11 @@ class Judgement extends Option
|
||||
Conductor.recalculateTimings();
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Safe Frames: " + Conductor.safeFrames + " - Description - " + description +
|
||||
" - SIK: " + OptionsMenu.truncateFloat(44 * Conductor.timeScale, 0) +
|
||||
"ms GD: " + OptionsMenu.truncateFloat(45 * Conductor.timeScale, 0) +
|
||||
"ms BD: " + OptionsMenu.truncateFloat(90 * Conductor.timeScale, 0) +
|
||||
"ms SHT: " + OptionsMenu.truncateFloat(135 * Conductor.timeScale, 0) +
|
||||
"ms TOTAL: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset,0) + "ms";
|
||||
" - SIK: " + HelperFunctions.truncateFloat(44 * Conductor.timeScale, 0) +
|
||||
"ms GD: " + HelperFunctions.truncateFloat(45 * Conductor.timeScale, 0) +
|
||||
"ms BD: " + HelperFunctions.truncateFloat(90 * Conductor.timeScale, 0) +
|
||||
"ms SHT: " + HelperFunctions.truncateFloat(135 * Conductor.timeScale, 0) +
|
||||
"ms TOTAL: " + HelperFunctions.truncateFloat(Conductor.safeZoneOffset,0) + "ms";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -312,7 +312,7 @@ class ScrollSpeedOption extends Option
|
||||
if (FlxG.save.data.scrollSpeed > 10)
|
||||
FlxG.save.data.scrollSpeed = 10;
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Scroll Speed: " + OptionsMenu.truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + description;
|
||||
OptionsMenu.versionShit.text = "Current Scroll Speed: " + HelperFunctions.truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + description;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -326,7 +326,7 @@ class ScrollSpeedOption extends Option
|
||||
FlxG.save.data.scrollSpeed = 10;
|
||||
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Scroll Speed: " + OptionsMenu.truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + description;
|
||||
OptionsMenu.versionShit.text = "Current Scroll Speed: " + HelperFunctions.truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + description;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user