add 'number' uses display mode

This commit is contained in:
MihailRis
2025-02-18 12:49:15 +03:00
parent 64e433593c
commit b1bd4feee7
3 changed files with 8 additions and 3 deletions
+5 -3
View File
@@ -248,12 +248,14 @@ void SlotView::drawItemInfo(
case ItemUsesDisplay::NONE:
break;
case ItemUsesDisplay::RELATION:
draw_shaded_text(
batch, font, std::to_wstring(uses), pos.x - 3, pos.y - 3
);
draw_shaded_text(
batch, font, std::to_wstring(item.uses), pos.x - 3, pos.y + 9
);
[[fallthrough]];
case ItemUsesDisplay::NUMBER:
draw_shaded_text(
batch, font, std::to_wstring(uses), pos.x - 3, pos.y - 3
);
break;
case ItemUsesDisplay::VBAR: {
batch.untexture();