split chrome palette from Multi0's palette

This commit is contained in:
Chris Forbes
2009-12-23 21:16:47 +13:00
parent 34a88b3c2e
commit 8fa02ea6a3
3 changed files with 13 additions and 14 deletions

View File

@@ -5,6 +5,10 @@ namespace OpenRa.Game.Graphics
{
class HardwarePalette : Sheet
{
public const int Shadow = 8;
public const int Invuln = 9;
public const int Chrome = 10;
const int maxEntries = 16;
int allocated = 0;
@@ -18,11 +22,8 @@ namespace OpenRa.Game.Graphics
AddPalette(new Palette(pal, new PaletteRemap(FileSystem.Open(remap + ".rem"))));
AddPalette(new Palette(pal, new PaletteRemap(Color.FromArgb(140, 0, 0, 0))));
//using (var bitmapCopy = new Bitmap(bitmap))
// for (int j = 0; j < maxEntries; j++)
// for (int i = 0; i < 7; i++)
// this[new Point(0x60 + i, j)] = bitmapCopy.GetPixel(0x60 + (rotate + i) % 7, j);
AddPalette(pal); // iron curtain. todo: remap!
AddPalette(pal); // chrome (it's like gold, but we're not going to hax it in palettemods)
}
int AddPalette(Palette p)