Add tick count to status bar
This commit is contained in:
parent
a3c33aa31e
commit
8ceefbe4e5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue