Creations Favorites Medals Posts ID:601918
ID:601918

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("[usr] ([usr.Grade]) says: [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!") 
 #1 Mar 30 2012, 12:45 am 'style' is a property of an output control, but you seem to be applying it to a child control.
 #2 Mar 30 2012, 2:56 am Before, it was linked to the external output which is linked to the child, still did not fix the issue.
 #3 Mar 30 2012, 4:03 pm Did you reference it through the child, or through the pane? (ie "default.child1.IC" or "1.IC") Also, you can output directly to the viewers() list, you don't have to loop through each mob and output to it individually. That's a terribly unhelpful control name ("1"), by the way.
 #4 Mar 30 2012, 6:18 pm It was 1.IC. Also, the reason why I output it each per mob is for the player logs which contain all the Say things.