mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Pt translations, #286
This commit is contained in:
@@ -55,10 +55,7 @@ void UIItem::drawSelf(Fw::DrawPane drawPane)
|
||||
float scaleFactor = std::min(drawRect.width() / (float)exactSize, drawRect.height() / (float)exactSize);
|
||||
dest += (m_item->getDisplacement() - Point(32,32)) * scaleFactor;
|
||||
|
||||
if(isEnabled())
|
||||
g_painter->setColor(Color::white);
|
||||
else
|
||||
g_painter->setColor(Color(100, 100, 100));
|
||||
g_painter->setColor(m_color);
|
||||
m_item->draw(dest, scaleFactor, true);
|
||||
|
||||
if(m_font && (m_item->isStackable() || m_item->isChargeable()) && m_item->getCountOrSubType() > 1) {
|
||||
|
Reference in New Issue
Block a user