lua get used/unique colors functions
|Reported by:||HoraK-FDF||Owned by:||PulkoMandy|
is it possible to add functions for lua scripting that can return the number of used or unique colors without the automatic added save palette colors?
Here is an example how i would use this feature:
I'm currently working with 8x8 bitmap fonts some have only two colors (0, 1) and some may have more colors. The fonts with two colors are diffrently handeled than the ones with more colors (i can choose with color color 1 has in the output, color 0 will be not drawn) so i need an bool value (multicolor 0/1) that my grafx2 font-to-assembler lua script can output depending on the number of colors and with that bool value i can upgrade the output functions of my current Gameboy Advance Project. I can also make this bool value everytime by hand but because i will create many different fonts for the Project it would be nicer when the export script can do this by it self.