2014-06-08 19:26:48 +00:00
|
|
|
#pragma once
|
|
|
|
#include "ModFolderPage.h"
|
|
|
|
|
|
|
|
class ResourcePackPage : public ModFolderPage
|
|
|
|
{
|
|
|
|
public:
|
2015-01-27 21:31:07 +00:00
|
|
|
explicit ResourcePackPage(MinecraftInstance *instance, QWidget *parent = 0)
|
2014-07-12 21:02:52 +00:00
|
|
|
: ModFolderPage(instance, instance->resourcePackList(), "resourcepacks",
|
|
|
|
"resourcepacks", tr("Resource packs"), "Resource-packs", parent)
|
2014-06-08 19:26:48 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-07-12 15:58:23 +00:00
|
|
|
virtual ~ResourcePackPage() {}
|
|
|
|
virtual bool shouldDisplay() const override
|
2014-06-08 19:26:48 +00:00
|
|
|
{
|
|
|
|
return !m_inst->traits().contains("no-texturepacks") &&
|
|
|
|
!m_inst->traits().contains("texturepacks");
|
|
|
|
}
|
|
|
|
};
|