mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
ADSB RX now works \o/
Added tabs in RDS TX, multiple groups can be sent at once Bugfix: text not updating on UI after text prompt
This commit is contained in:
parent
160359166a
commit
9d902bc224
18 changed files with 664 additions and 590 deletions
|
@ -276,6 +276,35 @@ std::string View::title() const {
|
|||
return "";
|
||||
};
|
||||
|
||||
/* OptionTabView *********************************************************/
|
||||
|
||||
OptionTabView::OptionTabView(Rect parent_rect) {
|
||||
set_parent_rect(parent_rect);
|
||||
|
||||
add_child(&check_enable);
|
||||
hidden(true);
|
||||
|
||||
check_enable.on_select = [this](Checkbox&, bool value) {
|
||||
enabled = value;
|
||||
};
|
||||
}
|
||||
|
||||
void OptionTabView::set_enabled(bool value) {
|
||||
check_enable.set_value(value);
|
||||
}
|
||||
|
||||
bool OptionTabView::is_enabled() {
|
||||
return check_enable.value();
|
||||
}
|
||||
|
||||
void OptionTabView::set_type(std::string type) {
|
||||
check_enable.set_text("Transmit " + type);
|
||||
}
|
||||
|
||||
void OptionTabView::focus() {
|
||||
check_enable.focus();
|
||||
}
|
||||
|
||||
/* Rectangle *************************************************************/
|
||||
|
||||
Rectangle::Rectangle(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue