ID:174054
 

obj
Folder
icon= 'Folder.dmi'
Click()
if(!usr.folder)
usr.folder= src
else
usr.folder= null
mob
var/obj/folder
Stat()
...
if(folder)
statpanel("[folder.name]", folder.contents)

Everything seems to work fine up here,but im wanting to figure out how to beable to open up more then one of statpanel,There could be more then one folder out, Lets say the player wants to view a Folder inside a Folder*Exa*:Player Clicks a folder revealing another folder in its contents. I want the player to be able to click that folder and keep the curret statpanel open and to reveal the new statpanel. Anyone have any advice?
instead of using:
else
usr.folder= null

You could take that out and do:
obj
Folder
icon= 'Folder.dmi'
Click()
if(!usr.folder)
usr.folder= src
DblClick()
usr.folder= null
That way the folde.....
nvm, that wouldn't work....
maybe:
var/list/openfolders = list("")
obj
Folder
icon= 'Folder.dmi'
Click()
usr.folder= src
usr.openfolders+=list("[src]")
DblClick()
if(usr.folder== src)
usr.folder = null
usr.openfolders-=list("[src]")


and then for the stats you can use the list and usr.folder to have multiple folders open, and usr.folder in the one on top...

I think that'll work, but not completly sure ><
In response to DarkCampainger
I cannot get it to work, Its still limited to one statpanel and when you click it it only shows the name of the statpanel inside of it x.x.
In response to Texter
darn =(
In response to DarkCampainger
Thanks for the help given, Dark.

Anybody else have any ideas?