mob/verb/icos()
var/list/choices=list(
"Random Girl 1","Random Girl 2","Random Boy 1","Random Boy 2","Random Boy 3")
usr << browse_rsc('players.dmi',"players.dmi")
var/grid = 0
var/icons = {"<style type="text/css"><!--body {margin: 0; padding: 4; background-color: #747474; background-image: url(dmu_av_bg.png); background-position: top; background-attachment: fixed; background-repeat: no-repeat; } .style1 { color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold;} --></style><head><title>Choose Icon...</title></head><center><font face="arial"><body scroll="no"><table width="100%" border="0" cellpadding="0"><tr>"}
for(var/X in choices)
world << "[X]"
icons += {"<td align="center" valign="middle"><a href='?src=\ref[src];picon=[X]'><IMG SRC='players.dmi' ICONSTATE="[X]" ICONDIR=SOUTH border="0" alt="[X]"></a></td>"}
grid++
if(grid==4) { icons += "</tr><tr>" ; grid = 0 }
usr << browse(icons,"window=icon;size=284x218;border=0;can_close=1;can_resize=0;can_minimize=1;titlebar=1")
return
Problem description:
It shows the same icon for every item in the list in the final HTML window. It always goes to the first ICON in my players.dmi. Everything else works fine and appears normal, i checked that X equaled the right text and it does.
If i use the same code to output to an output window instead (like the chat window) it works fine....