Files
OpenRA/mods/modcontent/mod.yaml
RoosterDragon bb17cfa179 Expose mod.yaml content to localisation.
Mod metadata, load screens and mod content is all now sourced from ftl files, allowing these items to be translated.

Translations are now initialized as part of ModData creation, as currently they are made available too late for the usage we need here.

The "modcontent" mod learns a new parameter for "Content.TranslationFile" - this allows a mod to provide the path of a translation file to the mod which it can load. This allows mods such as ra, cnc, d2k, ts to own the translations for their ModContent, yet still make them accessible to the modcontent mod.

CheckFluentReference learns to validate all these new fields to ensure translations have been set.
2024-10-07 12:38:40 +03:00

75 lines
1.2 KiB
YAML

Metadata:
Title: mod-title
Version: {DEV_VERSION}
Hidden: true
FileSystem: DefaultFileSystem
Packages:
^EngineDir
^EngineDir|mods/modcontent: modcontent
^EngineDir|mods/common: common
Rules:
modcontent|rules.yaml
Cursors:
modcontent|cursors.yaml
Chrome:
modcontent|chrome.yaml
Assemblies: OpenRA.Mods.Common.dll
ChromeLayout:
modcontent|content.yaml
Notifications:
modcontent|notifications.yaml
LoadScreen: ModContentLoadScreen
Image: ^EngineDir|mods/modcontent/chrome.png
Image2x: ^EngineDir|mods/modcontent/chrome-2x.png
Image3x: ^EngineDir|mods/modcontent/chrome-3x.png
ChromeMetrics:
common|metrics.yaml
modcontent|metrics.yaml
Translations:
common|languages/en.ftl
modcontent|languages/en.ftl
Fonts:
Tiny:
Font: common|FreeSans.ttf
Size: 10
Ascender: 8
TinyBold:
Font: common|FreeSansBold.ttf
Size: 10
Ascender: 8
Regular:
Font: common|FreeSans.ttf
Size: 14
Ascender: 11
Bold:
Font: common|FreeSansBold.ttf
Size: 14
Ascender: 11
MediumBold:
Font: common|FreeSansBold.ttf
Size: 18
Ascender: 14
BigBold:
Font: common|FreeSansBold.ttf
Size: 24
Ascender: 18
SoundFormats:
SpriteFormats: PngSheet
TerrainFormat: DefaultTerrain
SpriteSequenceFormat: DefaultSpriteSequence