Fixed bug where the buy flower button wasn't enabled on load.

This commit is contained in:
Sander Schobers 2020-05-24 19:57:39 +02:00
parent ddef723f80
commit 1bea3dd412

View File

@ -96,6 +96,7 @@ func (b *BuyFlowerButton) updateTexts(ctx ui.Context) error {
if err := b.priceTexture.Update(textUpdate(ctx.Renderer(), font, color, FmtMoney(b.Flower.BuyPrice))); err != nil {
return err
}
b.Disabled = !b.Flower.Unlocked
b.upToDate = true
return nil
}