Add prototype Upload screen and a couple new icons. Some refactoring.

This commit is contained in:
Henrik Rydgård committed 2025-10-27 12:20:20 +01:00
1 parent f83d6ac4a9
commit c686d48268
24 files changed
+270 -68

No files matched your search

+7
View File
@@ -62,6 +62,7 @@
#include "UI/DisplayLayoutScreen.h"
#include "UI/SavedataScreen.h"
#include "UI/Store.h"
#include "UI/UploadScreen.h"
#include "UI/InstallZipScreen.h"
#include "Core/Config.h"
#include "Core/Loaders.h"
@@ -815,6 +816,12 @@ void GameBrowser::Refresh() {
topBar->Add(new Choice(mm->T("PPSSPP Homebrew Store"), new UI::LinearLayoutParams(WRAP_CONTENT, 64.0f)))->OnClick.Handle(this, &GameBrowser::OnHomebrewStore);
}
if (browseFlags_ & BrowseFlags::UPLOAD_BUTTON) {
topBar->Add(new Choice(ImageID("I_FOLDER_UPLOAD"), new UI::LinearLayoutParams(WRAP_CONTENT, 64.0f)))->OnClick.Add([this](UI::EventParams &e) {
screenManager_->push(new UploadScreen());
});
}
ChoiceStrip *layoutChoice = topBar->Add(new ChoiceStrip(ORIENT_HORIZONTAL));
layoutChoice->AddChoice(ImageID("I_GRID"));
layoutChoice->AddChoice(ImageID("I_LINES"));