FIX: even the transparent mini must be 4 frames

This commit is contained in:
zomo
2026-04-14 21:22:24 -05:00
parent dcb7b0da02
commit 74c43fc8c6
+11 -1
View File
@@ -154,6 +154,12 @@ func copyFolder(roomFolder RoomFolder, outpath string) error {
transparent := image.NewRGBA(image.Rectangle{image.Point{0, 0}, image.Point{1, 1}}) transparent := image.NewRGBA(image.Rectangle{image.Point{0, 0}, image.Point{1, 1}})
transparent.Set(0, 0, color.RGBA{0xff, 0xff, 0xff, 0x01}) transparent.Set(0, 0, color.RGBA{0xff, 0xff, 0xff, 0x01})
transparentminifig := image.NewRGBA(image.Rectangle{image.Point{0, 0}, image.Point{4, 1}})
transparentminifig.Set(0, 0, color.RGBA{0xff, 0xff, 0xff, 0x01})
transparentminifig.Set(1, 0, color.RGBA{0xff, 0xff, 0xff, 0x01})
transparentminifig.Set(2, 0, color.RGBA{0xff, 0xff, 0xff, 0x01})
transparentminifig.Set(3, 0, color.RGBA{0xff, 0xff, 0xff, 0x01})
for _, imagename := range extraRequiredImages { for _, imagename := range extraRequiredImages {
imagepath := path.Join(roomoutpath, imagename+".png") imagepath := path.Join(roomoutpath, imagename+".png")
@@ -161,7 +167,11 @@ func copyFolder(roomFolder RoomFolder, outpath string) error {
if err != nil { if err != nil {
return err return err
} }
png.Encode(f, transparent) if strings.ToUpper(imagename) == "MINI" {
png.Encode(f, transparentminifig)
} else {
png.Encode(f, transparent)
}
} }
} }