mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
A multi-line edit box places its caret, selection pieces and a click's cursor by rows of one height (font height + spacing, pixel-aligned), while the render moves a line holding an icon taller than the font, and every line after it, down by the overflow, and the box grows to match. Below the first tall-icon line the caret and highlight sat above their text, and OnCursorChanged reported that y, so ScrollingEditBoxMixin's scroll-into- view stopped short (pfUI chat copy with faction emblems). 4.3.4's CSimpleEditBox has the same fault: UpdateVisibleCursor, UpdateHighlightArea and ConvertCoordinateToIndex are icon-blind too. So this goes past 4.3.4, as editbox/CharClass does. EditBox::IconRows co-hooks the three placers and gives each the render's move, from the new Text::InlineTexture::LineIconShift over the box's own line table: the click's y is mapped onto the uniform row before the engine reads it; the selection piece and caret are re-anchored after, with the engine's own x; the caret's OnCursorChanged is muted for the original call and fired once with the corrected y through the engine's forwarder, with the same packing PlaceCaret uses (verified in the disassembly and the binary's constants). Also fixes the "caret positioner" misnomer for 0x77DE70 (the selection- piece placer) in Offsets.h and the docs.