specs(watch-568): occluded-button OnTop rollout + MouseTable occlusion pins
merge ? CI rot GitHub ↗lane1/watch-568-occluded-buttons · PurpleFuchs · 50 Dateien · +1827 −280 · 2026-11-07
REPO-WATCH 65b8b6e2..9e88fdf5 — occluded buttons (6a4d3ca6)
Spec-only pins for the occluded-button rollout: buttons under hidden windows no longer hover, press, or click-sound.
MouseTable — occlusion context (mechanism)
SetOcclusionContext(WindowData, index)— armed byDrawNewGui.drawWindowsper active window (back-to-front loop order),SetOcclusionContext(nil)after the loop.isOccludedlazy-requiresGuiElements.NewGui.WindowTopFlags;buildInteractionshort-circuits toFALSETABLEwhenIsUncovered(data, idx, x, y)is false.- All hit-tests die:
GetInteraction,GetInteraction_Rounded,GetCircleInteraction— and it beatsIncludeCaptured(check runs before the capture filter). - Spec:
WindowTopFlagsstub + 3 its (arm+kill, disarm-restores, beats-capture) —SetOcclusionContext(nil)inreset()so the context can't leak. 23/23
DrawNewGui — the trigger
- Arms
(WindowData, index)around each active window's draw, clears after the loop — pinned by wrappingSetOcclusionContextin the real Draw path (highest index first, final call is the clear; post-Draw disarm verified by forcingIsUncovered=false). 23/23
DrawRoundedCanvasButton — signature change
(P, S, C, Zoom, OnTop, Disabled) — Disabled moved from arg5 → arg6:
OnTop=false: bareIdleface (or fallback rect when canvas nil), noGetInteraction_Roundedread, no sound, dead shell.Disabledstill early-outs before the OnTop check (Disabled beats occlusion — dimmedDface wins).- Spec: +3 its (occluded-Idle, occluded-fallback, Disabled-wins), Disabled calls repinned to arg6. 8/8
OnTop forwarding
| Surface | Pin |
|---|---|
| DrawWideRoundedGuiButton | arg4 → Rounded arg5 |
| DrawBigWideRoundedGuiButton / …2 | arg3 → arg5, Zoom hardcoded 1 |
| DrawUpgradeButton | arg4 → OnTop and GetInteraction or {Pressed={},Release={}} — occluded: no hit-test, no hover glow |
| DrawUpgradeDetails / DrawUpgradeSelection | forward OnTop as DrawUpgradeButton arg4 (stubs record arg4 + assert) |
| DrawHeadBar | X-button now receives OnTop (was hard true) |
Standing-red heals
MiscLibs MakeAndSaveScreenShot: lazy-requiresFrameCompositorsince the compositor wiring —IsActive=falsestub replaces the chain explosion (RenderItems→GetFont→RenderEffects→…). 9/9ScissorCacheButtons: repinned —bufferKey= *localized* text, canvas maker gets the *raw*Label(RawTexttables skip locale entirely),DrawSaveNameErrorButtonlocalizes now. 5/5
insuite (on 9e88fdf5)
MouseTable 23/23 DrawNewGui 23/23 RoundedCanvasButton 8/8 Wrappers 4/4
UpgradeButton 5/5 UpgradeDetails 25/25 UpgradeSelection 7/7 DrawHeadBar 10/10
DrawCanvasButton 7/7 DrawSlider 12/12 MiscLibs 9/9 ScissorCacheButtons 5/5
Gates2 330/330 GatePins2 329/329 GatePins 652/652 GuiElementsSweep 2/2
SourceSweep 3/3 UncoveredExports 14/14
syntaxchk: 4066 OK / 0 ERR / 3 SKIPPED
Carries the unmerged watch-546..567 spec state (PRs #1398–#1417 pending) so the branch suite is self-contained green.