OAP Lizzard A game interface engine
Game interfaces, outside the game Settings
← The journal
Painting · Drawing the picture Fix follow-up

Slanting lines drawn as lines: an addon's chart now matches the game

OAP Spell Stats draws its healing trend as a thin line, and in Lizzard the steep stretches came out as solid green blocks. Lizzard had never learned to draw a slanting line. Now all three of its painters do, and the chart matches the game.

The same OAP Spell Stats chart drawn by Lizzard after the fix. A thin green line with small squares at each point wanders across the chart, with no solid blocks, and the scattered squares around it are as in the game.
After the fix: the same chart, the same fights, the same framing. Each step is now a thin line between two points, and the chart matches the game's picture. Lizzard's three painters now draw only the pixels whose centres lie on a slanting line.
Read the entry: Slanting lines drawn as lines: an addon's chart now matches the game

The Trends chart joins each fight's average to the next with a two-pixel line. Lizzard laid every line out as the rectangle around it. That is exact for the upright and level lines of Blizzard's Edit Mode, which were all it had needed, but a slanting line was drawn by filling its rectangle. On a gentle slope the rectangle is thin enough to pass for a line. On a steep step it is a block as tall as the step.

Claude kept the rectangle as the area to draw and gave the painters the line itself: its two ends and its thickness. A pixel is drawn when its centre lies between the ends and within half the thickness of the line. The software painter that makes Lizzard's pictures, the Direct3D painter of the live window and the Godot painter all use that rule. Their tests draw steep, shallow, thick and textured lines and check that the painters agree pixel for pixel.

The pictures show the same 1,000 recorded fights in the game and in Lizzard. The game's is a crop of my screenshot. The picture before the fix was taken afterwards, from a kept copy of the earlier build, so that it matches the picture after the fix.

Still a guess: how the game finishes a line's ends, and whether it smooths their edges. At this size the pictures can't tell, so both are on Lizzard's list of unverified behaviour.

Follow-up, : The same afternoon, the rest of the addon's Lizzard reports. Its efficiency map turns its side label a quarter turn, and Lizzard could not turn text, so the addon laid the label flat. Text now turns in all three painters, about its starting end: that is how the game turns it, as the addon's author saw in game in October. Which point of the end it turns about is still a guess. Two smaller fixes came with it, for the addon's tests: a mouse-wheel step sent from Lua now works, and a test can open a world with its own saved fights instead of feeding them in as code. The last picture in the album shows the turned label.

The pictures of this work

Each step's album, shown by its cover picture. Open one for all its pictures, their dates and limits.