AGS.Plugin.Lua.LuaScriptFolderInfo.RefreshIcons C# (CSharp) Method

RefreshIcons() private method

private RefreshIcons ( ) : void
return void
        internal void RefreshIcons()
        {
            component.editor.GUIController.ProjectTree.RemoveAllChildNodes(component, Key);
            foreach (LuaScriptFolderInfo subfolder in SubFolders.Values)
            {
                // each subfolder will take over the StartFromNode to recursively add its own children
                component.editor.GUIController.ProjectTree.StartFromNode(component, key);
                subfolder.AddIcon();
            }
            component.editor.GUIController.ProjectTree.StartFromNode(component, key);
            foreach (LuaScriptFileInfo scriptfile in Scripts.Values)
            {
                scriptfile.AddIcon();
            }
        }