Added Hide GUI Keybind (#62)

F1 to hide gui
Also renamed the field for hiding the GUI to m_bDontRenderGui

I would have named it m_bRenderGui and flipped the default values and checks but I assumed that changing the least amount of stuff would be desired.
This commit is contained in:
Vruk
2023-08-20 11:19:24 -07:00
committed by GitHub
parent a6d05eb6f3
commit 9c2a5c43c8
6 changed files with 12 additions and 7 deletions

View File

@@ -601,7 +601,7 @@ void GameRenderer::render(float f)
if (t_keepPic < 0)
{
renderLevel(f);
if (m_pMinecraft->m_options.field_23C)
if (m_pMinecraft->m_options.m_bDontRenderGui)
{
if (!m_pMinecraft->m_pScreen)
return;
@@ -727,7 +727,7 @@ void GameRenderer::renderItemInHand(float f, int i)
if (m_pMinecraft->m_options.m_bViewBobbing)
bobView(f);
if (!m_pMinecraft->m_options.m_bThirdPerson && !m_pMinecraft->m_options.field_23C)
if (!m_pMinecraft->m_options.m_bThirdPerson && !m_pMinecraft->m_options.m_bDontRenderGui)
m_pItemInHandRenderer->render(f);
glPopMatrix();