Add tick count to status bar

This commit is contained in:
Natt Akuma 2025-08-12 23:00:37 +07:00
parent a3c33aa31e
commit 8ceefbe4e5
3 changed files with 8 additions and 0 deletions

View file

@ -2450,6 +2450,10 @@ int DivEngine::getTotalTicks() {
return totalTicks; return totalTicks;
} }
int DivEngine::getTotalTicksR() {
return totalTicksR;
}
bool DivEngine::getRepeatPattern() { bool DivEngine::getRepeatPattern() {
return repeatPattern; return repeatPattern;
} }

View file

@ -994,6 +994,7 @@ class DivEngine {
// get time // get time
int getTotalTicks(); // 1/1000000th of a second int getTotalTicks(); // 1/1000000th of a second
int getTotalTicksR(); // song ticks
int getTotalSeconds(); int getTotalSeconds();
// get repeat pattern // get repeat pattern

View file

@ -4758,6 +4758,7 @@ bool FurnaceGUI::loop() {
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PLAYBACK_STAT]); ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PLAYBACK_STAT]);
if (e->isPlaying() && settings.playbackTime) { if (e->isPlaying() && settings.playbackTime) {
int totalTicks=e->getTotalTicks(); int totalTicks=e->getTotalTicks();
int totalTicksR=e->getTotalTicksR();
int totalSeconds=e->getTotalSeconds(); int totalSeconds=e->getTotalSeconds();
String info; String info;
@ -4785,6 +4786,8 @@ bool FurnaceGUI::loop() {
info+=fmt::sprintf(_("| Row %d/%d "),oldRow,e->curSubSong->patLen); info+=fmt::sprintf(_("| Row %d/%d "),oldRow,e->curSubSong->patLen);
} }
info+=fmt::sprintf(_("| Tick %d "),totalTicksR);
info+=_("| "); info+=_("| ");
if (totalSeconds==0x7fffffff) { if (totalSeconds==0x7fffffff) {