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__);; Cd(__DIR__);;
#define PALETTES_PATH "~/PaletteEditor/Palettes/" #define PALETTES_PATH "~/PaletteEditor/Palettes/"
#include "PaletteSelect" #include "PaletteSelect"
#include "PaletteGod" #include "PaletteGod"
#include "PaletteEdit" #include "PaletteEdit"

View file

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