[posila] [0.17.64] Chart rendering ignores tint on utility sprites
Posted: Sat Aug 10, 2019 4:44 pm
Use case: trying to update a mod to change overlay color of Roboport radius (among other things), to accommodate colorblind players.
Changing the sprite to a colored png file works as expected, in the world and in the chart.
Changing the sprite to a white png file, then setting .tint works in the world, but results in a plain white overlay in the chart.
Example:
(The opposite problem - tint worked in chart, but not world - was discussed here and here and was fixed in 0.15.11.)
Please consider enforcing sprite tint in the chart so players would be able to customize overlay colors via mod settings.
Thanks!
Changing the sprite to a colored png file works as expected, in the world and in the chart.
Changing the sprite to a white png file, then setting .tint works in the world, but results in a plain white overlay in the chart.
Example:
Code: Select all
data.raw["utility-sprites"].default.logistic_radius_visualization.filename = "__palettecleanser__/graphics/visualization-roboport-radius.png"
data.raw["utility-sprites"].default.logistic_radius_visualization.tint = {r = 0.5, g = 0, b = 0.5, a = 0.5}
Please consider enforcing sprite tint in the chart so players would be able to customize overlay colors via mod settings.
Thanks!