mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-08 16:59:59 +01:00
just a 'next video' button for media player.
This commit is contained in:
@@ -990,6 +990,18 @@ void MediaController::Render()
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
bool next = false;
|
||||
if (mp_ && ImGui::Selectable(ICON_FA_CHEVRON_RIGHT, &next, ImGuiSelectableFlags_None, ImVec2(15,0))) {
|
||||
|
||||
auto mpit = std::find(MediaPlayer::begin(),MediaPlayer::end(), mp_ );
|
||||
mpit++;
|
||||
if (mpit == MediaPlayer::end()) {
|
||||
mpit = MediaPlayer::begin();
|
||||
}
|
||||
setMediaPlayer(*mpit);
|
||||
|
||||
}
|
||||
|
||||
ImGui::EndMenuBar();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user