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.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,7 +167,11 @@ func copyFolder(roomFolder RoomFolder, outpath string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
png.Encode(f, transparent)
|
||||
if strings.ToUpper(imagename) == "MINI" {
|
||||
png.Encode(f, transparentminifig)
|
||||
} else {
|
||||
png.Encode(f, transparent)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user