Displaying icons in browse() in Developer Help
|
|
Code:
for(var/mob/Char/M in List_Of_Characters) var/q = browse_rsc(M) var/image/I = image(q,icon_state = "") world << I Display += {" <td align = "center"><img src=[I]></td> <br><td align = "center">[M.name]</td> <td align = "center">Description: [M.Description]</td> </tr>"} src << browse("Character List<BR><BR> [Display]","window=Character List;can_close = 1")
|
Problem description:
The code above is basically a convoluted (after a while) attempt to display a unit's icon in browse() (in it's default icon state) without having to make a seperate image file for each one (this will take too much time). Is it possible, and if so, what am I doing wrong?
|
edit: tested and it did work.