2014-06-08 20:26:48 +01:00
|
|
|
#pragma once
|
|
|
|
#include "ModFolderPage.h"
|
2016-11-26 13:59:27 +00:00
|
|
|
#include "ui_ModFolderPage.h"
|
2014-06-08 20:26:48 +01:00
|
|
|
|
|
|
|
class TexturePackPage : public ModFolderPage
|
|
|
|
{
|
|
|
|
public:
|
2015-01-27 21:31:07 +00:00
|
|
|
explicit TexturePackPage(MinecraftInstance *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
|
|
|
{
|
2016-11-26 13:59:27 +00:00
|
|
|
ui->configFolderBtn->setHidden(true);
|
2014-06-08 20:26:48 +01:00
|
|
|
}
|
2014-07-12 16:58:23 +01:00
|
|
|
virtual ~TexturePackPage() {}
|
|
|
|
virtual bool shouldDisplay() const override
|
2014-06-08 20:26:48 +01:00
|
|
|
{
|
|
|
|
return m_inst->traits().contains("texturepacks");
|
|
|
|
}
|
|
|
|
};
|