diff options
Diffstat (limited to '')
-rw-r--r-- | src/Render.cpp | 7 | ||||
-rw-r--r-- | src/Render.hpp | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/Render.cpp b/src/Render.cpp index 3bf1e6b..896a05f 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -292,6 +292,10 @@ void Render::HandleEvents() { break; } + case SDL_SCANCODE_F4: + hideRml = !hideRml; + break; + case SDL_SCANCODE_F8: Rml::Debugger::SetVisible(!Rml::Debugger::IsVisible()); break; @@ -430,7 +434,8 @@ void Render::Update() { void Render::RenderGui() { OPTICK_EVENT(); - rmlContext->Render(); + if (!hideRml) + rmlContext->Render(); } void Render::InitEvents() { diff --git a/src/Render.hpp b/src/Render.hpp index b8963c7..9a9feee 100644 --- a/src/Render.hpp +++ b/src/Render.hpp @@ -44,6 +44,7 @@ class Render { std::unique_ptr<RmlFileInterface> rmlFile; Rml::Context* rmlContext; unsigned short sdlKeyMods = 0; + bool hideRml = false; void SetMouseCapture(bool IsCaptured); |