Example #1
0
void MAS::Widget::MsgTick() {
   if (animator->Animating()) {
      if (!animator->Update()) {
         StopAnimating();
      }
   }
}
void BaseTabStrip::DoLayout()
{
    last_layout_size_ = size();

    StopAnimating(false);

    GenerateIdealBounds();

    for(int i=0; i<tab_count(); ++i)
    {
        tab_data_[i].tab->SetBoundsRect(tab_data_[i].ideal_bounds);
    }

    SchedulePaint();
}
Example #3
0
bool DifficultyIcon::Load( const CString &sPath )
{
	Sprite::Load( sPath );
	int iStates = GetNumStates();
	if( iStates != NUM_DIFFICULTIES  &&  iStates != NUM_DIFFICULTIES*2 )
	{
		CString sError = ssprintf(
			"The difficulty icon graphic '%s' must have %d or %d frames.  It has %d states.", 
			sPath.c_str(), 
			NUM_DIFFICULTIES,
			NUM_DIFFICULTIES*2,
			iStates );
		Dialog::OK( sError );
	}
	StopAnimating();
	return true;
}
Example #4
0
bool DifficultyIcon::Load( CString sPath )
{
	Sprite::Load( sPath );
	int iStates = GetNumStates();
	bool bWarn = iStates != NUM_DIFFICULTIES  &&  iStates != NUM_DIFFICULTIES*2;
	if( sPath.Find("_blank") != -1 )
		bWarn = false;
	if( bWarn )
	{
		CString sError = ssprintf(
			"The difficulty icon graphic '%s' must have %d or %d frames.  It has %d states.", 
			sPath.c_str(), 
			NUM_DIFFICULTIES,
			NUM_DIFFICULTIES*2,
			iStates );
		Dialog::OK( sError );
	}
	StopAnimating();
	return true;
}
Example #5
0
ReceptorArrow::ReceptorArrow()
{
	m_bIsPressed = false;
	StopAnimating();
}
Example #6
0
void Animate::StopAnimating( Event *ev )
{
	StopAnimating( ev->GetInteger( 1 ) );
}
Example #7
0
WheelNotifyIcon::WheelNotifyIcon()
{
	Load( THEME->GetPathG("WheelNotifyIcon","icons 4x2") );
	StopAnimating();
}
Example #8
0
void MAS::Widget::Animate() {
   StopAnimating();
   if (animType != Animator::NONE) {
      SetFlag(D_ANIMATING);
   }
}
Example #9
0
WheelNotifyIcon::WheelNotifyIcon()
{
	// Load( THEME->GetPathG("MusicWheelItem","WheelNotifyIcon") );
	Load( THEME->GetPathG("WheelNotifyIcon","icons 4x2") );
	StopAnimating();
}