mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
* feat(frame): add SetHyperlinksEnabled / GetHyperlinksEnabled 3.3.5 has SetHyperlinksEnabled/GetHyperlinksEnabled on ScrollingMessageFrame and SimpleHTML only, so register them on those two types' method tables (0x00CF5294, 0x00CF5328), and hook the three functions both types fire OnHyperlinkEnter/Leave/Click through (0x007A3780, 0x007A37B0, 0x007A37E0) to skip the script while a frame's hyperlinks are off. On stays the default, which is vanilla's behavior. Zygor Guides Viewer 2.0 turns hyperlinks off on the step lines it fills with Gold Guide item lists, and back on when they show guide steps. Verified in-game (1.12.1 client via VanillaFixes): both types report true by default, false after SetHyperlinksEnabled(false) and true again after SetHyperlinksEnabled(true), and a plain Frame has neither method, as in 3.3.5. Not yet checked: the skipped script itself (a click on a link with hyperlinks off), which needs the mouse; that check runs next session. * refactor(frame): gate hyperlink scripts via RunnerHook, keep Leave Replace the three MinHooks on the per-type hyperlink fire functions with a Frame::RunnerHook subscriber keyed on the script slot (+0x320 Enter, +0x330 Click). OnHyperlinkLeave is never suppressed, so a tooltip shown before hyperlinks were disabled still closes. Parse the argument with the engine's loose boolean (default on), as 3.3.5's setter does. --------- Co-authored-by: Brues <5278969+brues-code@users.noreply.github.com>