Localization and enum support
There's already a localization system bannerlord is using, which is the GameTextManager.
GameTextManager.LoadGameTexts(..."module_string.xml");
Then with
GameTexts.FindText(id, variation);
You can get the string of corresponding language.
Maybe you can do this in the next version?
And the other thing is enum support. Enum is just like int, but where you show the numbers you show enum.ToString() instead.
This could be very useful.
I like this lib, the menu is awesome, but it still lacks some key features.
[SettingPropertyGroup("Group Name")] [SettingProperty("displayName", "Tooltips")]
Annotations like these make it impossible to make use of the localization method bannerlord provides. It'll be way better if we can just pass the id
[SettingPropertyGroup("str_mod_menu_group_1")] [SettingProperty("str_mod_menu_name_1", "str_mod_menu_tips_1")]
Then you can get the text using
GameTexts.FindText("str_mod_menu_group_1").ToString();
Yes, I found this issue too.
Now I am using conditional compilation("#if" "#endif" sort of things) for the localization as an alternative to compile twice for the two main languages I am supporting right now.
I would like some localization features supported in this lib as well