|
|
|
@ -58,7 +58,7 @@ void UIItem::drawSelf(Fw::DrawPane drawPane)
|
|
|
|
|
g_painter->setColor(Color::white);
|
|
|
|
|
m_item->draw(dest, scaleFactor, true);
|
|
|
|
|
|
|
|
|
|
if(m_font && (m_item->isStackable() || m_item->isChargeable()) && m_item->getCount() > 1) {
|
|
|
|
|
if(m_font && (m_item->isStackable() || m_item->isChargeable()) && m_item->getCountOrSubType() > 1) {
|
|
|
|
|
std::string count = stdext::to_string(m_item->getCount());
|
|
|
|
|
g_painter->setColor(Color(231, 231, 231));
|
|
|
|
|
m_font->drawText(count, Rect(m_rect.topLeft(), m_rect.bottomRight() - Point(3, 0)), Fw::AlignBottomRight);
|
|
|
|
|