1
0
Fork 0
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:
afreetoplaynoob 2024-10-02 08:32:21 -03:00 committed by GitHub
parent f61789e453
commit 79eb7d633c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;