mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-10 16:58:07 +00:00
39 lines
1013 B
C++
39 lines
1013 B
C++
#pragma once
|
|
|
|
#pragma push_macro("byte")
|
|
#pragma push_macro("GetNextSibling")
|
|
#pragma push_macro("GetFirstChild")
|
|
#undef byte
|
|
#undef GetNextSibling
|
|
#undef GetFirstChild
|
|
|
|
#include "UIScene.h"
|
|
#include <RmlUi/Core/EventListener.h>
|
|
#include <RmlUi/Core/ElementDocument.h>
|
|
|
|
class UIScene_RmlBase : public UIScene, public Rml::EventListener
|
|
{
|
|
public:
|
|
UIScene_RmlBase(int iPad, UILayer *parentLayer);
|
|
virtual ~UIScene_RmlBase();
|
|
|
|
void tick() override;
|
|
void render(S32 width, S32 height, C4JRender::eViewportType viewport) override {}
|
|
void gainFocus() override;
|
|
void reloadMovie(bool force) override {}
|
|
|
|
protected:
|
|
wstring getMoviePath() override { return L""; }
|
|
void handleLoseFocus() override;
|
|
|
|
void ForwardRmlInput(Rml::Context* ctx);
|
|
void RegisterEvents(std::initializer_list<const char*> ids);
|
|
void UnregisterEvents(std::initializer_list<const char*> ids);
|
|
|
|
Rml::ElementDocument* m_document = nullptr;
|
|
};
|
|
|
|
#pragma pop_macro("GetFirstChild")
|
|
#pragma pop_macro("GetNextSibling")
|
|
#pragma pop_macro("byte")
|