ID:140229
 
    Change_IM_Skins(var/T as text)
var/list/skins = Skin
if(T=="colors")
winset(src,"im_skins.skins","cells=0x0")
var/Row = 1
for(var/t in skins)
Row++
src << output("<center><font size =1><a href='?src=[t];action=PreviewSkin'>[t]</a>","im_skins.skins:1,[Row]")
mob/Topic(href,href_list[])
switch(href_list["action"])
if("PreviewSkin")
winset(usr,"im_skins.skinp","image=\"[ckey(src)].png\"")
winset(usr,"im_skins.chooseit","command=\"Set-Skin [src]\"")


I want to try and change the image of a label so I can preview the image before I use it.
I am using a grid to display the image's name, but how would I go about making it "clickable" so it actually sets the labels image to what I clicked