Icons output into output in Developer Help
|
|
When my icons are output into the output, they fail hard and show a minimized size. I tried this code:
mob Login() ..() winset(src, "default.child1", "style='img.icon{width:60;height:60;}';")
|
Code for outputting:
Say(msg as text) if(msg==""||!global.Say) return for(var/mob/M in viewers(8)) M << output("<IMG CLASS=icon SRC=\ref[usr.faceicon]><b><span style=\"color:[usr.SayFont]\">[usr] <font color=white>(</font>[usr.Grade]<font color=white>)</font> says:</b><span style=\"color:[usr.SayFont]\"><font color = white> [html_encode(msg)]","1.IC")
|
Code for changing the icon
mob/verb Change_Face_Icon(F as file) switch(alert(usr,"[usr]. Do you want this face icon?","Face Icon","Yes","No")) if("Yes") usr.faceicon = F if("No") alert(usr,"You have not changed your face icon!")
|
|