diff --git a/ui/martine-ui/export_sprite_board.go b/ui/martine-ui/export_sprite_board.go index 34faedb..b1a2e2a 100644 --- a/ui/martine-ui/export_sprite_board.go +++ b/ui/martine-ui/export_sprite_board.go @@ -277,8 +277,15 @@ func (m *MartineUI) ExportSpriteBoard(s *menu.SpriteMenu) { for _, v := range s.SpritesData { data = append(data, v...) } + kitPalette := palette.KitPalette{} + for i := 0; i < len(s.Palette()); i++ { + kitPalette.Colors[i] = constants.NewCpcPlusColor(s.Palette()[i]) + } header := fmt.Sprintf("' from file %s\n", s.FilePath) code := header + ascii.SpritesHardText(data, s.ExportCompression) + code += "palette:\n" + code += kitPalette.ToString() + filename := s.ExportFolderPath + string(filepath.Separator) + "SPRITES.ASM" err := amsdos.SaveStringOSFile(filename, code) if err != nil {