mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 03:13:45 +00:00
Properly format the chart editor playbar
Minor change, but this makes the song time in the chart editor follow a proper time format.
This commit is contained in:
parent
f61789e453
commit
79eb7d633c
|
@ -5160,7 +5160,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||||
var songPosSeconds:String = Std.string(Math.floor((Math.abs(songPos) / 1000) % 60)).lpad('0', 2);
|
var songPosSeconds:String = Std.string(Math.floor((Math.abs(songPos) / 1000) % 60)).lpad('0', 2);
|
||||||
var songPosMinutes:String = Std.string(Math.floor((Math.abs(songPos) / 1000) / 60)).lpad('0', 2);
|
var songPosMinutes:String = Std.string(Math.floor((Math.abs(songPos) / 1000) / 60)).lpad('0', 2);
|
||||||
if (songPos < 0) songPosMinutes = '-' + songPosMinutes;
|
if (songPos < 0) songPosMinutes = '-' + songPosMinutes;
|
||||||
var songPosString:String = '${songPosMinutes}:${songPosSeconds}:${songPosMilliseconds}';
|
var songPosString:String = '${songPosMinutes}:${songPosSeconds}.${songPosMilliseconds}';
|
||||||
|
|
||||||
if (playbarSongPos.value != songPosString) playbarSongPos.value = songPosString;
|
if (playbarSongPos.value != songPosString) playbarSongPos.value = songPosString;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue