TinWoo/include/ui/ThemeInstPage.hpp

32 lines
916 B
C++
Raw Permalink Normal View History

2023-09-24 02:37:27 +01:00
#pragma once
#include <pu/Plutonium>
using namespace pu::ui::elm;
namespace inst::ui {
class ThemeInstPage : public pu::ui::Layout
{
public:
ThemeInstPage();
PU_SMART_CTOR(ThemeInstPage)
2023-09-28 02:37:58 +01:00
void onInput(u64 Down, u64 Up, u64 Held, pu::ui::TouchPoint touch_pos);
2023-09-24 02:37:27 +01:00
void startNetwork();
2023-09-24 04:57:15 +01:00
static void setInstBarPerc(double ourPercent);
pu::ui::elm::ProgressBar::Ref installBar;
2023-09-24 02:37:27 +01:00
TextBlock::Ref pageInfoText;
private:
std::vector<std::string> ourUrls;
std::vector<std::string> modded;
std::vector<std::string> selectedUrls;
std::vector<std::string> 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 selectTitle(int selectedIndex);
};
}