mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Backport modern inline-texture markup to the 1.12 text engine: |Tpath:h|t renders an icon inline in FontStrings / chat, for BLP and uncompressed TGA. - Rendering primitive: resolve a path to a resident CGxTexture via FUN_0044acf0 and draw it as a textured quad through the UI text VB path. - Positioning: co-hook the per-line glyph emitter (FUN_005ccbe0); render plain runs by delegating to the original per segment (threading the pen through linkState[4], read as a float), record icon quads at the pen, and flush them in the paint pass (FUN_005c8fe0) translated by each node origin. Handles the FontString pipe-doubling (|T -> ||T), the bit-3 per-call batch-clear mode, multi-icon and multi-line accumulation, and font-relative vertical centering. - Measure/wrap: co-hook the shared tokenizer (FUN_005c2810) so an inline-texture span is one near-zero-width token, so icons no longer force early line wrap. - Editbox exclusion: read the focused-editbox global (DAT_00cf4dc8) and suppress icon recording while an input field is focused, so editboxes show raw, editable markup while cached display text keeps its icons. Diagnostic scaffolding (stats/capture Lua helpers) is still present. Follow-ups: exact icon width in measure (hover-box accuracy), texcoords for sprite sheets, vertex color, and the already-built editbox case. See docs/InlineTextureEscapes.md.