mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
show/hide children automagically for simgroups via inspector
operates by shifting oninspectpostapply callback further down the inheritance hieracrchy and add some scripts to trigger sethidden and setlocked for all sceneobjects in a given simgroup if the states are set for that group
This commit is contained in:
parent
482b179baa
commit
bf50af7954
5 changed files with 11 additions and 4 deletions
|
|
@ -489,4 +489,10 @@ function foCollaps (%this, %tab){
|
|||
case "container2":
|
||||
%tab.visible = "0";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function simGroup::onInspectPostApply(%this)
|
||||
{
|
||||
%this.callOnChildren("setHidden",%this.hidden);
|
||||
%this.callOnChildren("setLocked",%this.locked);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue