hint for disabling debug mode

This commit is contained in:
TsFreddie 2020-11-03 15:03:24 +08:00
parent 4abf699726
commit 996e519fe6
2 changed files with 13 additions and 0 deletions

View file

@ -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();
}

View file

@ -8,6 +8,7 @@ class CDebugHud : public CComponent
{
void RenderNetCorrections();
void RenderTuning();
void RenderHint();
public:
virtual void OnRender();