diff --git a/containerbox.go b/containerbox.go index 378bbb9..5321014 100644 --- a/containerbox.go +++ b/containerbox.go @@ -36,9 +36,15 @@ func (this *containerBox) SetColor (c color.Color) { this.invalidateTransparentChildren() } -func (this *containerBox) SetTexture (texture canvas.Texture) { +func (this *containerBox) SetTextureTile (texture canvas.Texture) { 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() }