mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
Added Soundboard
file.cpp: scan_root_files proc_audiotx.cpp: bandwidth setting ui_widget.cpp: button on_focus
This commit is contained in:
parent
5de6349199
commit
f7e0f36bd9
19 changed files with 462 additions and 121 deletions
|
@ -434,13 +434,13 @@ ProgressBar::ProgressBar(
|
|||
{
|
||||
}
|
||||
|
||||
void ProgressBar::set_max(const uint16_t max) {
|
||||
void ProgressBar::set_max(const uint32_t max) {
|
||||
_value = 0;
|
||||
_max = max;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void ProgressBar::set_value(const uint16_t value) {
|
||||
void ProgressBar::set_value(const uint32_t value) {
|
||||
if (value > _max)
|
||||
_value = _max;
|
||||
else
|
||||
|
@ -689,6 +689,11 @@ void Button::paint(Painter& painter) {
|
|||
);
|
||||
}
|
||||
|
||||
void Button::on_focus() {
|
||||
if( on_highlight )
|
||||
on_highlight(*this);
|
||||
}
|
||||
|
||||
bool Button::on_key(const KeyEvent key) {
|
||||
if( key == KeyEvent::Select ) {
|
||||
if( on_select ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue