added flexable NoteType coloring to NoteDisplay, optimized note texture usage
This commit is contained in:
@@ -51,6 +51,12 @@ Sprite::~Sprite()
|
||||
// Delay0000=1.0
|
||||
// Frame0001=3
|
||||
// Delay0000=2.0
|
||||
// BaseRotationXDegrees=0
|
||||
// BaseRotationYDegrees=0
|
||||
// BaseRotationZDegrees=0
|
||||
// BaseZoomX=1
|
||||
// BaseZoomY=1
|
||||
// BaseZoomZ=1
|
||||
bool Sprite::LoadFromSpriteFile( RageTextureID ID )
|
||||
{
|
||||
LOG->Trace( ssprintf("Sprite::LoadFromSpriteFile(%s)", ID.filename.GetString()) );
|
||||
@@ -65,9 +71,6 @@ bool Sprite::LoadFromSpriteFile( RageTextureID ID )
|
||||
splitrelpath( m_sSpritePath, sFontDir, sFontFileName, sFontExtension );
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// read sprite file
|
||||
IniFile ini;
|
||||
ini.SetPath( m_sSpritePath );
|
||||
@@ -117,6 +120,14 @@ bool Sprite::LoadFromSpriteFile( RageTextureID ID )
|
||||
m_fDelay[0] = 10;
|
||||
}
|
||||
|
||||
float f;
|
||||
if( ini.GetValueF( "Sprite", "BaseRotationXDegrees", f ) ) Actor::SetBaseRotationX( f*PI/180.f );
|
||||
if( ini.GetValueF( "Sprite", "BaseRotationYDegrees", f ) ) Actor::SetBaseRotationY( f*PI/180.f );
|
||||
if( ini.GetValueF( "Sprite", "BaseRotationZDegrees", f ) ) Actor::SetBaseRotationZ( f*PI/180.f );
|
||||
if( ini.GetValueF( "Sprite", "BaseZoomX", f ) ) Actor::SetBaseZoomX( f );
|
||||
if( ini.GetValueF( "Sprite", "BaseZoomY", f ) ) Actor::SetBaseZoomY( f );
|
||||
if( ini.GetValueF( "Sprite", "BaseZoomZ", f ) ) Actor::SetBaseZoomZ( f );
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user