Skip to content

Commit 3b8bb93

Browse files
committed
Fix new instructional button draw order.
1 parent 1fff7bf commit 3b8bb93

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

MenuAPI/MenuController.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,12 +718,11 @@ internal static async Task DrawInstructionalButtons()
718718

719719
for (int i = 0; i < menu.InstructionalButtons.Count; i++)
720720
{
721-
int buttonIndex = i;
722721
string text = menu.InstructionalButtons.ElementAt(i).Value;
723722
Control control = menu.InstructionalButtons.ElementAt(i).Key;
724723

725724
BeginScaleformMovieMethod(_scale, "SET_DATA_SLOT");
726-
ScaleformMovieMethodAddParamInt(buttonIndex);
725+
ScaleformMovieMethodAddParamInt(i);
727726
string buttonName = GetControlInstructionalButton(0, (int)control, 1);
728727
PushScaleformMovieMethodParameterString(buttonName);
729728
PushScaleformMovieMethodParameterString(text);
@@ -733,7 +732,7 @@ internal static async Task DrawInstructionalButtons()
733732
// Use custom instructional buttons FIRST if they're present.
734733
if (menu.CustomInstructionalButtons.Count > 0)
735734
{
736-
for (int i = 0; i < menu.CustomInstructionalButtons.Count + menu.InstructionalButtons.Count; i++)
735+
for (int i = 0; i < menu.CustomInstructionalButtons.Count; i++)
737736
{
738737
Menu.InstructionalButton button = menu.CustomInstructionalButtons[i];
739738
BeginScaleformMovieMethod(_scale, "SET_DATA_SLOT");

0 commit comments

Comments
 (0)