mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-30 17:47:33 -04:00
added overlay to system view
This commit is contained in:
parent
0acf7ec2c2
commit
812f0f8211
6 changed files with 143 additions and 1 deletions
|
@ -748,6 +748,24 @@ Context& SystemView::context() const {
|
|||
return context_;
|
||||
}
|
||||
|
||||
void SystemView::toggle_overlay() {
|
||||
if (overlay_active){
|
||||
this->remove_child(&this->overlay);
|
||||
this->set_dirty();
|
||||
}
|
||||
else{
|
||||
this->add_child(&this->overlay);
|
||||
this->set_dirty();
|
||||
}
|
||||
overlay_active = !overlay_active;
|
||||
}
|
||||
|
||||
void SystemView::paint_overlay() {
|
||||
if (overlay_active){
|
||||
this->overlay.set_dirty();
|
||||
}
|
||||
}
|
||||
|
||||
/* ***********************************************************************/
|
||||
|
||||
void BMPView::focus() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue