mirror of
https://github.com/dvdvideo1234/TrackAssemblyTool.git
synced 2025-03-04 03:13:32 -05:00
Updated: Expand-contract nodes factorization
This commit is contained in:
parent
186db54456
commit
7c5c080a14
@ -86,7 +86,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
|
||||
------------ CONFIGURE ASMLIB ------------
|
||||
|
||||
asmlib.InitBase("track","assembly")
|
||||
asmlib.SetOpVar("TOOL_VERSION","8.759")
|
||||
asmlib.SetOpVar("TOOL_VERSION","8.760")
|
||||
|
||||
------------ CONFIGURE GLOBAL INIT OPVARS ------------
|
||||
|
||||
|
@ -1711,18 +1711,11 @@ function GetDirectory(pCurr, vName)
|
||||
end
|
||||
|
||||
function SetExpandNode(pnBase)
|
||||
local bEx = pnBase:GetExpanded()
|
||||
if(inputIsKeyDown(KEY_LSHIFT)) then
|
||||
if(pnBase:GetExpanded()) then
|
||||
pnBase:ExpandRecurse(false)
|
||||
else
|
||||
pnBase:ExpandRecurse(true)
|
||||
end
|
||||
pnBase:ExpandRecurse(not bEx)
|
||||
else
|
||||
if(pnBase:GetExpanded()) then
|
||||
pnBase:SetExpanded(false)
|
||||
else
|
||||
pnBase:SetExpanded(true)
|
||||
end
|
||||
pnBase:SetExpanded(not bEx)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user