Still Questing A WoW journey and its addons
Still running from Hogger Settings

← Back

Still Questing / Discoveries

Sliding a window off the screen

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.

Proved in game OAP Party Utilities

Concluded Written up

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

WayOutcomeNote
The game's Translation animation Rejected Moves each piece at its own scale; leaves icons in text behind.
Moving the window's anchors a step each drawn frame Retained As WIM and Blizzard's old step animation do.
Putting a locked window off the screen at once Rejected Looked like vanishing, and I wanted an animation.
A stand-in copy of the box to fade Rejected Proposed by the AI before my push; not needed once fading the real box was measured.
Fading a locked window where it is, taking no mouse Retained Fading is allowed under the lock; hiding is refused.
Collapsing to the title bar Executed Built and filmed in Lizzard; not yet seen in game.

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.

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)

In the Quest Log

Happened time from: Claude transcript 78db918d (my message) written up OAP Party Utilities Working in game updated
The Buffs helper slides away for a fight, and back after it

I asked for windows to be animated away when a fight starts, not just hidden, as a module to reuse in other addons. After a day of in-game tests, and one push from me not to give up, the Buffs helper slid away and back on every page.

Read the entry: The Buffs helper slides away for a fight, and back after it

"if you need to hide a window because combat starts can we animate it 'away'. First animation is 'slide off closest edge', and when combat finishes animate it back. Keep this a modular function, I can see me using it in many other addons and places". And the key idea: "why can't it be left visible once it's off screen so the combat lock doesn't upset action buttons?"

The game's own animation left pieces of the window behind, so the window itself is moved instead, a step each frame. But a box holding cast buttons is locked by the game a few milliseconds into a fight, far too soon for any slide, and the Give page just vanished. Claude said fading wouldn't help either.

"you're giving up again - think outside the box", I said: fade it out, then when the fight ends get it off screen, show it, fade it back in and slide it home. The game allowed a fade under the lock, so the box now stops taking clicks before the lock and fades where it is. A few more rounds of tests later: "done: slides all round that time". The slide time was set by eye in game: 0.4 s, then 0.3, then 0.2.

The same evening it grew an Animation setting with six choices, Collapse and Fade among them, for the Buffs helper and the Rolls window. Those had not been tried in game when this was written.

Where this comes from

  • OAPPartyUtils: Claude transcript 78db918d, 2026-11-12 and 2026-11-13
  • OAPPartyUtils: SlideAway.lua
  • OAPPartyUtils: PLAN.md, 'Windows slide away for a fight'