Fix ContainerBox's SetTexture methods
This commit is contained in:
parent
74fd3fdd55
commit
0f9c27c19a
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user