mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-04 14:09:47 +03:00
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:
@@ -1127,7 +1127,7 @@ extern int t_keepPic;
|
||||
void LevelRenderer::takePicture(TripodCamera* pCamera, Entity* pOwner)
|
||||
{
|
||||
Mob* pOldMob = m_pMinecraft->m_pMobPersp;
|
||||
bool bOldField23C = m_pMinecraft->m_options.field_23C;
|
||||
bool bOldDontRenderGui = m_pMinecraft->m_options.m_bDontRenderGui;
|
||||
bool bOldThirdPerson = m_pMinecraft->m_options.m_bThirdPerson;
|
||||
|
||||
#ifdef ENH_CAMERA_NO_PARTICLES
|
||||
@@ -1136,11 +1136,11 @@ void LevelRenderer::takePicture(TripodCamera* pCamera, Entity* pOwner)
|
||||
#endif
|
||||
|
||||
m_pMinecraft->m_pMobPersp = pCamera;
|
||||
m_pMinecraft->m_options.field_23C = true;
|
||||
m_pMinecraft->m_options.m_bDontRenderGui = true;
|
||||
m_pMinecraft->m_options.m_bThirdPerson = false; // really from the perspective of the camera
|
||||
m_pMinecraft->m_pGameRenderer->render(0.0f);
|
||||
m_pMinecraft->m_pMobPersp = pOldMob;
|
||||
m_pMinecraft->m_options.field_23C = bOldField23C;
|
||||
m_pMinecraft->m_options.m_bDontRenderGui = bOldDontRenderGui;
|
||||
m_pMinecraft->m_options.m_bThirdPerson = bOldThirdPerson;
|
||||
|
||||
#ifdef ENH_CAMERA_NO_PARTICLES
|
||||
|
||||
Reference in New Issue
Block a user