void RefreshProjectTree()
{
editor.GUIController.ProjectTree.RemoveAllChildNodes(this, SCRIPTS_ROOT);
editor.GUIController.ProjectTree.StartFromNode(this, SCRIPTS_ROOT);
if (!Directory.Exists(lscriptsdir))
{
Directory.CreateDirectory(lscriptsdir);
}
rootScriptFolder.RefreshIcons();
/*
if (Directory.Exists(lscriptsdir))
{
foreach (string s in Directory.GetFiles(lscriptsdir, "*.lua"))
{
string fullpath = Path.Combine(lscriptsdir, s);
string filename = Path.GetFileName(fullpath);
_editor.GUIController.ProjectTree.AddTreeLeaf(this, EDITSCRIPT_PREFIX + fullpath, filename, SCRIPT_ICON, false);
}
}
*/
}