mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
frame:SetPassThroughButtons(...) names the mouse buttons a frame lets through: a press of one of them skips the frame, which gets no OnMouseDown, OnMouseUp or OnClick for it, and goes to the next click-enabled frame under the cursor. The frame keeps its other buttons and its hover. Each call replaces the list, no names clears it, and an unknown name adds nothing without an error. XML takes passThroughButtons="LeftButton, RightButton". The press handler 0x007662C0 copies the input payload behind a 0x10-byte header at [ebp-0x40], so the pressed button bit sits at +0x14 (OFF_UI_MOUSE_EVENT_BUTTON; 0x0076BF70 ANDs the same field with the drag mask). Frame::MouseInput already replaces the target read at 0x00766389 with its click walk; the thunk now also passes that event copy, and the walk skips a frame whose mask holds the button. The world frame sits in the same mouse lists at stratum 0, so a passed press with no frame below still reaches the world. A press while another button is held goes to the pressed frame (+0x80) before the target read, so it is routed as the engine routes it. The walk still runs only when some frame uses one of these features. Button names resolve through Frame::ClickEvents::MaskForButtonName, next to ButtonNameForMask; Bindings::Command's private copy of the table is gone. Also lists the mouse click/motion methods in the README.