diff --git a/src/client/uiitem.cpp b/src/client/uiitem.cpp index a78f400c65..1ce50f04ba 100644 --- a/src/client/uiitem.cpp +++ b/src/client/uiitem.cpp @@ -46,7 +46,7 @@ void UIItem::drawSelf(DrawPoolType drawPane) m_item->draw(Point(exactSize - SPRITE_SIZE) + m_item->getDisplacement(), Otc::DrawThings, m_color); g_drawPool.releaseFrameBuffer(getPaddingRect()); - if (m_font && (m_item->isStackable() || m_item->isChargeable()) && m_item->getCountOrSubType() > 1) { + if (m_font && (m_alwaysShowCount || m_item->isStackable() || m_item->isChargeable()) && m_item->getCountOrSubType() > 1) { static const Color STACK_COLOR(231, 231, 231); const auto& count = std::to_string(m_item->getCountOrSubType()); @@ -92,5 +92,7 @@ void UIItem::onStyleApply(const std::string_view styleName, const OTMLNodePtr& s setVirtual(node->value()); else if (node->tag() == "show-id") m_showId = node->value(); + else if (node->tag() == "always-show-count") + m_alwaysShowCount = node->value(); } } diff --git a/src/client/uiitem.h b/src/client/uiitem.h index a1b49ee318..cb7b5ebd57 100644 --- a/src/client/uiitem.h +++ b/src/client/uiitem.h @@ -54,4 +54,5 @@ class UIItem : public UIWidget bool m_virtual{ false }; bool m_showId{ false }; bool m_itemVisible{ true }; + bool m_alwaysShowCount{ false }; };