Add tick count to status bar
This commit is contained in:
parent
a3c33aa31e
commit
8ceefbe4e5
|
@ -2450,6 +2450,10 @@ int DivEngine::getTotalTicks() {
|
|||
return totalTicks;
|
||||
}
|
||||
|
||||
int DivEngine::getTotalTicksR() {
|
||||
return totalTicksR;
|
||||
}
|
||||
|
||||
bool DivEngine::getRepeatPattern() {
|
||||
return repeatPattern;
|
||||
}
|
||||
|
|
|
@ -994,6 +994,7 @@ class DivEngine {
|
|||
|
||||
// get time
|
||||
int getTotalTicks(); // 1/1000000th of a second
|
||||
int getTotalTicksR(); // song ticks
|
||||
int getTotalSeconds();
|
||||
|
||||
// get repeat pattern
|
||||
|
|
|
@ -4758,6 +4758,7 @@ bool FurnaceGUI::loop() {
|
|||
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PLAYBACK_STAT]);
|
||||
if (e->isPlaying() && settings.playbackTime) {
|
||||
int totalTicks=e->getTotalTicks();
|
||||
int totalTicksR=e->getTotalTicksR();
|
||||
int totalSeconds=e->getTotalSeconds();
|
||||
|
||||
String info;
|
||||
|
@ -4785,6 +4786,8 @@ bool FurnaceGUI::loop() {
|
|||
info+=fmt::sprintf(_("| Row %d/%d "),oldRow,e->curSubSong->patLen);
|
||||
}
|
||||
|
||||
info+=fmt::sprintf(_("| Tick %d "),totalTicksR);
|
||||
|
||||
info+=_("| ");
|
||||
|
||||
if (totalSeconds==0x7fffffff) {
|
||||
|
|
Loading…
Reference in a new issue