NOISSUE add shader pack page for instances

Only theme with an icon is simple colored, rest is TBD
This commit is contained in:
Petr Mrázek
2021-09-23 21:26:56 +02:00
parent a5956194df
commit 0f3cf0595b
7 changed files with 128 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#pragma once
#include "ModFolderPage.h"
#include "ui_ModFolderPage.h"
class ShaderPackPage : public ModFolderPage
{
Q_OBJECT
public:
explicit ShaderPackPage(MinecraftInstance *instance, QWidget *parent = 0)
: ModFolderPage(instance, instance->shaderPackList(), "shaderpacks",
"shaderpacks", tr("Shader packs"), "Resource-packs", parent)
{
ui->actionView_configs->setVisible(false);
}
virtual ~ShaderPackPage() {}
virtual bool shouldDisplay() const override
{
return true;
}
};