mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-17 12:35:38 +00:00
![pjft](/assets/img/avatar_default.png)
- Create from a theme folder - Create by specifying a name - Refactored collection creation to be on-demand rather than on startup
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "GuiComponent.h"
|
|
#include "SystemData.h"
|
|
#include "components/MenuComponent.h"
|
|
#include "CollectionSystemManager.h"
|
|
#include "components/SwitchComponent.h"
|
|
#include "Log.h"
|
|
|
|
|
|
template<typename T>
|
|
class OptionListComponent;
|
|
|
|
|
|
class GuiCollectionSystemsOptions : public GuiComponent
|
|
{
|
|
public:
|
|
GuiCollectionSystemsOptions(Window* window);
|
|
~GuiCollectionSystemsOptions();
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
private:
|
|
void initializeMenu();
|
|
void applySettings();
|
|
void addSystemsToMenu();
|
|
void addEntry(const char* name, unsigned int color, bool add_arrow, const std::function<void()>& func);
|
|
void updateSettings(std::string newAutoSettings, std::string newCustomSettings);
|
|
void createCollection(std::string inName);
|
|
void exitEditMode();
|
|
std::shared_ptr< OptionListComponent<std::string> > autoOptionList;
|
|
std::shared_ptr< OptionListComponent<std::string> > customOptionList;
|
|
std::shared_ptr<SwitchComponent> sortAllSystemsSwitch;
|
|
std::shared_ptr<SwitchComponent> bundleCustomCollections;
|
|
MenuComponent mMenu;
|
|
SystemData* mSystem;
|
|
};
|