fix up screen command loading

This commit is contained in:
Glenn Maynard
2005-09-08 03:38:08 +00:00
parent 1c0ed2e85c
commit ed1ff5c63c
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -309,7 +309,12 @@ void ActorUtil::SetXY( Actor& actor, const CString &sType )
void ActorUtil::LoadCommand( Actor& actor, const CString &sType, const CString &sCommandName )
{
actor.AddCommand( sCommandName, THEME->GetMetricA(sType,actor.GetName()+sCommandName+"Command") );
ActorUtil::LoadCommandFromName( actor, sType, sCommandName, actor.GetName() );
}
void ActorUtil::LoadCommandFromName( Actor& actor, const CString &sType, const CString &sCommandName, const CString &sName )
{
actor.AddCommand( sCommandName, THEME->GetMetricA(sType,sName+sCommandName+"Command") );
}
void ActorUtil::LoadAndPlayCommand( Actor& actor, const CString &sType, const CString &sCommandName, Actor* pParent )
@@ -359,7 +364,7 @@ void ActorUtil::LoadAllCommandsFromName( Actor& actor, const CString &sType, con
if( sv.Right(7) == "Command" )
{
CString sCommandName( sv.begin()+sName.size(), sv.end()-7 );
LoadCommand( actor, sType, sCommandName );
LoadCommandFromName( actor, sType, sCommandName, sName );
}
}
}