Aragas / Bannerlord.MBOptionScreen

Mod Configuration Menu. A Module for easy Setting integration. Documentation available.
https://www.nexusmods.com/mountandblade2bannerlord/mods/612
MIT License
42 stars 12 forks source link

MCM Documentation #60

Open Aragas opened 4 years ago

Aragas commented 4 years ago
L34T commented 1 year ago

https://github.com/Aragas/Bannerlord.MBOptionScreen/blob/6f096afbb2126601afccfe14c2fc5a38ef9c144f/docs/articles/MCMv5/mcmv5-soft-dependency.md?plain=1#L48

TextObjectHelper has been removed in MCM5.

Seems must be changed to:

public override string DisplayName => new TextObject("{=CustomSettings_Name}Custom {VERSION}",
        new Dictionary<string, Object>
        {
            { "VERSION", typeof(CustomSettings).Assembly.GetName().Version?.ToString(3) ?? "ERROR" }
        }).ToString();
Aragas commented 1 year ago

https://github.com/Aragas/Bannerlord.MBOptionScreen/blob/6f096afbb2126601afccfe14c2fc5a38ef9c144f/docs/articles/MCMv5/mcmv5-soft-dependency.md?plain=1#L48

TextObjectHelper has been removed in MCM5.

Seems must be changed to:

public override string DisplayName => new TextObject("{=CustomSettings_Name}Custom {VERSION}",
        new Dictionary<string, Object>
        {
            { "VERSION", typeof(CustomSettings).Assembly.GetName().Version?.ToString(3) ?? "ERROR" }
        }).ToString();

Fixed, thanks!