summaryrefslogtreecommitdiffstats
path: root/application/pages/instance/TexturePackPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'application/pages/instance/TexturePackPage.h')
-rw-r--r--application/pages/instance/TexturePackPage.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/application/pages/instance/TexturePackPage.h b/application/pages/instance/TexturePackPage.h
new file mode 100644
index 00000000..b03614f0
--- /dev/null
+++ b/application/pages/instance/TexturePackPage.h
@@ -0,0 +1,19 @@
+#pragma once
+#include "ModFolderPage.h"
+#include "ui_ModFolderPage.h"
+
+class TexturePackPage : public ModFolderPage
+{
+public:
+ explicit TexturePackPage(MinecraftInstance *instance, QWidget *parent = 0)
+ : ModFolderPage(instance, instance->texturePackList(), "texturepacks", "resourcepacks",
+ tr("Texture packs"), "Texture-packs", parent)
+ {
+ ui->configFolderBtn->setHidden(true);
+ }
+ virtual ~TexturePackPage() {}
+ virtual bool shouldDisplay() const override
+ {
+ return m_inst->traits().contains("texturepacks");
+ }
+};