ID:1521303
 
(See the best response by Nadrew.)
ok so i was wondering if there is a way to hold all the button icons in one icon file without having to make each icon a file separately

making use of multiple icon_state(s), yes.
nono i mean like code wise how would i do it
obj
button
icon = 'buttons.dmi'

attack_button
icon_state = "attack"

defend_button
icon_state = "defend"


for both types of buttons, icon = 'buttons.dmi' will be inherited from the common parent_type of /obj/button. So, inside of your buttons.dmi file, you'll simply make two icon states and label them accordingly.
i mean the interface button not like a object button
Hmm. If you can, the documentation doesn't seem to make it very obvious. I'm gonna look into it a bit more and see if I can help you come up with something.
http://www.byond.com/forum/?post=273651&hl=icon_state%20skin

This thread seems to hint that the dmi format is (or was) not supported. If they are now supported I do not know because I do not frequently use the skin system.
:/ sigh kinda hoped it was as making separate icon files was kinda annoying but i guess it's fine for now
Best response
var/icon/my_icon = icon('myfile.dmi',"my_state")
var/file_reference = fcopy_rsc(my_icon)
winset(src,"mywindow.mybutton","image=\ref[file_reference]")


It's not purdy, but it works.
Awesome. Nice work, Nadrew =) Good to see you again, by the way. It's been a while, buddy!