mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
hint for disabling debug mode
This commit is contained in:
parent
4abf699726
commit
996e519fe6
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ class CDebugHud : public CComponent
|
|||
{
|
||||
void RenderNetCorrections();
|
||||
void RenderTuning();
|
||||
void RenderHint();
|
||||
|
||||
public:
|
||||
virtual void OnRender();
|
||||
|
|
Loading…
Reference in a new issue