mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-01-13 08:06:31 +00:00
Cleanerer
This commit is contained in:
parent
3f64a301e7
commit
18e545dfe8
2 changed files with 3 additions and 12 deletions
|
@ -433,8 +433,7 @@ public U0 PaletteEditor()
|
||||||
LFBFlush;
|
LFBFlush;
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
gr_palette[selected_color] = PaletteGod(FALSE, TRUE);
|
PaletteGod(FALSE, TRUE);
|
||||||
LFBFlush;
|
|
||||||
break;
|
break;
|
||||||
case CH_CTRLI:
|
case CH_CTRLI:
|
||||||
PopUpOk("\n\n Use the arrows to select color\n\n # to manually input hex value","\n\n\n\t\tMade by y4my4m\n\n");
|
PopUpOk("\n\n Use the arrows to select color\n\n # to manually input hex value","\n\n\n\t\tMade by y4my4m\n\n");
|
||||||
|
|
|
@ -1,29 +1,21 @@
|
||||||
CBGR24 ColorGod(Bool seedUse=TRUE, Bool instant=TRUE)
|
CBGR24 ColorGod(Bool seedUse=TRUE, Bool instant=TRUE)
|
||||||
{
|
{
|
||||||
// Generate a random color, seed-based or not
|
// Generate a random color, seed-based or not
|
||||||
|
|
||||||
if (seedUse)
|
if (seedUse)
|
||||||
Seed(GodPick);
|
Seed(GodPick);
|
||||||
if (instant || seedUse)
|
if (instant || seedUse)
|
||||||
{
|
|
||||||
return RandI32 & 0xFFFFFF;
|
return RandI32 & 0xFFFFFF;
|
||||||
}
|
else
|
||||||
else {
|
|
||||||
return GodPick & 0xFFFFFF;
|
return GodPick & 0xFFFFFF;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public U0 PaletteGod(Bool seedUse=TRUE, Bool instant=TRUE)
|
public U0 PaletteGod(Bool seedUse=TRUE, Bool instant=TRUE)
|
||||||
{
|
{
|
||||||
// Generate a random palette, seed-based or not
|
// Generate a random palette, seed-based or not
|
||||||
I64 i;
|
I64 i;
|
||||||
|
|
||||||
for (i=0; i < 16; i++)
|
for (i=0; i < 16; i++)
|
||||||
{
|
|
||||||
gr_palette[i] = ColorGod(seedUse, instant);
|
gr_palette[i] = ColorGod(seedUse, instant);
|
||||||
LFBFlush;
|
LFBFlush;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// PaletteGod;
|
// PaletteGod;
|
||||||
|
|
Loading…
Reference in a new issue