Fix ContainerBox's SetTexture methods

This commit is contained in:
Sasha Koshka 2024-05-26 15:20:11 -04:00
parent 74fd3fdd55
commit 0f9c27c19a

View File

@ -36,9 +36,15 @@ func (this *containerBox) SetColor (c color.Color) {
this.invalidateTransparentChildren() this.invalidateTransparentChildren()
} }
func (this *containerBox) SetTexture (texture canvas.Texture) { func (this *containerBox) SetTextureTile (texture canvas.Texture) {
if this.texture == texture { return } if this.texture == texture { return }
this.box.SetTexture(texture) this.box.SetTextureTile(texture)
this.invalidateTransparentChildren()
}
func (this *containerBox) SetTextureCenter (texture canvas.Texture) {
if this.texture == texture { return }
this.box.SetTextureTile(texture)
this.invalidateTransparentChildren() this.invalidateTransparentChildren()
} }