mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 20:51:35 +00:00
fix popupmenu view spin regression
This commit is contained in:
parent
846ae6eece
commit
418b053e61
1 changed files with 5 additions and 12 deletions
|
@ -123,13 +123,6 @@ void AvHPieMenuHandler::ClosePieMenu(void)
|
||||||
IN_ResetMouse();
|
IN_ResetMouse();
|
||||||
gHUD.ShowCrosshair();
|
gHUD.ShowCrosshair();
|
||||||
|
|
||||||
// Reset showcursor value after forcing it to hide
|
|
||||||
// Check if piemenu is open or else windows will keep decrementing the showcursor value every time -popupmenu is called from closing the console
|
|
||||||
if (sPieMenuOpen)
|
|
||||||
{
|
|
||||||
gHUD.GetManager().SetMouseVisibility(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
sPieMenuOpen = false;
|
sPieMenuOpen = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -140,11 +133,11 @@ void AvHPieMenuHandler::InternalClosePieMenu(void)
|
||||||
|
|
||||||
if(gHUD.GetManager().GetVGUIComponentNamed(sPieMenuName, theMarineMenu))
|
if(gHUD.GetManager().GetVGUIComponentNamed(sPieMenuName, theMarineMenu))
|
||||||
{
|
{
|
||||||
//// TODO: Select option on menu before closing it!
|
// TODO: Select option on menu before closing it!
|
||||||
//if(!gHUD.GetInTopDownMode())
|
if(!gHUD.GetInTopDownMode())
|
||||||
//{
|
{
|
||||||
// gHUD.GetManager().SetMouseVisibility(false);
|
gHUD.GetManager().SetMouseVisibility(false);
|
||||||
//}
|
}
|
||||||
|
|
||||||
theMarineMenu->SetFadeState(false);
|
theMarineMenu->SetFadeState(false);
|
||||||
if(sLastNodeHighlighted)
|
if(sLastNodeHighlighted)
|
||||||
|
|
Loading…
Reference in a new issue