Files
GabsPuNs-Project_Zenith_Main/Minecraft.Client/Common/UI/UIScene_RmlBase.h

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")