Updating localised texts using control bindings on their change
Posted: Tue Feb 12, 2019 7:11 pm
At present, it seems if I use a custom-input key in a tooltip there isn't a way to detect when this key is changed so I can recreate the tooltips.
If I have in my locale
1: mod has the custom-input default to CONTROL + M
2: on player join server create GUI tooltip using the above locale it shows "COTNROL + M".
2: change my control bindings to be CONTROL + T
3: look at tooltip and it still says CONTROL + M
It would be nice for either the base game to update the localisation (if possible?) or to have a control binding event that I can react to and then recreate my tooltip for that user so it uses the new control binding.
If I have in my locale
Code: Select all
to do stuff press: __CONTROL__my-custom-key__
2: on player join server create GUI tooltip using the above locale it shows "COTNROL + M".
2: change my control bindings to be CONTROL + T
3: look at tooltip and it still says CONTROL + M
It would be nice for either the base game to update the localisation (if possible?) or to have a control binding event that I can react to and then recreate my tooltip for that user so it uses the new control binding.