The UpdateGrid() verb:
mob
verb
UpdateGrid()
if(winget(src, "button1", "is-checked")=="true")
for(var/obj/Items/I in src)
src << output(I, "grid1")
if(winget(src, "button2", "is-checked")=="true")
for(var/obj/JutsuCards/J in src)
src << output(J, "grid1")
if(winget(src, "button3", "is-checked")=="true")
for(var/mob/M in world)
src << output("[M.key]([M.name])", "grid1")
Adding an obj to src.contents at Login():
// ...
src.contents += new/obj/JutsuCards/Rashoumon
src.contents += new/obj/JutsuCards/Sharingan_One
// ...
So when I run the game, it only shows the "Sharingan One" icon and name. (unless the jutsu button (button2) is selected by default, which it is sometimes and I don't know why, then it shows Rashoumon until I click the button again) I want it to show all the JutsuCards in the contents...why isn't this working? Thanks!
This is a way to do it, there are much better ways if i'm not wrong.