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
Mar 17 2014, 5:02 pm
|
|
making use of multiple icon_state(s), yes.
|
obj 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. |
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
|
var/icon/my_icon = icon('myfile.dmi',"my_state") It's not purdy, but it works. |