예제 #1
0
void SoundManager::Previous( Event * )
{
	int index;
	
	currentFacet = 0;
	
	if ( current )
	{
		//
		// find current sound in container of sounds
		//
		index = soundList.IndexOfObject( current );
		if ( index > 1 )
		{
			index--;
		}
		else
		{
			index = soundList.NumObjects();
		}
		CurrentLostFocus();
	}
	else
	{
		index = 1;
	}
	
	if ( index <= soundList.NumObjects() )
	{
		current = soundList.ObjectAt( index );
		CurrentGainsFocus();
		UpdateUI();
	}
}
예제 #2
0
void SoundManager::Hide
   (
   Event *ev
   )

   {
   CurrentLostFocus();
   CancelEventsOfType( EV_SoundManager_ShowingSounds );
   UpdateUI();
   }