New to skins; button problem! in Developer Help
|
|
Code:
if(usr.Ships.len) var/i for(i=1,i<=usr.Ships.len,i++) var/mob/Ships/S = usr.Ships[i] var/list/params = new params["parent"] = "Merch" params["type"] = "button" params["command"] = "say \"This is a new button.\"" params["pos"] = "140+([i*36]),15" params["size"] = "32x32" params["anchor1"] = "0,0" params["image"] = "[S.icon]" winset(usr, "newbutton[i]", list2params(params))
|
Problem description:
I have three ships, so it should make three buttons each with [S.icon] as their image. Instead it makes only one button, and the image on it is kinda a cut between two of the directions within S's icon file... any idea why this is happening?
|
var/list/params = list("parent"="Merch","type"="button")//etc