mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +01:00
allow checkboxes to be force-toggled
This commit is contained in:
1 parent
37cd71b2a4
commit
4ebb62aa98
2 files changed
+7
-2
No files matched your search
+5
-1
@@ -383,9 +383,13 @@ void PopupHeader::Draw(UIContext &dc) {
|
||||
dc.Draw()->DrawImageStretch(dc.theme->whiteImage, bounds_.x, bounds_.y2()-2, bounds_.x2(), bounds_.y2(), dc.theme->popupTitle.fgColor);
|
||||
}
|
||||
|
||||
EventReturn CheckBox::OnClicked(EventParams &e) {
|
||||
void CheckBox::Toggle(){
|
||||
if (toggle_)
|
||||
*toggle_ = !(*toggle_);
|
||||
};
|
||||
|
||||
EventReturn CheckBox::OnClicked(EventParams &e) {
|
||||
Toggle();
|
||||
return EVENT_CONTINUE; // It's safe to keep processing events.
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user