mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Port retail's AnchorUtil, GridLayoutUtil and LayoutFrame (Lua and XML templates) to !!!ClassicAPI. They are verbatim except PrintAnchorGraph, which prints to chat since 1.12 has no C_Log. GetUnscaledFrameRect and a GMError that does nothing (a player client is never a GM client) come along. The region methods they call: - GetPointByName(point) through GetPoint's own pusher. - ClearPoint(point): ClearAllPoints (0x767620) for one slot, dropping the dependent bit through 0x767FA0 and deleting the node. - IsRectValid(): the stock edge getters' steps, so it is true exactly when GetLeft answers a number. - GetScaledRect() on every region. - GetScale/GetEffectiveScale on textures and font strings: the layout scale the frame hands each region, and 1. - ignoreRect on GetWidth, GetHeight and GetSize: a 0 explicit size stays 0 instead of falling back to the rect.