5 lines
253 B
TypeScript
5 lines
253 B
TypeScript
/** Select a view's sibling content while leaving its explicit masks/overlays still. */
|
|
export function popupContent(root: cc.Node, excluded: string[]): cc.Node[] {
|
|
return root ? root.children.filter(node => excluded.indexOf(node.name) < 0) : [];
|
|
}
|