@@ -714,23 +714,11 @@ internal static async Task DrawInstructionalButtons()
714714 EndScaleformMovieMethod ( ) ;
715715
716716
717- // Use custom instructional buttons FIRST if they're present.
718- if ( menu . CustomInstructionalButtons . Count > 0 )
719- {
720- for ( int i = 0 ; i < menu . CustomInstructionalButtons . Count ; i ++ )
721- {
722- Menu . InstructionalButton button = menu . CustomInstructionalButtons [ i ] ;
723- BeginScaleformMovieMethod ( _scale , "SET_DATA_SLOT" ) ;
724- ScaleformMovieMethodAddParamInt ( i ) ;
725- PushScaleformMovieMethodParameterString ( button . controlString ) ;
726- PushScaleformMovieMethodParameterString ( button . instructionText ) ;
727- EndScaleformMovieMethod ( ) ;
728- }
729- }
717+
730718
731719 for ( int i = 0 ; i < menu . InstructionalButtons . Count ; i ++ )
732720 {
733- int buttonIndex = i + menu . CustomInstructionalButtons . Count ;
721+ int buttonIndex = i ;
734722 string text = menu . InstructionalButtons . ElementAt ( i ) . Value ;
735723 Control control = menu . InstructionalButtons . ElementAt ( i ) . Key ;
736724
@@ -742,6 +730,20 @@ internal static async Task DrawInstructionalButtons()
742730 EndScaleformMovieMethod ( ) ;
743731 }
744732
733+ // Use custom instructional buttons FIRST if they're present.
734+ if ( menu . CustomInstructionalButtons . Count > 0 )
735+ {
736+ for ( int i = 0 ; i < menu . CustomInstructionalButtons . Count + menu . InstructionalButtons . Count ; i ++ )
737+ {
738+ Menu . InstructionalButton button = menu . CustomInstructionalButtons [ i ] ;
739+ BeginScaleformMovieMethod ( _scale , "SET_DATA_SLOT" ) ;
740+ ScaleformMovieMethodAddParamInt ( i + menu . InstructionalButtons . Count ) ;
741+ PushScaleformMovieMethodParameterString ( button . controlString ) ;
742+ PushScaleformMovieMethodParameterString ( button . instructionText ) ;
743+ EndScaleformMovieMethod ( ) ;
744+ }
745+ }
746+
745747 BeginScaleformMovieMethod ( _scale , "DRAW_INSTRUCTIONAL_BUTTONS" ) ;
746748 ScaleformMovieMethodAddParamInt ( 0 ) ;
747749 EndScaleformMovieMethod ( ) ;
0 commit comments