Expose the default font and cursor sheet size settings to mod.yaml
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user