refactor: 修改 LastDiffToImage 函数中的位置计算逻辑,动态设置文本位置以适应头像大小,提升图像布局效果
This commit is contained in:
parent
761dde3693
commit
015cd887bb
@ -615,7 +615,7 @@ func (p PlayerDataLite) LastDiffToImage(lastDayQueryData PlayerDataLite) string
|
||||
Name: "text",
|
||||
Image: textImg,
|
||||
Index: 2,
|
||||
Position: image.Point{X: 23, Y: 0},
|
||||
Position: image.Point{X: avatarSpirit.Position.X + avatarSpirit.Image.Bounds().Dx() + 3, Y: 0},
|
||||
}
|
||||
baseboard.AddSprite(&textSpirit)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user