ID:2221731
 
is there anyway i can code buttons so i can change the icon based on the icons state instead of needing to make 50 million different icon files for each change to a button? if so how do i do it cause im only aware of doing it via icon files
What?
can i change a buttons icon by using icon states instead of icon files
Just set the icon_state instead of the icon.
ya but how do i code that?
i mean the winset part i have no idea how to code as a icon state so what do i do?
You are over-complicating this.

If you are going to use the BYOND interface, then use it and separate the assets as needed.

Alternatively... simply don't use the BYOND interface; use HUDs.
thing is id rather just goto one icon file then to have to scroll through over 10+ icon files thats why if i can code it to use icon state thatd save me time
winset(src,"mywindow.mycontrol","image='[icon(myicon,mystate)]'")


Or something along those lines.
In response to Nadrew
Doesn't work.