Merge pull request #661 from nixtrix/optionslist
Added an extra parameter to OptionsListLeft/Right messages saying what menu item the player moved to (param.Selection).
This commit is contained in:
@@ -406,6 +406,7 @@ bool OptionsList::Input( const InputEventPlus &input )
|
||||
Message lMsg("OptionsListQuickChange");
|
||||
lMsg.SetParam( "Player", pn );
|
||||
lMsg.SetParam( "Direction", iDir );
|
||||
lMsg.SetParam( "Selection", iSelection );
|
||||
MESSAGEMAN->Broadcast( lMsg );
|
||||
}
|
||||
}
|
||||
@@ -431,6 +432,7 @@ bool OptionsList::Input( const InputEventPlus &input )
|
||||
|
||||
Message lMsg("OptionsListLeft");
|
||||
lMsg.SetParam( "Player", input.pn );
|
||||
lMsg.SetParam( "Selection", m_iMenuStackSelection );
|
||||
MESSAGEMAN->Broadcast( lMsg );
|
||||
return true;
|
||||
}
|
||||
@@ -452,6 +454,7 @@ bool OptionsList::Input( const InputEventPlus &input )
|
||||
|
||||
Message lMsg("OptionsListRight");
|
||||
lMsg.SetParam( "Player", input.pn );
|
||||
lMsg.SetParam( "Selection", m_iMenuStackSelection );
|
||||
MESSAGEMAN->Broadcast( lMsg );
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user