2014-06-09 00:56:48 +05:30
|
|
|
#pragma once
|
|
|
|
#include "ModFolderPage.h"
|
2016-11-26 19:29:27 +05:30
|
|
|
#include "ui_ModFolderPage.h"
|
2014-06-09 00:56:48 +05:30
|
|
|
|
|
|
|
class ResourcePackPage : public ModFolderPage
|
|
|
|
{
|
|
|
|
public:
|
2015-01-28 03:01:07 +05:30
|
|
|
explicit ResourcePackPage(MinecraftInstance *instance, QWidget *parent = 0)
|
2014-07-13 02:32:52 +05:30
|
|
|
: ModFolderPage(instance, instance->resourcePackList(), "resourcepacks",
|
|
|
|
"resourcepacks", tr("Resource packs"), "Resource-packs", parent)
|
2014-06-09 00:56:48 +05:30
|
|
|
{
|
2016-11-26 19:29:27 +05:30
|
|
|
ui->configFolderBtn->setHidden(true);
|
2014-06-09 00:56:48 +05:30
|
|
|
}
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
virtual ~ResourcePackPage() {}
|
|
|
|
virtual bool shouldDisplay() const override
|
2014-06-09 00:56:48 +05:30
|
|
|
{
|
|
|
|
return !m_inst->traits().contains("no-texturepacks") &&
|
|
|
|
!m_inst->traits().contains("texturepacks");
|
|
|
|
}
|
|
|
|
};
|