Files
UT99-Mod-ChaChaFonts/Classes/ChaChaFontsFull.uc
cclecle b54423ca4f use new IChaChaFontInfo interface
hide compiler warning messages
2025-08-26 13:43:59 +02:00

91 lines
2.3 KiB
Ucode

class ChaChaFontsFull expands IChaChaFonts config(ChaChaFonts);
var int VersionMajor;
var int VersionMinor;
var int VersionPatch;
var config int ConfigFileVersion;
var ChaChaFontInfo InstFI_BowlbyOne;
var ChaChaFontInfo InstFI_BrunoAceSC;
var ChaChaFontInfo InstFI_FragmentMono;
var ChaChaFontInfo InstFI_Orbitron;
var ChaChaFontInfo InstFI_PressStart2P;
var ChaChaFontInfo InstFI_ReggaeOne;
var ChaChaFontInfo InstFI_RussoOne;
var ChaChaFontInfo InstFI_Unispace;
var ChaChaFontInfo InstFI_VT323;
var ChaChaFontInfo InstFI_Defaut;
// A dummy Actor Class so that we can look for this actor and found the base Package
// => No need to relly on package version (Name)
simulated function PreBeginPlay()
{
if(Role == ROLE_Authority) SaveConfig();
}
simulated function IChaChaFontInfo Get(String requestedFont)
{
switch(requestedFont)
{
case"BowlbyOne":
if(InstFI_BowlbyOne==None)
InstFI_BowlbyOne=Spawn(class'ChaChaFontInfo_BowlbyOne',Self);
return InstFI_BowlbyOne;
case"BrunoAceSC":
if(InstFI_BrunoAceSC==None)
InstFI_BrunoAceSC=Spawn(class'ChaChaFontInfo_BrunoAceSC',Self);
return InstFI_BrunoAceSC;
case"FragmentMono":
if(InstFI_FragmentMono==None)
InstFI_FragmentMono=Spawn(class'ChaChaFontInfo_FragmentMono',Self);
return InstFI_FragmentMono;
case"Orbitron":
if(InstFI_Orbitron==None)
InstFI_Orbitron=Spawn(class'ChaChaFontInfo_Orbitron',Self);
return InstFI_Orbitron;
case"PressStart2P":
if(InstFI_PressStart2P==None)
InstFI_PressStart2P=Spawn(class'ChaChaFontInfo_PressStart2P',Self);
return InstFI_PressStart2P;
case"ReggaeOne":
if(InstFI_ReggaeOne==None)
InstFI_ReggaeOne=Spawn(class'ChaChaFontInfo_ReggaeOne',Self);
return InstFI_ReggaeOne;
case"RussoOne":
if(InstFI_RussoOne==None)
InstFI_RussoOne=Spawn(class'ChaChaFontInfo_RussoOne',Self);
return InstFI_RussoOne;
case"Unispace":
if(InstFI_Unispace==None)
InstFI_Unispace=Spawn(class'ChaChaFontInfo_Unispace',Self);
return InstFI_Unispace;
case"VT323":
if(InstFI_VT323==None)
InstFI_VT323=Spawn(class'ChaChaFontInfo_VT323',Self);
return InstFI_VT323;
case"Defaut":
default:
if(InstFI_Defaut==None)
InstFI_Defaut=Spawn(class'ChaChaFontInfo',Self);
return InstFI_Defaut;
}
}
defaultproperties{
VersionMajor=1
VersionMinor=0
VersionPatch=0
ConfigFileVersion=1
}