3eec462b4a0a9eeef2306738b56fca52868d347f
It was the one thing in WorldRenderer positioned in pixels rather than tiles, kept there only to preserve its draw order. With the order agreed not to matter, the world-space / screen-space split becomes exact. The real payoff is translation. drawDebugOverlay was the only caller of tr() in the renderer, so Q_DECLARE_TR_FUNCTIONS and the QCoreApplication include go with it. Nothing left in the renderer draws translatable text - its text is config-driven glyphs, ASCII port arrows and numbers - so it no longer needs a tie to the meta-object system at all. That is the argument I should have weighed originally instead of anchoring on draw order. The panel now paints on top of ships and beams rather than under them, and the widget gates it on its own m_debugDraw directly. The frame still carries isDebugDrawEnabled, because the sensor ranges and target lines it also gates are genuinely world-space. Dropped the painter.resetTransform() the function opened with: it was vestigial from the older design that drew the world through painter.translate, and has been a no-op since every conversion became explicit arithmetic. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JcReq7hVk4KUPhTDKWAG7K
Description
No description provided
Languages
C++
96%
CMake
2.2%
Python
1.2%
C
0.6%