Fixed bug where hovering a buy flower button wasn't visualized properly.
This commit is contained in:
parent
064ec4619d
commit
2f5f682a59
@ -41,7 +41,7 @@ func (b *IconButton) Render(ctx ui.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *IconButton) RenderActive(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)
|
ctx.Renderer().FillRectangle(b.Bounds(), hoverTransparentColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user