Fixed bug where the buy flower button wasn't enabled on load.
This commit is contained in:
parent
ddef723f80
commit
1bea3dd412
@ -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 {
|
if err := b.priceTexture.Update(textUpdate(ctx.Renderer(), font, color, FmtMoney(b.Flower.BuyPrice))); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
b.Disabled = !b.Flower.Unlocked
|
||||||
b.upToDate = true
|
b.upToDate = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user