Implement a simple cheat database download facility

This commit is contained in:
Henrik Rydgård committed 2026-05-16 22:31:13 +02:00
1 parent fa50bb1976
commit 91b3741a57
12 files changed
+169 -23

No files matched your search

+1 -5
View File
@@ -34,9 +34,6 @@ public:
level_ = level;
text_ = text;
}
void SetSquishy(bool squishy) {
squishy_ = squishy;
}
void SetWrapText(bool wrapText) {
wrapText_ = wrapText;
}
@@ -53,8 +50,7 @@ private:
std::string iconName_;
NoticeLevel level_;
mutable float height1_ = 0.0f;
bool squishy_ = false;
bool wrapText_ = false;
bool wrapText_ = true;
};
ImageID GetOSDIcon(NoticeLevel level);
+1
View File
@@ -816,6 +816,7 @@ void AskForInput(ScreenManager *screenManager, RequesterToken token, UI::View *s
PopupTextInputChoice::PopupTextInputChoice(RequesterToken token, std::string *value, std::string_view title, std::string_view placeholder, int maxLen, ScreenManager *screenManager, LayoutParams *layoutParams)
: AbstractChoiceWithValueDisplay(title, layoutParams), screenManager_(screenManager), value_(value), placeHolder_(placeholder), maxLen_(maxLen), token_(token), restriction_(StringRestriction::None) {
_dbg_assert_(value);
OnClick.Handle(this, &PopupTextInputChoice::HandleClick);
}