From 23d62f966fd25eaa07cbac087d25603b941a4eed Mon Sep 17 00:00:00 2001 From: Huntereb Date: Sun, 24 Nov 2019 21:48:17 -0500 Subject: [PATCH] Cute icon for net installs page --- include/ui/netInstPage.hpp | 1 + romfs/connection-waiting.png | Bin 0 -> 4558 bytes source/ui/netInstPage.cpp | 6 +++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 romfs/connection-waiting.png diff --git a/include/ui/netInstPage.hpp b/include/ui/netInstPage.hpp index e0d7548..913568d 100755 --- a/include/ui/netInstPage.hpp +++ b/include/ui/netInstPage.hpp @@ -23,6 +23,7 @@ namespace inst::ui { Image::Ref titleImage; TextBlock::Ref appVersionText; pu::ui::elm::Menu::Ref menu; + Image::Ref infoImage; void drawMenuItems(bool clearItems); void selectNsp(int selectedIndex); }; diff --git a/romfs/connection-waiting.png b/romfs/connection-waiting.png new file mode 100755 index 0000000000000000000000000000000000000000..82406c4128d52b59d4ba802dbb1a83c7b1187546 GIT binary patch literal 4558 zcmY+I2{=^k`^Sf26q(+MFvgN)RI-M#Qz6D$G1<2!G|4h%Y}sb&Enoa^^{L^+p_`SuVsWM+6=NxRU`O4pZTD7L|Wp|{VCjkV~Qu)&a;wmg-_(l;T+Q~+Q zBL)|QtC*>MrSMH~qKya9Dk3Z_D4YngiV6xO2Aw|;iz8k*V2gG-S`1loA5km$urkUN`iTP$C^aCc8i|?-3F`6=Q7q60RiACz@a)5AgEy8!xcAl1n%1_ z6)p^&Qf%Rk8fvP9^pkdE&&_n(lE%phq!R%KcQu`J&i-*k+{v$i_<#=6I*e_|k3EPU zwf8c$7WO;D-RpCvx@V!_?!gF4Ez1OH}yni0?UU`@!LG`02%aVQ-o<8&fp-P)Mgcva+_t=|YSkxdhd60$hP@)drXGL=uHmS1!< zUdhV-(S7A|cpDOToqrrJsCdiSZ1j+eLoqu|*0t;zR(0|gbUF0z+xD{De+?=lxM&p0 zsA1h9t5Ww%AA&kWt*;b_pCTrVx_RDNrdHD5z7Gtth{_=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Q&A3Bkk=ryVV zPz0-eE5_o#L%d$GfR?6DF-H&0k#beep{up|7jgaBcXXL+`{ISq_Yg)}%8+^AAiPuE zXWwHh(~oVkPO2?JEM#Hp;h{?WDLcG$hRp%ss-3?E05gGK@JOPy2IA76$<&O9u>Mu} zx$U@Z4#hA@!KI)|A4(vpkip8+U&(%uc8pKb#iIPur!2_;OX~5@OW;Mp{L`(Yr&_bAMU%tH0s@W&xpXoUIur0menu = pu::ui::elm::Menu::New(0, 154, 1280, COLOR("#FFFFFF00"), 84, (506 / 84)); this->menu->SetOnFocusColor(COLOR("#00000033")); this->menu->SetScrollbarColor(COLOR("#17090980")); + this->infoImage = Image::New(500, 270, "romfs:/connection-waiting.png"); this->Add(this->topRect); this->Add(this->infoRect); this->Add(this->botRect); @@ -44,6 +45,7 @@ namespace inst::ui { this->Add(this->butText); this->Add(this->pageInfoText); this->Add(this->menu); + this->Add(this->infoImage); } void netInstPage::drawMenuItems(bool clearItems) { @@ -74,10 +76,11 @@ namespace inst::ui { } void netInstPage::startNetwork() { - this->pageInfoText->SetText(""); + this->pageInfoText->SetText("Waiting for a connection..."); this->butText->SetText("\ue0e3 Install Over Internet \ue0e2 Help \ue0e1 Cancel "); this->menu->SetVisible(false); this->menu->ClearItems(); + this->infoImage->SetVisible(true); mainApp->LoadLayout(mainApp->netinstPage); this->ourUrls = netInstStuff::OnSelected(); if (!this->ourUrls.size()) { @@ -119,6 +122,7 @@ namespace inst::ui { this->butText->SetText("\ue0e0 Select File \ue0e3 Select All \ue0ef Install File(s) \ue0e1 Cancel "); this->drawMenuItems(true); } + this->infoImage->SetVisible(false); this->menu->SetVisible(true); return; }