first commit

This commit is contained in:
cclecle
2023-06-05 22:57:36 +01:00
commit e509b61ad5
2 changed files with 41 additions and 0 deletions

39
Classes/IChaChaFonts.uc Normal file
View 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
}

2
make.bat Normal file
View File

@@ -0,0 +1,2 @@
del %~dp0\..\System\IChaChaFontsV1.u
%~dp0\..\System\ucc.exe make IChaChaFontsV1