* [ScreenSelectMaster] Now updates choices on player join; will move the scroller to the correct location, but the GainFocus/LoseFocus commands don't seem to work yet.

This commit is contained in:
AJ Kelly
2012-03-07 22:39:26 -06:00
parent b979709f50
commit d1ac4b5fa0
3 changed files with 18 additions and 1 deletions
+7 -1
View File
@@ -6,9 +6,15 @@ ________________________________________________________________________________
================================================================================
StepMania 5.0 alpha 2 | 20120???
StepMania 5.0 alpha 2 | 201203??
--------------------------------------------------------------------------------
2012/03/07
----------
* [ScreenSelectMaster] Now updates choices on player join; it will move the
scroller to the correct location, but the GainFocus/LoseFocus commands don't
seem to work. [AJ]
2012/03/05
----------
* [GameCommand] Added GetDifficulty(), GetCourseDifficulty(), GetPlayMode(),
+10
View File
@@ -334,6 +334,16 @@ void ScreenSelectMaster::HandleScreenMessage( const ScreenMessage SM )
}
}
void ScreenSelectMaster::HandleMessage( const Message &msg )
{
if ( msg == Message_PlayerJoined )
{
UpdateSelectableChoices();
}
ScreenSelect::HandleMessage( msg );
}
int ScreenSelectMaster::GetSelectionIndex( PlayerNumber pn )
{
return m_iChoice[pn];
+1
View File
@@ -39,6 +39,7 @@ public:
virtual void TweenOffScreen();
virtual void HandleScreenMessage( const ScreenMessage SM );
virtual void HandleMessage( const Message &msg );
virtual bool AllowLateJoin() const { return true; }
// sm-ssc additions: