Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Menus/OptionsMenu/OptionsMenu.cpp@44:44aa01af687e, 2019-05-09 (annotated)
- Committer:
- el17ajf
- Date:
- Thu May 09 12:37:20 2019 +0000
- Revision:
- 44:44aa01af687e
- Parent:
- 26:baa7077449e7
Found the issue, should have fixed API docs now. (Final Submission. I have read and agreed with Statement of Academic Integrity.)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17ajf | 21:62d2b5b73160 | 1 | #include "OptionsMenu.h" |
| el17ajf | 21:62d2b5b73160 | 2 | |
| el17ajf | 20:cd96f98f5f79 | 3 | #include "Menu.h" |
| el17ajf | 21:62d2b5b73160 | 4 | #include "Prefs.h" |
| el17ajf | 26:baa7077449e7 | 5 | #include "Graphics.h" |
| el17ajf | 20:cd96f98f5f79 | 6 | |
| el17ajf | 21:62d2b5b73160 | 7 | void Menus::OptionsMenu::updateAndDraw(UI * ui) { |
| el17ajf | 21:62d2b5b73160 | 8 | ui->drawLabel("options"); |
| el17ajf | 21:62d2b5b73160 | 9 | ui->newLine(); |
| el17ajf | 26:baa7077449e7 | 10 | if (ui->drawAndCheckButton("clr all")) { |
| el17ajf | 21:62d2b5b73160 | 11 | Prefs::getInstance()->resetAll(); |
| el17ajf | 21:62d2b5b73160 | 12 | close(); |
| el17ajf | 20:cd96f98f5f79 | 13 | } |
| el17ajf | 26:baa7077449e7 | 14 | if (ui->drawAndCheckButton("light")) { |
| el17ajf | 26:baa7077449e7 | 15 | Graphics::toggleLight(); |
| el17ajf | 26:baa7077449e7 | 16 | } |
| el17ajf | 21:62d2b5b73160 | 17 | ui->newLine(); |
| el17ajf | 21:62d2b5b73160 | 18 | if (ui->drawAndCheckButton("back")) { |
| el17ajf | 21:62d2b5b73160 | 19 | close(); |
| el17ajf | 21:62d2b5b73160 | 20 | } |
| el17ajf | 21:62d2b5b73160 | 21 | } |
