diff --git a/MenuExample/MenuExample.cs b/MenuExample/MenuExample.cs index a3bcc6cd..1618d675 100644 --- a/MenuExample/MenuExample.cs +++ b/MenuExample/MenuExample.cs @@ -962,6 +962,9 @@ public void PauseMenuShowcase(UIMenu _menu) ScaleformUI.ScaleformUI.InstructionalButtons.SetInstructionalButtons(buttons); } } + else if (focusLevel == 0) + ScaleformUI.ScaleformUI.InstructionalButtons.SetInstructionalButtons(menu.InstructionalButtons); + }; pauseMenu.OnLeftItemChange += (menu, tabIndex, focusLevel, leftItemIndex) => diff --git a/ScaleformUI_Csharp/PauseMenu/TabView.cs b/ScaleformUI_Csharp/PauseMenu/TabView.cs index e42d098b..51e42413 100644 --- a/ScaleformUI_Csharp/PauseMenu/TabView.cs +++ b/ScaleformUI_Csharp/PauseMenu/TabView.cs @@ -60,7 +60,7 @@ public int FocusLevel public bool HideTabs { get; set; } public bool DisplayHeader = true; - public List buttons = new() + public List InstructionalButtons = new() { new InstructionalButton(Control.PhoneSelect, UIMenu._selectTextLocalized), new InstructionalButton(Control.PhoneCancel, UIMenu._backTextLocalized), @@ -111,7 +111,7 @@ public bool Visible SendPauseMenuOpen(); Screen.Effects.Start(ScreenEffect.FocusOut, 800); API.TransitionToBlurred(700); - ScaleformUI.InstructionalButtons.SetInstructionalButtons(buttons); + ScaleformUI.InstructionalButtons.SetInstructionalButtons(InstructionalButtons); API.SetPlayerControl(Game.Player.Handle, false, 0); } else