mob
verb
buycards()
var/onoff=params2list(winget(src,"deckbuy","value"))
if(onoff[3]==1)
world<<"true"
winshow(src,"deckbuy",0)
else
world<<"false"
winshow(src,"deckbuy",1)
I just want to be able to click a button, which calls "buycards", and if the menu is already opened remove it, otherwise make it appear.
EDIT: Also, I'm trying to get the list of cards in to a grid window:
mob
verb
add_cards_to_window()
var/obj/card/list/c=new
c+=typesof(/obj/card/)
for(var/a in c)
var/n=new a
world<<n
winset(src,"deckbuy",n)
Do you mean this: