mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
CwCheat screen: Detect titles and display them as large text instead of checkboxes
This commit is contained in:
1 parent
a1a073bd2c
commit
c97007adfe
3 files changed
+30
-3
No files matched your search
+11
-3
@@ -127,9 +127,17 @@ void CwCheatScreen::CreateContentViews(UI::ViewGroup *parent) {
|
||||
rightScroll->Add(rightColumn);
|
||||
rightColumn->Add(new ItemHeader(cw->T("Cheats")));
|
||||
for (size_t i = 0; i < fileInfo_.size(); ++i) {
|
||||
rightColumn->Add(new CheckBox(&fileInfo_[i].enabled, fileInfo_[i].name))->OnClick.Add([=](UI::EventParams &) {
|
||||
OnCheckBox((int)i);
|
||||
});
|
||||
std::string_view title;
|
||||
if (fileInfo_[i].IsTitle(&title)) {
|
||||
// Title.
|
||||
TextView *titleView = rightColumn->Add(new TextView(title, new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT, UI::Margins(8, 0))));
|
||||
titleView->SetTextSize(UI::TextSize::Big);
|
||||
} else {
|
||||
// Regular cheat code.
|
||||
rightColumn->Add(new CheckBox(&fileInfo_[i].enabled, fileInfo_[i].name))->OnClick.Add([=](UI::EventParams &) {
|
||||
OnCheckBox((int)i);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user