[1.1.21] localised_description field for settings doesn't support parameters in LocalisedString properly
Posted: Mon Feb 15, 2021 12:09 pm
I have a setting constructed in the following manner:
The issue is that in the settings window, the description in the game is showing the parameter variable and not the intended result. The localised string works properly when printed in game:

The relevant locale entries are:
Edit: Interestingly, the parametized localization works if I set it to the localised_name field:

Code: Select all
{
type = "bool-setting",
name = "reskins-angels-belts-use-angels-tier-colors",
setting_type = "startup",
order = "bb",
default_value = false,
localised_description = {"mod-setting-description.reskins-angels-belts-use-angels-tier-colors", {"mod-setting-name.reskins-angels-use-angels-tier-colors"}},
-- hidden = true,
}

The relevant locale entries are:
Code: Select all
[mod-setting-name]
reskins-angels-use-angels-tier-colors=Use Angel's tier colors
[mod-setting-description]
reskins-angels-belts-use-angels-tier-colors=Belts and related entities will use Angel's tier coloring when "__1__" is enabled.\n\nOverridden by "Enable Custom Colors".
