commit e509b61ad5a6e6aa424019aa6b2feec6efd8893d Author: cclecle Date: Mon Jun 5 22:57:36 2023 +0100 first commit diff --git a/Classes/IChaChaFonts.uc b/Classes/IChaChaFonts.uc new file mode 100644 index 0000000..1316941 --- /dev/null +++ b/Classes/IChaChaFonts.uc @@ -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 +} \ No newline at end of file diff --git a/make.bat b/make.bat new file mode 100644 index 0000000..0da1e82 --- /dev/null +++ b/make.bat @@ -0,0 +1,2 @@ +del %~dp0\..\System\IChaChaFontsV1.u +%~dp0\..\System\ucc.exe make IChaChaFontsV1