A third pane-child bug, I'm on a roll!
In my Skin Input library that I'm working on, I noticed an even stranger bug than all my previous ones; can-scroll and size behaving strangely.
EDIT:
The following snippet:
proc/Set_pane(client/owner,size="0x0")
var/list/params = new
params["is-visible"] = "true" params["size"] = size world << size params["background-color"] = PromptMaster.bg_color
winset(owner,"JPromptPane-[owner.computer_id]",params)
return "JPromptPane-[owner.computer_id]"
|
Will not work, whereas the following will:
proc/Set_pane(client/owner,size="0x0")
var/list/params = new
params["is-visible"] = "true" params["size"] = size world << size params["background-color"] = PromptMaster.bg_color
winset(owner,null,"JPromptPane-[owner.computer_id].is-visible=true;JPromptPane-[owner.computer_id].size=[size];JPromptPane-[owner.computer_id].background-color=[PromptMaster.bg_color];")
return "JPromptPane-[owner.computer_id]"
|
EDIT #2: Fixed typo, the second arg for winset() in the second snippet should have been null.