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

@@ -39,12 +39,12 @@ namespace OpenRA.Graphics
readonly bool hardwareCursorsDisabled = false;
bool hardwareCursorsDoubled = false;
public CursorManager(CursorProvider cursorProvider)
public CursorManager(CursorProvider cursorProvider, int cursorSheetSize)
{
hardwareCursorsDisabled = Game.Settings.Graphics.DisableHardwareCursors;
graphicSettings = Game.Settings.Graphics;
sheetBuilder = new SheetBuilder(SheetType.BGRA, 512);
sheetBuilder = new SheetBuilder(SheetType.BGRA, cursorSheetSize);
// Sort the cursors for better packing onto the sheet.
foreach (var kv in cursorProvider.Cursors