mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
A frame that uses its parent's level draws at the parent's level instead of one above it. Retail's ScrollBox and TrimScrollBar templates rely on it for their scroll target and backgrounds. 4.3.4 keeps this as frame flag 0x100000, and its level setter replaces any level it is given with the parent's while the flag is on. 1.12's setter (0x0076A4F0) is the same function without that test; a hook adds it, so SetParent, a parent moving its children, and SetFrameLevel all land on the parent's level. Setting the flag moves the frame and its children to the parent's level, as 4.3.4's SetUseParentLevel does. The XML attribute is read after the node loads, when the frame has its parent, and only when present, so a node's value overrides its template's.