2016-12-04 23:47:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "views/gamelist/BasicGameListView.h"
|
|
|
|
#include "components/ScrollableContainer.h"
|
|
|
|
#include "components/RatingComponent.h"
|
|
|
|
#include "components/DateTimeComponent.h"
|
|
|
|
#include "components/VideoComponent.h"
|
|
|
|
|
|
|
|
class VideoGameListView : public BasicGameListView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VideoGameListView(Window* window, FileData* root);
|
|
|
|
virtual ~VideoGameListView();
|
|
|
|
|
2017-04-04 02:24:52 +00:00
|
|
|
virtual void onShow() override;
|
|
|
|
|
2016-12-04 23:47:34 +00:00
|
|
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
|
|
|
|
|
|
|
virtual const char* getName() const override { return "video"; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void launch(FileData* game) override;
|
|
|
|
|
|
|
|
virtual void update(int deltaTime) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void updateInfoPanel();
|
|
|
|
|
|
|
|
void initMDLabels();
|
|
|
|
void initMDValues();
|
|
|
|
|
|
|
|
ImageComponent mMarquee;
|
|
|
|
VideoComponent mVideo;
|
|
|
|
ImageComponent mImage;
|
|
|
|
|
|
|
|
TextComponent mLblRating, mLblReleaseDate, mLblDeveloper, mLblPublisher, mLblGenre, mLblPlayers, mLblLastPlayed, mLblPlayCount;
|
|
|
|
|
|
|
|
RatingComponent mRating;
|
|
|
|
DateTimeComponent mReleaseDate;
|
|
|
|
TextComponent mDeveloper;
|
|
|
|
TextComponent mPublisher;
|
|
|
|
TextComponent mGenre;
|
|
|
|
TextComponent mPlayers;
|
|
|
|
DateTimeComponent mLastPlayed;
|
|
|
|
TextComponent mPlayCount;
|
|
|
|
|
|
|
|
std::vector<TextComponent*> getMDLabels();
|
|
|
|
std::vector<GuiComponent*> getMDValues();
|
|
|
|
|
|
|
|
ScrollableContainer mDescContainer;
|
|
|
|
TextComponent mDescription;
|
|
|
|
|
|
|
|
bool mVideoPlaying;
|
|
|
|
|
|
|
|
};
|