Page 1 of 1

Add invert_colors to button_style

Posted: Fri Mar 14, 2025 8:05 pm
by _KiRiK_
123.png
123.png (71.01 KiB) Viewed 170 times
hi. I'm making an interface mod and ran into a problem.
black icons are not visible and their color needs to be inverted.
but invert_colors does not work for button_style.
Could you add this functionality?

Re: Add invert_colors to button_style

Posted: Sat Mar 15, 2025 9:00 am
by curiosity
If at all, it should be a property in SpritePrototype, not button style. But you can already include manually modified files and use those.

Re: Add invert_colors to button_style

Posted: Sat Mar 15, 2025 9:49 am
by _KiRiK_
curiosity wrote: Sat Mar 15, 2025 9:00 am If at all, it should be a property in SpritePrototype, not button style. But you can already include manually modified files and use those.
hmm. This is not what it should be according to the logic of things.
The button style should define this.
if a mod adds its own button to shortcuts or mod_gui_button, then it will be black and I need to catch all the icons and invert their colors. what if the icon is colored? it will invert its colors and ruin everything.
Now I understand why this won't work properly. and why the game has icons of black and white versions.
3.png
3.png (45.94 KiB) Viewed 114 times
2.png
2.png (28.42 KiB) Viewed 114 times
4.png
4.png (118.54 KiB) Viewed 114 times

for shortcut and mod_gui I will have to make a light background.
for other buttons I will invert the colors of the sprites