MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / expand

Method expand

Engine/source/gui/worldEditor/creator.cpp:60–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58//------------------------------------------------------------------------------
59
60void CreatorTree::Node::expand(bool exp)
61{
62 if(exp)
63 {
64 if(mParent)
65 mParent->expand(exp);
66 mFlags.set(Node::Expanded);
67 }
68 else if(!isRoot())
69 {
70 if(isGroup())
71 for(U32 i = 0; i < mChildren.size(); i++)
72 mChildren[i]->expand(exp);
73
74 mFlags.clear(Selected);
75 mFlags.clear(Expanded);
76 }
77}
78
79//------------------------------------------------------------------------------
80

Callers 4

guiRolloutCtrl.cppFile · 0.45
setGroupExpandedMethod · 0.45
setGroupsExpandedMethod · 0.45
onMouseDownMethod · 0.45

Calls 3

setMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by 2

setGroupExpandedMethod · 0.36
setGroupsExpandedMethod · 0.36