Expose the default font and cursor sheet size settings to mod.yaml

This commit is contained in:
RoosterDragon
2024-08-26 16:31:22 +01:00
committed by Gustas
parent 32bc99a11a
commit dd9aca83dd
4 changed files with 14 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ namespace OpenRA
using (new PerfTimer("SpriteFonts"))
{
fontSheetBuilder?.Dispose();
fontSheetBuilder = new SheetBuilder(SheetType.BGRA, 512);
fontSheetBuilder = new SheetBuilder(SheetType.BGRA, modData.Manifest.FontSheetSize);
Fonts = modData.Manifest.Get<Fonts>().FontList.ToDictionary(x => x.Key,
x => new SpriteFont(
platform, x.Value.Font, modData.DefaultFileSystem.Open(x.Value.Font).ReadAllBytes(),