diff options
author | flow <flowlnlnln@gmail.com> | 2022-12-16 20:26:10 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2023-02-05 17:02:52 -0300 |
commit | c3ea303a3742c886aae9e05d2e5f5fbb497260a1 (patch) | |
tree | a6d0d45d75b3761c8b92194d167b7128352efb09 /launcher/ui/pages/modplatform/flame/FlameResourcePages.h | |
parent | e89a10945c683a1212fa6aa7824173f4f20cdee6 (diff) | |
download | PrismLauncher-c3ea303a3742c886aae9e05d2e5f5fbb497260a1.tar.gz PrismLauncher-c3ea303a3742c886aae9e05d2e5f5fbb497260a1.tar.bz2 PrismLauncher-c3ea303a3742c886aae9e05d2e5f5fbb497260a1.zip |
feat(RD): add resource pack downloader
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/flame/FlameResourcePages.h')
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameResourcePages.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameResourcePages.h b/launcher/ui/pages/modplatform/flame/FlameResourcePages.h index b21a53ad..03cf7795 100644 --- a/launcher/ui/pages/modplatform/flame/FlameResourcePages.h +++ b/launcher/ui/pages/modplatform/flame/FlameResourcePages.h @@ -43,6 +43,7 @@ #include "modplatform/ResourceAPI.h" #include "ui/pages/modplatform/ModPage.h" +#include "ui/pages/modplatform/ResourcePackPage.h" namespace ResourceDownload { @@ -82,4 +83,31 @@ class FlameModPage : public ModPage { void openUrl(const QUrl& url) override; }; +class FlameResourcePackPage : public ResourcePackResourcePage { + Q_OBJECT + + public: + static FlameResourcePackPage* create(ResourcePackDownloadDialog* dialog, BaseInstance& instance) + { + return ResourcePackResourcePage::create<FlameResourcePackPage>(dialog, instance); + } + + FlameResourcePackPage(ResourcePackDownloadDialog* dialog, BaseInstance& instance); + ~FlameResourcePackPage() override = default; + + [[nodiscard]] bool shouldDisplay() const override; + + [[nodiscard]] inline auto displayName() const -> QString override { return Flame::displayName(); } + [[nodiscard]] inline auto icon() const -> QIcon override { return Flame::icon(); } + [[nodiscard]] inline auto id() const -> QString override { return Flame::id(); } + [[nodiscard]] inline auto debugName() const -> QString override { return Flame::debugName(); } + [[nodiscard]] inline auto metaEntryBase() const -> QString override { return Flame::metaEntryBase(); } + + [[nodiscard]] inline auto helpPage() const -> QString override { return ""; } + + bool optedOut(ModPlatform::IndexedVersion& ver) const override; + + void openUrl(const QUrl& url) override; +}; + } // namespace ResourceDownload |