2020-01-30 09:28:01 +00:00
|
|
|
#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;
|
2020-01-31 09:36:36 +00:00
|
|
|
uint8_t currentHeightY;
|
|
|
|
uint16_t lastTextWidth = 0;
|
|
|
|
|
|
|
|
void drawCurrentHeight();
|
2020-01-30 09:28:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|