mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2024-11-26 21:50:26 +00:00
31 lines
No EOL
1 KiB
C++
Executable file
31 lines
No EOL
1 KiB
C++
Executable file
#pragma once
|
|
#include <filesystem>
|
|
#include <pu/Plutonium>
|
|
|
|
using namespace pu::ui::elm;
|
|
namespace inst::ui {
|
|
class sdInstPage : public pu::ui::Layout
|
|
{
|
|
public:
|
|
sdInstPage();
|
|
PU_SMART_CTOR(sdInstPage)
|
|
pu::ui::elm::Menu::Ref menu;
|
|
void startInstall();
|
|
void onInput(u64 Down, u64 Up, u64 Held, pu::ui::Touch Pos);
|
|
TextBlock::Ref pageInfoText;
|
|
void drawMenuItems(bool clearItems, std::filesystem::path ourPath);
|
|
private:
|
|
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;
|
|
TextBlock::Ref appVersionText;
|
|
void followDirectory();
|
|
void selectNsp(int selectedIndex);
|
|
};
|
|
} |