2019-10-17 20:20:40 +00:00
|
|
|
#pragma once
|
|
|
|
#include <pu/Plutonium>
|
|
|
|
|
|
|
|
using namespace pu::ui::elm;
|
|
|
|
namespace inst::ui {
|
|
|
|
class MainPage : public pu::ui::Layout
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MainPage();
|
|
|
|
PU_SMART_CTOR(MainPage)
|
|
|
|
void installMenuItem_Click();
|
|
|
|
void netInstallMenuItem_Click();
|
2019-11-30 03:58:28 +00:00
|
|
|
void usbInstallMenuItem_Click();
|
2019-10-17 20:20:40 +00:00
|
|
|
void sigPatchesMenuItem_Click();
|
2019-10-26 04:38:12 +00:00
|
|
|
void settingsMenuItem_Click();
|
2019-10-17 20:20:40 +00:00
|
|
|
void exitMenuItem_Click();
|
|
|
|
void onInput(u64 Down, u64 Up, u64 Held, pu::ui::Touch Pos);
|
2019-10-27 03:36:45 +00:00
|
|
|
Image::Ref awooImage;
|
2019-10-17 20:20:40 +00:00
|
|
|
private:
|
2019-12-16 01:24:16 +00:00
|
|
|
bool appletThreadFinished;
|
2019-10-27 03:36:45 +00:00
|
|
|
TextBlock::Ref butText;
|
|
|
|
Rectangle::Ref topRect;
|
|
|
|
Rectangle::Ref botRect;
|
|
|
|
Image::Ref titleImage;
|
2019-11-14 01:23:30 +00:00
|
|
|
TextBlock::Ref appVersionText;
|
2019-10-17 20:20:40 +00:00
|
|
|
pu::ui::elm::Menu::Ref optionMenu;
|
|
|
|
pu::ui::elm::MenuItem::Ref installMenuItem;
|
|
|
|
pu::ui::elm::MenuItem::Ref netInstallMenuItem;
|
2019-11-30 03:58:28 +00:00
|
|
|
pu::ui::elm::MenuItem::Ref usbInstallMenuItem;
|
2019-10-17 20:20:40 +00:00
|
|
|
pu::ui::elm::MenuItem::Ref sigPatchesMenuItem;
|
2019-10-26 04:38:12 +00:00
|
|
|
pu::ui::elm::MenuItem::Ref settingsMenuItem;
|
2019-10-17 20:20:40 +00:00
|
|
|
pu::ui::elm::MenuItem::Ref exitMenuItem;
|
2019-10-31 15:42:40 +00:00
|
|
|
Image::Ref eggImage;
|
2019-10-17 20:20:40 +00:00
|
|
|
};
|
|
|
|
}
|