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