void Subtitles::logic(unsigned long id) { setTextByID(id); visible_timer.tick(); if (current_text.empty()) { visible = false; return; } else { visible = true; } updateLabelAndBackground(); }
void Subtitles::logic(unsigned long id) { if (!SUBTITLES) return; setTextByID(id); if (visible_ticks > 0) visible_ticks--; if (current_text.empty()) { visible = false; return; } else { visible = true; } updateLabelAndBackground(); }