Fix icon sizes
This commit is contained in:
parent
5a32b06cef
commit
8068036219
1
icon.go
1
icon.go
@ -33,6 +33,7 @@ func NewIcon (icon tomo.Icon, size tomo.IconSize) *Icon {
|
|||||||
func (this *Icon) SetIcon (icon tomo.Icon, size tomo.IconSize) {
|
func (this *Icon) SetIcon (icon tomo.Icon, size tomo.IconSize) {
|
||||||
if this.icon == icon { return }
|
if this.icon == icon { return }
|
||||||
this.icon = icon
|
this.icon = icon
|
||||||
|
this.size = size
|
||||||
this.setTexture(icon.Texture(size))
|
this.setTexture(icon.Texture(size))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user