draw boxes around item icons

This commit is contained in:
2026-08-09 21:20:47 +02:00
parent 09858f4b62
commit 5794a51c9a
3 changed files with 33 additions and 24 deletions

View File

@@ -113,9 +113,9 @@ private:
void drawOverlays(QPainter& painter, const WorldCoordinates& coordinates,
const WorldRenderFrame& frame);
// Draws a single item centered at widget-space `center`, spanning `halfPx` in
// each direction (a half-tile). Uses the item's icon when one exists
// (REQ-UI-ITEM-ICON), otherwise falls back to the colored square from
// visuals.toml. Shared by drawBeltItems and drawPortItems.
// each direction (a half-tile): the colored square from visuals.toml, carrying
// the item's icon inset on top of it when one exists (REQ-UI-ITEM-ICON).
// Shared by drawBeltItems and drawPortItems.
void drawWorldItem(QPainter& painter, const std::string& itemId,
QPointF center, float halfPx);
void drawPortGlyph(QPainter& painter, const WorldCoordinates& coordinates,