2020-08-08 17:06:53 -04:00
|
|
|
#ifndef __UI_ABOUT_SIMPLE_H__
|
|
|
|
#define __UI_ABOUT_SIMPLE_H__
|
|
|
|
|
|
|
|
#include "ui_widget.hpp"
|
|
|
|
#include "ui_navigation.hpp"
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
2023-05-18 16:16:05 -04:00
|
|
|
namespace ui {
|
|
|
|
class AboutView : public View {
|
|
|
|
public:
|
|
|
|
AboutView(NavigationView& nav);
|
|
|
|
void focus() override;
|
|
|
|
std::string title() const override { return "About"; };
|
|
|
|
int32_t timer{180};
|
|
|
|
short frame{0};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void update();
|
|
|
|
|
|
|
|
Console console{
|
|
|
|
{0, 10, 240, 240}};
|
|
|
|
|
|
|
|
Button button_ok{
|
|
|
|
{240 / 3, 270, 240 / 3, 24},
|
|
|
|
"OK",
|
2020-08-08 17:06:53 -04:00
|
|
|
};
|
2023-05-18 16:16:05 -04:00
|
|
|
|
|
|
|
MessageHandlerRegistration message_handler_update{
|
|
|
|
Message::ID::DisplayFrameSync,
|
|
|
|
[this](const Message* const) {
|
|
|
|
this->update();
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
} // namespace ui
|
2020-08-08 17:06:53 -04:00
|
|
|
|
|
|
|
#endif /*__UI_ABOUT_SIMPLE_H__*/
|