You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the Visible property of an TabView instance to its current value will falsify some data and more importantly make IsAnyPauseMenuVisible return true, because of the false data, even if it should return false.
This is because the setter of TabView.Visible changes the properties and calls the methods it calls without considering if the visibility has actually changed.
publicboolVisible{get{return_visible;}set{// if the value is not changed, then don't change any properties or call any methods to avoid false dataif(_visible==value)return;_visible=value;if(value){Shared.NumberOfVisiblePauseMenus++;NumberOfVisiblePauseMenus++;N.SetPlayerControl(Game.LocalPlayer,false,0);N.AnimPostFxPlay("MinigameTransitionIn",0,true);if(PauseGame)Game.IsPaused=true;}else{CleanUp();Shared.NumberOfVisiblePauseMenus--;NumberOfVisiblePauseMenus--;if(PauseGame)Game.IsPaused=false;}}}
Changing the Visible property of an
TabView
instance to its current value will falsify some data and more importantly makeIsAnyPauseMenuVisible
return true, because of the false data, even if it should return false.This is because the setter of
TabView.Visible
changes the properties and calls the methods it calls without considering if the visibility has actually changed.should be
at https://github.com/alexguirre/RAGENativeUI/blob/master/Source/PauseMenu/TabView.cs#L57
The text was updated successfully, but these errors were encountered: