mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
feat: Added f3 and f4 keys to open debug stuff
This commit is contained in:
parent
5b5b9f6072
commit
00b9079c18
|
|
@ -1220,6 +1220,33 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||||
ToggleFullscreen();
|
ToggleFullscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _DEBUG_MENUS_ENABLED
|
||||||
|
// F3 toggles onscreen debug info
|
||||||
|
if (KMInput.IsKeyPressed(VK_F3))
|
||||||
|
{
|
||||||
|
if (Minecraft* pMinecraft = Minecraft::GetInstance())
|
||||||
|
{
|
||||||
|
if (pMinecraft->options && app.DebugSettingsOn())
|
||||||
|
{
|
||||||
|
pMinecraft->options->renderDebug = !pMinecraft->options->renderDebug;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// F4 opens debug overlay
|
||||||
|
if (KMInput.IsKeyPressed(VK_F4))
|
||||||
|
{
|
||||||
|
if (Minecraft* pMinecraft = Minecraft::GetInstance())
|
||||||
|
{
|
||||||
|
if (pMinecraft->options && app.DebugSettingsOn())
|
||||||
|
{
|
||||||
|
ui.NavigateToScene(0, eUIScene_DebugOverlay, NULL, eUILayer_Debug);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// has the game defined profile data been changed (by a profile load)
|
// has the game defined profile data been changed (by a profile load)
|
||||||
if(app.uiGameDefinedDataChangedBitmask!=0)
|
if(app.uiGameDefinedDataChangedBitmask!=0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue