]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/custom/visible.qc
Adding my current version of the scmenu to the nexuiz cvs.
[divverent/nexuiz.git] / scmenu / source / custom / visible.qc
1 // Property of Alientrap/AK
2 // custom/visible.qc
3
4 void( entity pItem ) Nex_MakeOnlyVisible =
5 {
6         local entity lChild;
7
8         for( lChild = pItem._parent._child ; lChild ; lChild = lChild._next )
9                 lChild.flag = lChild.flag | FLAG_HIDDEN;
10
11         pItem.flag = pItem.flag - FLAG_HIDDEN;
12
13         Menu_UpdateRunFlags();
14 };