Make Lua prints fade out better

This commit is contained in:
jacob1 2021-07-16 13:58:26 -04:00
parent 5f90a80fe3
commit 133c8db0c7
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -2107,7 +2107,7 @@ void GameView::OnDraw()
break;
}
startY -= 14;
g->fillrect(startX-3, startY-3, Graphics::textwidth(message)+6, 14, 0, 0, 0, 100);
g->fillrect(startX-3, startY-3, Graphics::textwidth(message)+6, 14, 0, 0, 0, std::min(100, alpha));
g->drawtext(startX, startY, message, 255, 255, 255, alpha);
(*iter).second -= 3;
}