mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2025-02-17 04:08:23 +00:00
Check for custom images in app directory
This commit is contained in:
parent
33e9e59f2a
commit
86497d5972
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,8 @@ namespace inst::ui {
|
|||
this->installInfoText->SetColor(COLOR("#FFFFFFFF"));
|
||||
this->installBar = pu::ui::elm::ProgressBar::New(10, 600, 800, 40, 100.0f);
|
||||
this->installBar->SetColor(COLOR("#222222FF"));
|
||||
this->awooImage = Image::New(510, 166, "romfs:/awoos/7d8a05cddfef6da4901b20d2698d5a71.png");
|
||||
if (std::filesystem::exists(inst::config::appDir + "/awoo_inst.png")) this->awooImage = Image::New(410, 190, inst::config::appDir + "/awoo_inst.png");
|
||||
else this->awooImage = Image::New(510, 166, "romfs:/awoos/7d8a05cddfef6da4901b20d2698d5a71.png");
|
||||
this->Add(this->topRect);
|
||||
this->Add(this->infoRect);
|
||||
this->Add(this->titleImage);
|
||||
|
|
|
@ -38,7 +38,8 @@ namespace inst::ui {
|
|||
this->exitMenuItem = pu::ui::elm::MenuItem::New("Exit");
|
||||
this->exitMenuItem->SetColor(COLOR("#FFFFFFFF"));
|
||||
this->exitMenuItem->SetIcon("romfs:/exit-run.png");
|
||||
this->awooImage = Image::New(410, 190, "romfs:/awoos/5bbdbcf9a5625cd307c9e9bc360d78bd.png");
|
||||
if (std::filesystem::exists(inst::config::appDir + "/awoo_main.png")) this->awooImage = Image::New(410, 190, inst::config::appDir + "/awoo_main.png");
|
||||
else this->awooImage = Image::New(410, 190, "romfs:/awoos/5bbdbcf9a5625cd307c9e9bc360d78bd.png");
|
||||
this->eggImage = Image::New(410, 190, "romfs:/awoos/a8cb40e465dadaf9708c9b1896777ce6.png");
|
||||
this->Add(this->topRect);
|
||||
this->Add(this->botRect);
|
||||
|
|
Loading…
Add table
Reference in a new issue