2019-10-22 22:14:37 +00:00
|
|
|
#pragma once
|
2019-11-02 00:12:00 +00:00
|
|
|
#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;
|
2019-10-27 03:36:45 +00:00
|
|
|
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();
|
2019-11-08 16:41:04 +00:00
|
|
|
void selectNsp(int selectedIndex);
|
2019-10-22 22:14:37 +00:00
|
|
|
};
|
|
|
|
}
|