The game's own animation could not slide the Buffs helper away cleanly: it moved each piece at its own scale and left icons in text behind. Moving the window's own position a step each drawn frame works, costs about two milliseconds a slide, and is now a module made for reuse. A window the game has locked fades instead.
The question
Can a window be animated off the screen when a fight starts, and back after it, for any window and in any addon?
Why it mattered
The Buffs helper was hidden for every fight. I wanted it animated away instead, as a module to reuse, and saw why keeping it shown mattered: "why can't it be left visible once it's off screen so the combat lock doesn't upset action buttons?". A window holding cast buttons cannot be hidden once the combat lock is on, but one already off the screen can just stay there.
How it was done
The first build used the game's own animation, a Translation held at its end for the fight. In game on 2026-11-12 it went wrong. I wrote: "the animation for sliding the window away isn't working properly", "oddly it works in my simulator", and, when the AI did not see it: "you just aren't animating off correctly, THERE IS A BUG - and I can't get you to understand that - I asked if a video would help?".
My screenshots and the frame inspector showed it: the border, drawn at three quarters size, went three quarters of the way, and the class icon written into a line's text stayed where it was. The animation moves each piece at its own scale and does not move pictures inside text.
The AI proposed moving the window's position itself, a little each drawn frame. I called it "a cop out" and asked how WIM, the whisper addon, does its combat slide. Reading WIM's code showed the same method, a copy of Blizzard's old step animation. I then objected to what sounded like a blocking loop: "I'M NOT GOING TO ALLOW THIS TO BE DONE IN A CLOSED 0.4 SEC GAME LOOP". The AI explained that it is one short step per drawn frame, with all windows sharing it, and was asked to log the cost.
The box then did not come back after a fight, twice, for reasons in the pinning code, fixed from the log. Next the Give page vanished instead of sliding. A probe measured why: the combat lock comes on the next frame, 4 to 13 ms after the fight-start event, and a move of a window holding cast buttons is then refused.
The AI said fading would not solve it. I wrote: "you're giving up again - think outside the box: if protected animate fade out, when fully transparent - hide it - when combat finishes get it off screen, show it, fade it back in, slide back on?". A probe showed fading allowed under the lock and hiding refused, so a locked window now stops taking the mouse before the lock, fades out where it is for the fight, and slides back in fading in after it.
What was seen
Cost, measured from the log on 2026-11-12: 61 steps, 1.6 to 2.2 ms in all, the longest step 0.13 ms. When nothing moves, nothing runs.
The slide's time was chosen by eye in game: 0.4 s, then 0.3 ("didn't seem to make much difference"), then 0.2.
"Yup - that worked as expected" for the fade; and once the cast buttons were moved out of the box and off their anchors when unused, "done: slides all round that time".
Collapsing to the title bar was added as a second style and checked by film in Lizzard, see the Quest Log entry linked below. Its in-game check is still to come.
The decision
SlideAway.lua: one file, made to be copied into any addon. It moves the window's own anchors a step each drawn frame, puts them back exactly at the end, reports the cost, and fades a locked window instead. The way a window goes away is a setting: None, three kinds of slide, Collapse or Fade.
Ways tried
Never give up, never surrender
Where the AI stalled, and what it took to get past it.
The AI said fading a locked window would not help and proposed a stand-in copy instead. I wrote: "you're giving up again - think outside the box", and laid out the fade-out, slide-in plan. The AI agreed it had stopped too early; two probes showed fading allowed and hiding refused, and the plan worked as I described it.
Earlier I pushed on the animation bug itself, which the AI did not grasp at first: "if you don't understand the problem you will never fix it".
Still not known
- Whether OAP UnitButtons' lent buttons turn their own mouse back on in the middle of a fight is not verified.
- The Collapse, Fade, None and directional slide styles are not yet confirmed in game.
See also
Sources
The project files and commits this report was written from.
- OAPPartyUtils: SlideAway.lua (header comment)
- OAPPartyUtils: PLAN.md, 'Windows slide away for a fight'
- OAPPartyUtils: studies/2026-11-13-collapse-feasibility/REPORT.md
- OAPPartyUtils: Claude transcript 78db918d, 2026-11-12 and 2026-11-13
- WIM: Sources\WindowHandler.lua and Sources\Animations.lua (read 2026-11-12)