mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-19 12:34:48 -04:00
Added new toolbar in main menu
This commit is contained in:
parent
bf2a04ab57
commit
9c9021f63b
7 changed files with 174 additions and 5 deletions
|
@ -95,6 +95,15 @@ void BtnGridView::set_parent_rect(const Rect new_parent_rect) {
|
|||
update_items();
|
||||
}
|
||||
|
||||
void BtnGridView::set_arrow_enabled(bool new_value) {
|
||||
if(new_value){
|
||||
add_child(&arrow_more);
|
||||
}
|
||||
else{
|
||||
remove_child(&arrow_more);
|
||||
}
|
||||
};
|
||||
|
||||
void BtnGridView::on_tick_second() {
|
||||
if (more && blink)
|
||||
arrow_more.set_foreground(Color::white());
|
||||
|
|
|
@ -62,6 +62,7 @@ public:
|
|||
uint32_t highlighted_index();
|
||||
|
||||
void set_parent_rect(const Rect new_parent_rect) override;
|
||||
void set_arrow_enabled(bool new_value);
|
||||
void on_focus() override;
|
||||
void on_blur() override;
|
||||
bool on_key(const KeyEvent event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue