mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
|
#pragma once
|
||
|
|
||
|
#include "views/gamelist/BasicGameListView.h"
|
||
|
#include "components/ScrollableContainer.h"
|
||
|
#include "components/RatingComponent.h"
|
||
|
#include "components/DateTimeComponent.h"
|
||
|
|
||
|
class DetailedGameListView : public BasicGameListView
|
||
|
{
|
||
|
public:
|
||
|
DetailedGameListView(Window* window, FileData* root);
|
||
|
|
||
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
||
|
|
||
|
virtual const char* getName() const override { return "detailed"; }
|
||
|
|
||
|
virtual void launch(FileData* game) override;
|
||
|
|
||
|
private:
|
||
|
void updateInfoPanel();
|
||
|
|
||
|
void initMDLabels();
|
||
|
void initMDValues();
|
||
|
|
||
|
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;
|
||
|
};
|