ID:162828
 
How can i make it so if you click on an Object it will open up a new Stats Tab and if you click it agian(or DBLCLICK) it will close the tab.
One way is to make a variable that changes when you double-click it. In Stat(), check for the variable, and put the stat panel there.

Example:
obj/Something
DblClick()
usr.clickedSomething=!usr.clickedSomething
mob
var/clickedSomething
Stat()
..()
if(clickedSomething)
statpanel("Something Panel")
//Blah blah blah."
In response to Kaiochao2536
How do u make is disapear?
In response to EmmanuelV
Change the var to false.