I'd like to make full use of a single palette for text colours

Moderator: Stef
Oh in this case no, you cannot do that unfortunately... at least 0 is always the "transparent" color and the font tiles are hardwired in SGDK so you cannot use severals font at same time. At best you can change font at some point but that is not what you want.matteus wrote:I gather the default uses positions 0 for forecolour and 15 for back colour. I want to use PAL0 and have it so different colours can be used for different sections of text: 0 15, 1 15, 2 15, etc
I can't swap palettes as my APLAN uses PAL0 for the text, PAL1 for the layout, PAL2 for the background scene on BPLAN and PAL3 for the sprites.
Code: Select all
u16 VDP_loadFont(const TileSet *font, u8 use_dma)
Code: Select all
if (!VDP_loadFont(&font_lib, FALSE))
...
Code: Select all
VDP_setPaletteColors(32, BlackPalette, 47);
VDP_drawImageEx(BPLAN, image, TILE_ATTR_FULL(PAL2, FALSE, FALSE, FALSE, ind), STAGE_POSITION_X, STAGE_POSITION_Y, FALSE, TRUE);
VDP_fadeIn(32, 47, palette, 30, FALSE);
Code: Select all
VDP_setPaletteColors(32, BlackPalette, 16);