mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Cross-checked against 4.3.4's Tooltip_Scripts: - GameTooltip:SetAnchorType(type [, x [, y]]) was missing in 1.12, but the shipped GameTooltip_ShowCompareItem port (and pfUI) call it. It stores the offsets and, with an owner, the anchor, then runs the engine's position routine with force. - GetMinimumWidth and GetPadding read the fields 1.12's SetMinimumWidth and SetPadding already write; GetPadding returns the stored internal value, as 4.3.4 does. - IsUnit(unit) compares GUIDs and returns 1 or nil. The token is probed first, because 1.12's resolver raises on an unknown name. - 1.12's SetOwner has nine anchor names and sends every other one to ANCHOR_LEFT. ANCHOR_TOP and ANCHOR_BOTTOM get codes of their own; one hook on the position routine places them, and SetOwner and GetAnchorType are re-registered to know the names. ANCHOR_CURSOR_RIGHT is not added.