30 lines
494 B
C++
30 lines
494 B
C++
#ifndef __screen_move
|
|
#define __screen_move
|
|
|
|
#include "../screen.h"
|
|
#include "../state.h"
|
|
|
|
|
|
/*
|
|
* Move screen
|
|
* Shows the current and target height
|
|
*/
|
|
class MoveScreen : public BaseScreen
|
|
{
|
|
public:
|
|
MoveScreen(ScreenManager* screenManager) : BaseScreen(screenManager) { }
|
|
|
|
void onShow();
|
|
void onButton(Button button);
|
|
void onTick();
|
|
|
|
private:
|
|
uint32_t lastRefresh;
|
|
uint8_t currentHeightY;
|
|
uint16_t lastTextWidth = 0;
|
|
|
|
void drawCurrentHeight();
|
|
};
|
|
|
|
#endif
|