mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Use XOR operator for toggling menu's
This commit is contained in:
parent
978c43250f
commit
33f517d809
@ -68,12 +68,12 @@ LRESULT CALLBACK HwndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
{
|
{
|
||||||
if (wParam == g_pImGuiConfig->IConsole_Config.m_nBind0 || wParam == g_pImGuiConfig->IConsole_Config.m_nBind1)
|
if (wParam == g_pImGuiConfig->IConsole_Config.m_nBind0 || wParam == g_pImGuiConfig->IConsole_Config.m_nBind1)
|
||||||
{
|
{
|
||||||
g_pConsole->m_bActivate = !g_pConsole->m_bActivate;
|
g_pConsole->m_bActivate ^= true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wParam == g_pImGuiConfig->IBrowser_Config.m_nBind0 || wParam == g_pImGuiConfig->IBrowser_Config.m_nBind1)
|
if (wParam == g_pImGuiConfig->IBrowser_Config.m_nBind0 || wParam == g_pImGuiConfig->IBrowser_Config.m_nBind1)
|
||||||
{
|
{
|
||||||
g_pBrowser->m_bActivate = !g_pBrowser->m_bActivate;
|
g_pBrowser->m_bActivate ^= true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user