ID:327682
 
Code:
mob/proc
ShowItem(var/obj/A)
var/icon/I = icon(A.icon,A.icon_state)
winshow(src,"ItemDesc",1)
labelimage(src,"ItemPic",I,1)
labeltext(src,"ItemName","[A.name]")
labelwraptext(src,"ItemName",1)
winset(src,"ItemWorth","text=[A.price]")
labeltext(src,"Description","[A.desc]")
labelwraptext(src,"Description",1)

proc
labelimage(mob/m, label_id, image/image, stretch=0)
if(ismob(m))
if(isnull(image))
winset(m,label_id,"image=")
else
winset(m,label_id,"image=[image]")
if(stretch)
winset(m,label_id,"stretch=true")
else
winset(m,label_id,"stretch=false")
else CRASH("Invalid mob.")


Problem description:
The label doesn't even display the icon, I. What the heck am I doing wrong?
The Skin Reference says that the image skin parameter must be an actual file. It will not work with /image or /icon objects.
Thanks Mega and Lige. You guys are the best. I didn't really understand how Skin works so I guess that explained my inexperience in displaying images on Labels. Thanks guys.