Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: densming on Sun 03/05/2009 04:09:57

Title: Editor Plugin API: Refresh Project Tree?
Post by: densming on Sun 03/05/2009 04:09:57
Is there a way to refresh the Project Tree with the Editor API?  For example, if I change a dialog's name can I force the editor to refresh the tree (or at least the Dialogs component) after I made the change?  I've looked through the exposed methods for the various objects in the Editor Plugin API and I can't find one.

The closest thing I found was CreateNewView method which adds a new view and then refreshes the ProjectTree.  I thought about a workaround where I create a temporary view just for the sole purpose of refreshing, but this is a little clunky and besides, I didn't see a way to RE-refresh the list after I removed the temporary view!  :P

Title: Re: Editor Plugin API: Refresh Project Tree?
Post by: Pumaman on Sun 03/05/2009 11:51:36
I don't think this is currently possible with the Plugin API, so I'll look into adding it to a future release.
Title: Re: Editor Plugin API: Refresh Project Tree?
Post by: densming on Mon 04/05/2009 18:29:41
Thanks CJ! The API is great, by the way. I've just started playing with it. A pity there aren't more people using it but I guess that's a testament to the editor already being very extensive! I'd love to see this documented more; perhaps Ill add this as an "advanced" topic to my video tutorials.