You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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
Then you can get the text using
GameTexts.FindText("str_mod_menu_group_1").ToString();
The text was updated successfully, but these errors were encountered: