Skip to content

Commit

Permalink
Update manager.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Feb 7, 2022
1 parent b85bc31 commit cf7ed3d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ dgsElementData = {[resourceRoot] = {}} ----The Global BuiltIn DGS Element Data
--Element Type
dgsElementType = {}
--

--Plugin Creation Manager
addEventHandler("onDgsPluginCreate",resourceRoot,function(theResource)
ChildrenTable[source] = ChildrenTable[source] or {}
insertResource(theResource,source)
local typ = dgsElementData[source].asPlugin
dgsPluginTable[typ] = dgsPluginTable[typ] or {}
table.insert(dgsPluginTable[typ],source)
addEventHandler("onDgsDestroy",source,function()
local id = table.find(dgsPluginTable[typ],source)
if id then
table.remove(dgsPluginTable[typ],id)
end
end,false)
end)
--Layer System
function dgsSetLayer(dgsEle,layer,forceDetatch)
if not(dgsIsType(dgsEle)) then error(dgsGenAsrt(dgsEle,"dgsSetLayer",1,"dgs-dxelement")) end
if dgsElementType[dgsEle] == "dgs-dxtab" then return false end
Expand Down

0 comments on commit cf7ed3d

Please sign in to comment.