Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCM Documentation #60

Open
2 of 5 tasks
Aragas opened this issue Jul 1, 2020 · 2 comments
Open
2 of 5 tasks

MCM Documentation #60

Aragas opened this issue Jul 1, 2020 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Aragas
Copy link
Owner

Aragas commented Jul 1, 2020

  • Document MCM Interfaces
  • Add inheritdocs in MCM
  • Document MCM
  • Document MCM.UI
  • Link against Bannerlord API
@Aragas Aragas added the documentation Improvements or additions to documentation label Jul 1, 2020
@L34T
Copy link

L34T commented May 22, 2023

public override string DisplayName => TextObjectHelper.Create("{=CustomSettings_Name}Custom {VERSION}", new Dictionary<string, TextObject>

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
Copy link
Owner Author

Aragas commented May 22, 2023

public override string DisplayName => TextObjectHelper.Create("{=CustomSettings_Name}Custom {VERSION}", new Dictionary<string, TextObject>

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants