Skip to content

Commit

Permalink
Properly format the chart editor playbar
Browse files Browse the repository at this point in the history
Minor change, but this makes the song time in the chart editor follow a proper time format.
  • Loading branch information
afreetoplaynoob authored Oct 2, 2024
1 parent f61789e commit 79eb7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/funkin/ui/debug/charting/ChartEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 songPosMinutes:String = Std.string(Math.floor((Math.abs(songPos) / 1000) / 60)).lpad('0', 2);
if (songPos < 0) songPosMinutes = '-' + songPosMinutes;
var songPosString:String = '${songPosMinutes}:${songPosSeconds}:${songPosMilliseconds}';
var songPosString:String = '${songPosMinutes}:${songPosSeconds}.${songPosMilliseconds}';

if (playbarSongPos.value != songPosString) playbarSongPos.value = songPosString;

Expand Down

0 comments on commit 79eb7d6

Please sign in to comment.