Fixed bug where hovering a buy flower button wasn't visualized properly.

This commit is contained in:
Sander Schobers 2020-05-23 12:36:44 +02:00
parent 064ec4619d
commit 2f5f682a59

View File

@ -41,7 +41,7 @@ func (b *IconButton) Render(ctx ui.Context) {
}
func (b *IconButton) RenderActive(ctx ui.Context) {
if b.Active && !b.Disabled && !b.IsOver() {
if b.Active || (!b.Disabled && b.IsOver()) {
ctx.Renderer().FillRectangle(b.Bounds(), hoverTransparentColor)
}
}