summaryrefslogtreecommitdiffstats
path: root/application/pages/ResourcePackPage.h
blob: d79590df4cd6ee98434a0580c9a817aa2d7f440a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "ModFolderPage.h"

class ResourcePackPage : public ModFolderPage
{
public:
	explicit ResourcePackPage(MinecraftInstance *instance, QWidget *parent = 0)
		: ModFolderPage(instance, instance->resourcePackList(), "resourcepacks",
						"resourcepacks", tr("Resource packs"), "Resource-packs", parent)
	{
	}

	virtual ~ResourcePackPage() {}
	virtual bool shouldDisplay() const override
	{
		return !m_inst->traits().contains("no-texturepacks") &&
			   !m_inst->traits().contains("texturepacks");
	}
};