This commit is contained in:
y4my4my4m 2023-05-31 01:52:47 +09:00
parent 5700e961c8
commit b8fb29fa2d
3 changed files with 14 additions and 2 deletions

View file

@ -1,5 +1,5 @@
Cd(__DIR__);;
#define PALETTES_PATH "~/PaletteEditor/Palettes/"
#include "PaletteSelect"
#include "PaletteGod"
#include "PaletteGod"
#include "PaletteEdit"

View file

@ -357,6 +357,8 @@ public U0 PaletteEditor()
" PreviousColor(,,SC_CURSOR_UP);"
" NextColor(,,SC_CURSOR_RIGHT);"
" NextColor(,,SC_CURSOR_DOWN);"
" RandomColor(,,'r');"
" RandomPalette(,,'R');"
"}"
"About {"
" Info(,CH_CTRLI);"
@ -431,7 +433,7 @@ public U0 PaletteEditor()
LFBFlush;
break;
case 'R':
gr_palette[selected_color] = PaletteGod(FALSE, TRUE);
gr_palette[selected_color] = PaletteGod(FALSE, TRUE);
LFBFlush;
break;
case CH_CTRLI:

View file

@ -0,0 +1,10 @@
public CBGR24 gr_palette_tradition[COLORS_NUM] = {
0xE8E8E9, 0x374B88, 0x4FBC2C, 0x29CACE, 0xDD0000, 0x8C33FF, 0x875721, 0x7F7A7C, 0x15171C, 0x2EA1FF, 0x4FFF00, 0xFFBB, 0x690000, 0x6E3FFC, 0xFFCC00, 0xC0F14
};
public U0 PaletteSetTradition(Bool persistent=TRUE)
{
GrPaletteSet(gr_palette_tradition);
LFBFlush;
if (persistent)
fp_set_std_palette = &PaletteSetTradition;
}