mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Many UI fixes.
This commit is contained in:
@@ -55,7 +55,10 @@ 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;
|
||||
|
||||
g_painter->setColor(Color::white);
|
||||
if(isEnabled())
|
||||
g_painter->setColor(Color::white);
|
||||
else
|
||||
g_painter->setColor(Color(100, 100, 100));
|
||||
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