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;
|
2020-12-12 15:41:56 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
DialoguePage(brls::StagedAppletFrame* frame, std::string text);
|
|
|
|
|
|
|
|
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
|
|
|
};
|