mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 10:13:10 +00:00
fc5c48edef
* GUI module submenu: fix documentation * GUI module submenu: add submenu_set_selected_item fn * App iButton: use submenu_set_selected_item to store and set selected item in submenu * App iButton: swap write and emulate in "saved key menu" scene * App iButton: file select can now switch to the previous selected file * App iButton: swap write and emulate indexes in "saved key menu" scene Co-authored-by: あく <alleteam@gmail.com>
13 lines
No EOL
361 B
C++
13 lines
No EOL
361 B
C++
#pragma once
|
|
#include "ibutton-scene-generic.h"
|
|
|
|
class iButtonSceneStart : public iButtonScene {
|
|
public:
|
|
void on_enter(iButtonApp* app) final;
|
|
bool on_event(iButtonApp* app, iButtonEvent* event) final;
|
|
void on_exit(iButtonApp* app) final;
|
|
|
|
private:
|
|
void submenu_callback(void* context, uint32_t index);
|
|
uint32_t submenu_item_selected = 0;
|
|
}; |