[Genhis] [1.1.73] Locale fallback groups do not work on captions or tooltips set after creation
Posted: Fri Dec 02, 2022 7:29 am
If you create a GUI element, then later change its caption or tooltip, locale fallback groups are not parsed. They only work when setting the caption or tooltip on initial creation of the GUI element.
To reproduce:
Run this command:
The first button will correctly show no ice cream, but the second button will show Unknown key: "?".
To reproduce:
Run this command:
Code: Select all
/c game.player.gui.top.add{type = "button", caption = {"?", {"item-name.ice-cream"}, "no ice cream"}} game.player.gui.top.add{type = "button", name = "test"} game.player.gui.top.test.caption = {"?", {"item-name.ice-cream"}, "no ice cream"}