From 74c43fc8c66ec93c5891d83b4963352dc7fb3ac6 Mon Sep 17 00:00:00 2001 From: zomo Date: Tue, 14 Apr 2026 21:22:24 -0500 Subject: [PATCH] FIX: even the transparent mini must be 4 frames --- out.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/out.go b/out.go index 93f296c..f771ebc 100644 --- a/out.go +++ b/out.go @@ -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) + } } }