ID:269067
![]() Feb 14 2005, 7:57 am
|
|
How can u code a change icon state verb that allows u to see all the icon states in the icon instead of having to type in the icon_state you want?
|
![]() Feb 14 2005, 8:29 am
|
|
Look up the icon_states() proc.
|
I would like to add something to this. When you add all of your icon states to a list, make sure you add a "" state so you can set back to default. I've seen many people forget this and it gets annoying when you want to set back to default.
-Angel |
Angel of Flames wrote:
I would like to add something to this. When you add all of your icon states to a list, make sure you add a "" state so you can set back to default. I've seen many people forget this and it gets annoying when you want to set back to default. You could do if("" in asdf) asdf+=" " if(" ") src.icon_state="" Or something, I dunno' |
Hell Ramen wrote:
You could do I was just thinking more along the lines of: var/list/IconState=iconstates(src.icon) |
A blank icon_state will basically mean the same thing as null. If there is no icon_state for the blank, or null state, the person can always switch to another, because I would take my best bet in saying that you can use this verb more than once. 0.o
|