39 lines
716 B
Ucode
39 lines
716 B
Ucode
class IChaChaFonts expands Actor
|
|
abstract;
|
|
|
|
|
|
simulated function FontInfo Get(String requestedFont);
|
|
|
|
static function IChaChaFonts GetInstance(LevelInfo _Level, String ID)
|
|
{
|
|
local IChaChaFonts AChaChaFonts;
|
|
|
|
foreach _Level.AllActors(class'IChaChaFonts', AChaChaFonts)
|
|
{
|
|
if ((_GetItemName(string(AChaChaFonts.Class)) == ID) || (ID == ""))
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
return AChaChaFonts;
|
|
}
|
|
|
|
static function String _GetItemName( string FullName )
|
|
{
|
|
local int pos;
|
|
|
|
pos = InStr(FullName, ".");
|
|
While ( pos != -1 )
|
|
{
|
|
FullName = Right(FullName, Len(FullName) - pos - 1);
|
|
pos = InStr(FullName, ".");
|
|
}
|
|
|
|
return FullName;
|
|
}
|
|
|
|
defaultproperties{
|
|
bHidden=True
|
|
bAlwaysRelevant=True
|
|
RemoteRole=ROLE_SimulatedProxy
|
|
} |