If these images supported .tint, i could simply do this:
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 = read_color_settings("roboport-logistic")
data.raw["utility-sprites"].default.construction_radius_visualization.filename = "__palettecleanser__/graphics/visualization-roboport-radius.png"
data.raw["utility-sprites"].default.construction_radius_visualization.tint = read_color_settings("roboport-construction")
Related