FIX: even the transparent mini must be 4 frames
This commit is contained in:
@@ -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,9 +167,13 @@ func copyFolder(roomFolder RoomFolder, outpath string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if strings.ToUpper(imagename) == "MINI" {
|
||||||
|
png.Encode(f, transparentminifig)
|
||||||
|
} else {
|
||||||
png.Encode(f, transparent)
|
png.Encode(f, transparent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(extraRequiredAudio) > 0 {
|
if len(extraRequiredAudio) > 0 {
|
||||||
log.Printf("INFO: necessary optional audios will use a silent file: %v", extraRequiredAudio)
|
log.Printf("INFO: necessary optional audios will use a silent file: %v", extraRequiredAudio)
|
||||||
|
|||||||
Reference in New Issue
Block a user