summaryrefslogtreecommitdiffstats
path: root/gui/pages/ResourcePackPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pages/ResourcePackPage.h')
-rw-r--r--gui/pages/ResourcePackPage.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gui/pages/ResourcePackPage.h b/gui/pages/ResourcePackPage.h
new file mode 100644
index 00000000..06367905
--- /dev/null
+++ b/gui/pages/ResourcePackPage.h
@@ -0,0 +1,19 @@
+#pragma once
+#include "ModFolderPage.h"
+
+class ResourcePackPage : public ModFolderPage
+{
+public:
+ explicit ResourcePackPage(BaseInstance *instance, QWidget *parent = 0)
+ : ModFolderPage(instance, instance->resourcePackList(), "resourcepacks", "resourcepacks",
+ tr("Resource packs"), "Resource-packs", parent)
+ {
+ }
+
+ virtual ~ResourcePackPage() {};
+ virtual bool shouldDisplay() override
+ {
+ return !m_inst->traits().contains("no-texturepacks") &&
+ !m_inst->traits().contains("texturepacks");
+ }
+};