Make the post shader list more editable

This commit is contained in:
Henrik Rydgård
2022-12-05 17:04:16 +01:00
parent 82680633e7
commit aed5d76fbc
8 changed files with 135 additions and 67 deletions
+21
View File
@@ -19,6 +19,8 @@
#include "Common/UI/View.h"
#include "Common/UI/ViewGroup.h"
#include "GPU/Common/PostShader.h"
#include "MiscScreens.h"
class DisplayLayoutScreen : public UIDialogScreenWithGameBackground {
@@ -45,4 +47,23 @@ private:
UI::ChoiceStrip *mode_ = nullptr;
UI::Choice *postProcChoice_ = nullptr;
std::string shaderNames_[256];
std::vector<bool> settingsVisible_;
};
class PostProcScreen : public ListPopupScreen {
public:
PostProcScreen(const std::string &title, int id, bool showStereoShaders)
: ListPopupScreen(title), id_(id), showStereoShaders_(showStereoShaders) { }
void CreateViews() override;
const char *tag() const override { return "PostProc"; }
private:
void OnCompleted(DialogResult result) override;
bool ShowButtons() const override { return true; }
std::vector<ShaderInfo> shaders_;
int id_;
bool showStereoShaders_;
std::vector<int> indexTranslation_;
};