mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Fix
This commit is contained in:
parent
5700e961c8
commit
b8fb29fa2d
3 changed files with 14 additions and 2 deletions
|
@ -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"
|
|
@ -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:
|
||||||
|
|
10
src/Home/PaletteEditor/Palettes/Tradition.ZC
Executable file
10
src/Home/PaletteEditor/Palettes/Tradition.ZC
Executable 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;
|
||||||
|
}
|
Loading…
Reference in a new issue