Skip to content

Commit

Permalink
C# Rename buttons into InstructionalButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
manups4e committed Apr 7, 2022
1 parent cf283b9 commit 31b1a49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions MenuExample/MenuExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
4 changes: 2 additions & 2 deletions ScaleformUI_Csharp/PauseMenu/TabView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public int FocusLevel
public bool HideTabs { get; set; }
public bool DisplayHeader = true;

public List<InstructionalButton> buttons = new()
public List<InstructionalButton> InstructionalButtons = new()
{
new InstructionalButton(Control.PhoneSelect, UIMenu._selectTextLocalized),
new InstructionalButton(Control.PhoneCancel, UIMenu._backTextLocalized),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31b1a49

Please sign in to comment.