2020-12-12 15:41:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <borealis.hpp>
|
|
|
|
|
|
|
|
class DialoguePage : public brls::View
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
brls::Button* button1 = nullptr;
|
|
|
|
brls::Button* button2 = nullptr;
|
|
|
|
brls::Label* label = nullptr;
|
2021-02-06 21:38:16 +00:00
|
|
|
brls::NavigationMap navigationMap;
|
2021-05-21 17:12:58 +01:00
|
|
|
bool erista = true;
|
2020-12-12 15:41:56 +00:00
|
|
|
|
|
|
|
public:
|
2021-05-21 17:12:58 +01:00
|
|
|
DialoguePage(brls::StagedAppletFrame* frame, std::string text, bool erista = true);
|
2020-12-12 15:41:56 +00:00
|
|
|
|
|
|
|
void draw(NVGcontext* vg, int x, int y, unsigned width, unsigned height, brls::Style* style, brls::FrameContext* ctx) override;
|
|
|
|
void layout(NVGcontext* vg, brls::Style* style, brls::FontStash* stash) override;
|
|
|
|
brls::View* getDefaultFocus() override;
|
2021-02-06 21:38:16 +00:00
|
|
|
brls::View* getNextFocus(brls::FocusDirection direction, brls::View* currentView);
|
2020-12-12 15:41:56 +00:00
|
|
|
};
|