diff --git a/src/game/client/components/debughud.cpp b/src/game/client/components/debughud.cpp index 2516e52d6..54cc28879 100644 --- a/src/game/client/components/debughud.cpp +++ b/src/game/client/components/debughud.cpp @@ -143,8 +143,20 @@ void CDebugHud::RenderTuning() TextRender()->TextColor(1, 1, 1, 1); } +void CDebugHud::RenderHint() +{ + if(!g_Config.m_Debug) + return; + + float Width = 300 * Graphics()->ScreenAspect(); + Graphics()->MapScreen(0, 0, Width, 300); + TextRender()->TextColor(1, 1, 1, 1); + TextRender()->Text(0x0, 5, 290, 5, Localize("Debug mode enabled. Press Ctrl+Shift+D to disable debug mode."), -1.0f); +} + void CDebugHud::OnRender() { RenderTuning(); RenderNetCorrections(); + RenderHint(); } diff --git a/src/game/client/components/debughud.h b/src/game/client/components/debughud.h index c7b2173fc..100580b66 100644 --- a/src/game/client/components/debughud.h +++ b/src/game/client/components/debughud.h @@ -8,6 +8,7 @@ class CDebugHud : public CComponent { void RenderNetCorrections(); void RenderTuning(); + void RenderHint(); public: virtual void OnRender();