Stat() statpanel("Stats", mystats) statpanel("Abilities", myabilities) statpanel("Inventory", contents) if(buying) statpanel("Purchase", buy_content) ..()
This is the code I use to open a new stat panel if a person is in "buying" mode. All of this worked beautifully two patches ago. After 293 the "Purchase" panel is created when in buying mode, but it's contents are not shown unless the user clicks on another panel, and then back to the Purchase panel.
Upgraded to 294, and this is still buggy.
I'll accept either a patch that puts it back how it was, or someone telling me how to alter the above code to make it work as intended.
mob
var/mystats
var/myabilities
var/mypurchase
var/toggle
New()
mystats = list("a","b")
myabilities = list("c","d")
mypurchase = list("e","f")
verb/toggleon()
toggle = 1
verb/toggleoff()
toggle = 0
mob/Stat()
statpanel("Stats", mystats)
statpanel("Abilities", myabilities)
statpanel("Inventory", contents)
if(toggle)
statpanel("Purchase", mypurchase)
..()
And when I did "toggleon" the "Purchase" panel appeared. Clicking on it showed the correct contents. How are the events occuring in your world?