Implement basics of voting ui. Change vote selection code to also inject cover before putting in list. Make sure player sends winning track to highlight on client.
This commit is contained in:
@@ -60,6 +60,7 @@ void WebInterface::loginCompleted()
|
||||
priv_int->loginUI->animateHide(Wt::WAnimation(Wt::WAnimation::AnimationEffect::Fade));
|
||||
priv_int->playerUI->animateShow(Wt::WAnimation(Wt::WAnimation::AnimationEffect::Fade, Wt::WAnimation::TimingFunction::EaseIn, 500));
|
||||
priv_int->playerUI->updateDetailsFromServer(GroovePlayerMgr::getInstance()->currentTrack);
|
||||
priv_int->playerUI->updateVoteableTracksFromServer(GroovePlayerMgr::getInstance()->currentVoteBatch);
|
||||
}
|
||||
|
||||
void WebInterface::playPauseActionFromServer(User userPausing, bool pause)
|
||||
@@ -94,14 +95,14 @@ void WebInterface::voteNextSongFromServer(User userVoting, AudioTrack trackVoted
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
void WebInterface::voteNextPollClosedFromServer()
|
||||
void WebInterface::voteNextPollClosedFromServer(AudioTrack winner)
|
||||
{
|
||||
priv_int->playerUI->updateVotingEnded();
|
||||
priv_int->playerUI->updateVotingEnded(winner);
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
void WebInterface::voteTracksUpdatedFromServer(std::list<AudioTrack> voteableTracks)
|
||||
{
|
||||
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"votechanged");
|
||||
priv_int->playerUI->updateVoteableTracksFromServer(voteableTracks);
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user