mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add 'number' uses display mode
This commit is contained in:
parent
64e433593c
commit
b1bd4feee7
3 changed files with 8 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue