From efe355b29a38635fd8459241cd34a81dd646aa02 Mon Sep 17 00:00:00 2001 From: mrdude2478 Date: Sun, 24 Sep 2023 02:37:27 +0100 Subject: [PATCH] Add files via upload --- include/ui/ThemeInstPage.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/ui/ThemeInstPage.hpp diff --git a/include/ui/ThemeInstPage.hpp b/include/ui/ThemeInstPage.hpp new file mode 100644 index 0000000..a893bfe --- /dev/null +++ b/include/ui/ThemeInstPage.hpp @@ -0,0 +1,31 @@ +#pragma once +#include + +using namespace pu::ui::elm; +namespace inst::ui { + class ThemeInstPage : public pu::ui::Layout + { + public: + ThemeInstPage(); + PU_SMART_CTOR(ThemeInstPage) + void startNetwork(); + void onInput(u64 Down, u64 Up, u64 Held, pu::ui::TouchPoint touch_pos); + TextBlock::Ref pageInfoText; + private: + std::vector ourUrls; + std::vector modded; + std::vector selectedUrls; + std::vector alternativeNames; + TextBlock::Ref butText; + Rectangle::Ref topRect; + Rectangle::Ref infoRect; + Rectangle::Ref botRect; + Image::Ref titleImage; + TextBlock::Ref appVersionText; + pu::ui::elm::Menu::Ref menu; + Image::Ref infoImage; + void drawMenuItems(bool clearItems); + void drawMenuItems_withext(bool clearItems); + void selectTitle(int selectedIndex); + }; +} \ No newline at end of file