2014-06-08 19:26:48 +00:00
|
|
|
#pragma once
|
|
|
|
#include "ModFolderPage.h"
|
|
|
|
|
|
|
|
class ResourcePackPage : public ModFolderPage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit ResourcePackPage(BaseInstance *instance, QWidget *parent = 0)
|
2014-06-11 17:35:21 +00:00
|
|
|
: ModFolderPage(instance->resourcePackList(), "resourcepacks", "resourcepacks",
|
2014-06-10 00:05:31 +00:00
|
|
|
tr("Resource packs"), "Resource-packs", parent)
|
2014-06-08 19:26:48 +00:00
|
|
|
{
|
|
|
|
m_inst = instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~ResourcePackPage() {};
|
|
|
|
virtual bool shouldDisplay() override
|
|
|
|
{
|
|
|
|
return !m_inst->traits().contains("no-texturepacks") &&
|
|
|
|
!m_inst->traits().contains("texturepacks");
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
BaseInstance *m_inst;
|
|
|
|
};
|