add TransformItemDirect for places (StreamDisplay) that don't want to cache the transforms and also want to do non-TweenState things to an item (GetWidth,SetState)
This commit is contained in:
@@ -40,7 +40,8 @@ void StreamDisplay::Load( const RString &_sMetricsGroup )
|
||||
Sprite *pSpr = new Sprite;
|
||||
pSpr->Load( THEME->GetPathG(sMetricsGroup,StreamTypeToString(st)) );
|
||||
m_vpSprPill[st].push_back( pSpr );
|
||||
m_transformPill.TransformItem( pSpr, -1, i, iNumPills );
|
||||
|
||||
m_transformPill.TransformItemDirect( *pSpr, -1, i, iNumPills );
|
||||
|
||||
float f = 1 / fTextureCoordScaleX;
|
||||
pSpr->SetCustomTextureRect( RectF(f*i,0,f*(i+1),1) );
|
||||
|
||||
Reference in New Issue
Block a user