Awoo-Installer/include/ui/sdInstPage.hpp

31 lines
1 KiB
C++
Raw Normal View History

2019-10-22 22:14:37 +00:00
#pragma once
#include <filesystem>
2019-10-22 22:14:37 +00:00
#include <pu/Plutonium>
using namespace pu::ui::elm;
namespace inst::ui {
2019-11-30 16:12:45 +00:00
class sdInstPage : public pu::ui::Layout
2019-10-22 22:14:37 +00:00
{
public:
2019-11-30 16:12:45 +00:00
sdInstPage();
PU_SMART_CTOR(sdInstPage)
2019-11-22 17:17:12 +00:00
pu::ui::elm::Menu::Ref menu;
2019-10-22 22:14:37 +00:00
void startInstall();
void onInput(u64 Down, u64 Up, u64 Held, pu::ui::Touch Pos);
TextBlock::Ref pageInfoText;
2019-11-22 17:17:12 +00:00
void drawMenuItems(bool clearItems, std::filesystem::path ourPath);
2019-10-22 22:14:37 +00:00
private:
2019-11-30 16:12:45 +00:00
std::vector<std::filesystem::path> ourDirectories;
std::vector<std::filesystem::path> ourFiles;
std::vector<std::filesystem::path> selectedTitles;
std::filesystem::path currentDir;
TextBlock::Ref butText;
Rectangle::Ref topRect;
Rectangle::Ref infoRect;
Rectangle::Ref botRect;
Image::Ref titleImage;
2019-11-14 01:23:30 +00:00
TextBlock::Ref appVersionText;
2019-11-22 17:17:12 +00:00
void followDirectory();
void selectNsp(int selectedIndex);
2019-10-22 22:14:37 +00:00
};
}