Load a random sleep screen. Only works for ".bmp" (not ".BMP"), but I think that's OK (we do the same for EPUBs).
16 lines
412 B
C++
16 lines
412 B
C++
#pragma once
|
|
#include "../Activity.h"
|
|
|
|
class Bitmap;
|
|
|
|
class SleepActivity final : public Activity {
|
|
public:
|
|
explicit SleepActivity(GfxRenderer& renderer, InputManager& inputManager) : Activity(renderer, inputManager) {}
|
|
void onEnter() override;
|
|
|
|
private:
|
|
void renderDefaultSleepScreen() const;
|
|
void renderCustomSleepScreen(const Bitmap& bitmap) const;
|
|
void renderPopup(const char* message) const;
|
|
};
|