2014-06-08 20:26:48 +01:00
|
|
|
#pragma once
|
|
|
|
#include "ModFolderPage.h"
|
|
|
|
|
|
|
|
class TexturePackPage : public ModFolderPage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit TexturePackPage(BaseInstance *instance, QWidget *parent = 0)
|
2014-06-30 01:02:57 +01:00
|
|
|
: ModFolderPage(instance, instance->texturePackList(), "texturepacks", "resourcepacks",
|
2014-06-10 01:05:31 +01:00
|
|
|
tr("Texture packs"), "Texture-packs", parent)
|
2014-06-08 20:26:48 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
virtual ~TexturePackPage() {};
|
|
|
|
virtual bool shouldDisplay() override
|
|
|
|
{
|
|
|
|
return m_inst->traits().contains("texturepacks");
|
|
|
|
}
|
|
|
|
};
|