mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00

- Allow quick system swap using left/right shoulder in the grid view - Update the help prompt of the grid view accordingly
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#pragma once
|
|
#ifndef ES_APP_VIEWS_GAME_LIST_BASIC_GAME_LIST_VIEW_H
|
|
#define ES_APP_VIEWS_GAME_LIST_BASIC_GAME_LIST_VIEW_H
|
|
|
|
#include "components/TextListComponent.h"
|
|
#include "views/gamelist/ISimpleGameListView.h"
|
|
|
|
class BasicGameListView : public ISimpleGameListView
|
|
{
|
|
public:
|
|
BasicGameListView(Window* window, FileData* root);
|
|
|
|
// Called when a FileData* is added, has its metadata changed, or is removed
|
|
virtual void onFileChanged(FileData* file, FileChangeType change);
|
|
|
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme);
|
|
|
|
virtual FileData* getCursor() override;
|
|
virtual void setCursor(FileData* file) override;
|
|
|
|
virtual const char* getName() const override { return "basic"; }
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
|
virtual void launch(FileData* game) override;
|
|
|
|
protected:
|
|
virtual std::string getQuickSystemSelectRightButton() override;
|
|
virtual std::string getQuickSystemSelectLeftButton() override;
|
|
virtual void populateList(const std::vector<FileData*>& files) override;
|
|
virtual void remove(FileData* game, bool deleteFile) override;
|
|
virtual void addPlaceholder();
|
|
|
|
TextListComponent<FileData*> mList;
|
|
};
|
|
|
|
#endif // ES_APP_VIEWS_GAME_LIST_BASIC_GAME_LIST_VIEW_H
|