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(); }
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; }
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; }
ReceptorArrow::ReceptorArrow() { m_bIsPressed = false; StopAnimating(); }
void Animate::StopAnimating( Event *ev ) { StopAnimating( ev->GetInteger( 1 ) ); }
WheelNotifyIcon::WheelNotifyIcon() { Load( THEME->GetPathG("WheelNotifyIcon","icons 4x2") ); StopAnimating(); }
void MAS::Widget::Animate() { StopAnimating(); if (animType != Animator::NONE) { SetFlag(D_ANIMATING); } }
WheelNotifyIcon::WheelNotifyIcon() { // Load( THEME->GetPathG("MusicWheelItem","WheelNotifyIcon") ); Load( THEME->GetPathG("WheelNotifyIcon","icons 4x2") ); StopAnimating(); }