mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Cleanup old specialized checkbox.
This commit is contained in:
parent
698dfa74b4
commit
dbc838565c
2 changed files with 1 additions and 15 deletions
|
@ -91,7 +91,7 @@ void CwCheatScreen::CreateViews() {
|
|||
|
||||
rightColumn->Add(new ItemHeader(cw->T("Cheats")));
|
||||
for (size_t i = 0; i < fileInfo_.size(); ++i) {
|
||||
rightColumn->Add(new CheatCheckBox(&fileInfo_[i].enabled, fileInfo_[i].name))->OnClick.Add([=](UI::EventParams &) {
|
||||
rightColumn->Add(new CheckBox(&fileInfo_[i].enabled, fileInfo_[i].name))->OnClick.Add([=](UI::EventParams &) {
|
||||
return OnCheckBox((int)i);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -58,17 +58,3 @@ private:
|
|||
uint64_t fileCheckHash_;
|
||||
bool enableAllFlag_ = false;
|
||||
};
|
||||
|
||||
class CheatCheckBox : public UI::CheckBox {
|
||||
public:
|
||||
CheatCheckBox(bool *toggle, const std::string &text, UI::LayoutParams *layoutParams = nullptr)
|
||||
: UI::CheckBox(toggle, text, "", layoutParams), text_(text) {
|
||||
}
|
||||
|
||||
std::string Text() {
|
||||
return text_;
|
||||
}
|
||||
|
||||
private:
|
||||
std::string text_;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue