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
+10
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.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 {
imagepath := path.Join(roomoutpath, imagename+".png")
@@ -161,9 +167,13 @@ func copyFolder(roomFolder RoomFolder, outpath string) error {
if err != nil {
return err
}
if strings.ToUpper(imagename) == "MINI" {
png.Encode(f, transparentminifig)
} else {
png.Encode(f, transparent)
}
}
}
if len(extraRequiredAudio) > 0 {
log.Printf("INFO: necessary optional audios will use a silent file: %v", extraRequiredAudio)