add MusicWheel::IsSettled
This commit is contained in:
@@ -886,6 +886,19 @@ void MusicWheel::UpdateScrollbar()
|
||||
}
|
||||
}
|
||||
|
||||
bool MusicWheel::IsSettled() const
|
||||
{
|
||||
if( m_Moving )
|
||||
return false;
|
||||
if( m_WheelState != STATE_SELECTING_MUSIC && m_WheelState != STATE_LOCKED )
|
||||
return false;
|
||||
if( m_fPositionOffsetFromSelection != 0 )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void MusicWheel::Update( float fDeltaTime )
|
||||
{
|
||||
ActorFrame::Update( fDeltaTime );
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
bool IsRouletting() const;
|
||||
/* Return true if we're moving fast automatically. */
|
||||
int IsMoving() const;
|
||||
bool IsSettled() const;
|
||||
|
||||
void NotesOrTrailChanged( PlayerNumber pn ); // update grade graphics and top score
|
||||
|
||||
|
||||
Reference in New Issue
Block a user