The debug palette editor. More...
Go to the source code of this file.
Macros | |
| #define | EDITOR_PALETTE ((u16 *)0x05000000) |
| #define | EDITOR_MAP ((u16 *)0x0600205a) |
| #define | EDITOR_HEX_DIGIT 0xf0e0 |
| the tile of digit 0, in BG palette 15 | |
Functions | |
| void | Debug_RunPaletteEditor (void) |
| The debug palette editor (L on the pause menu in debug mode). | |
The debug palette editor.
Part of object.c, the field object, compiled only through it.
Definition in file palette_editor.c.
| #define EDITOR_PALETTE ((u16 *)0x05000000) |
Definition at line 9 of file palette_editor.c.
Referenced by Debug_RunPaletteEditor().
| #define EDITOR_MAP ((u16 *)0x0600205a) |
Definition at line 10 of file palette_editor.c.
Referenced by Debug_RunPaletteEditor().
| #define EDITOR_HEX_DIGIT 0xf0e0 |
the tile of digit 0, in BG palette 15
Definition at line 11 of file palette_editor.c.
Referenced by Debug_RunPaletteEditor().
| void Debug_RunPaletteEditor | ( | void | ) |
The debug palette editor (L on the pause menu in debug mode).
Shows colours 1 to 15 of a palette with their red, green and blue values in hex. Left and right choose the colour, up and down the channel, L and R the palette (0 to 13); A raises the channel and B lowers it, Start makes the colour blink while held, and Select leaves. Called by Field_RunScene for the pause request when L is held in debug mode. Writes the edited colours straight to BG palette RAM and draws over screen block 4; on leaving it reloads the window graphics and clears the debug text.
Definition at line 21 of file palette_editor.c.
Referenced by Debug_RunPaletteEditor(), and Field_RunScene().