first commit
This commit is contained in:
39
Classes/IChaChaFonts.uc
Normal file
39
Classes/IChaChaFonts.uc
Normal file
@@ -0,0 +1,39 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user