[Twinsen][1.1.12][Minor] Formatting for recipe temperatures
Posted: Sun Jan 17, 2021 7:18 pm
A few quibbles with the way tooltips work for recipes that have results which set fluid temperatures.
1. Recipes with multiple results are handled differently to a single result. For single-product results with a temperature, the temperature is appended to the recipe name in the header, regardless of whether it is using the default recipe name localisation or an explicit localised_description property. For multiple-product results, it isn't. Setting or clearing main_product doesn't seem to affect this. My preference would be to not have it in the recipe header at all, but consistency would be my second choice.
2. The temperatures always give two decimal places (e.g. 1800.00 °). This seems excessive - I understand the need to cap repeating decimals but if it's a round number in the prototype, it would be nicer to have no decimals.
3. Temperatures in these tooltips don't appear to be using the format-degrees locale in core/locale/XX/core.cfg. This is set to __1__° with no space between the value and the degrees symbol, but recipe tooltips are unaffected if you override it, so I don't know where they are getting the symbol ° from. The tooltips also add an extra space between the value and the symbol (which isn't in the format-degrees locale string) which looks naff in brackets, especially with no scale (what kind of degrees are they?). This contrasts with boilers ,which show °C, but again, this doesn't seem to be localised text. TL;DR there's no way for a mod to standardise or adjust these temperature units and no way (that I can find) to provide multi-language support for the units.
1. Recipes with multiple results are handled differently to a single result. For single-product results with a temperature, the temperature is appended to the recipe name in the header, regardless of whether it is using the default recipe name localisation or an explicit localised_description property. For multiple-product results, it isn't. Setting or clearing main_product doesn't seem to affect this. My preference would be to not have it in the recipe header at all, but consistency would be my second choice.
2. The temperatures always give two decimal places (e.g. 1800.00 °). This seems excessive - I understand the need to cap repeating decimals but if it's a round number in the prototype, it would be nicer to have no decimals.
3. Temperatures in these tooltips don't appear to be using the format-degrees locale in core/locale/XX/core.cfg. This is set to __1__° with no space between the value and the degrees symbol, but recipe tooltips are unaffected if you override it, so I don't know where they are getting the symbol ° from. The tooltips also add an extra space between the value and the symbol (which isn't in the format-degrees locale string) which looks naff in brackets, especially with no scale (what kind of degrees are they?). This contrasts with boilers ,which show °C, but again, this doesn't seem to be localised text. TL;DR there's no way for a mod to standardise or adjust these temperature units and no way (that I can find) to provide multi-language support for the units.