예제 #1
0
 public void SetMenuPalette(int block1Color, int block2Color, int backgroundColor)
 {
     // set the menu palette with custom colors
     this.menuPalette           = MenuPalettes.Custom;
     this.customColorBlockLight = block1Color;
     this.customColorBlockDark  = block2Color;
     this.customColorBackground = backgroundColor;
 }
예제 #2
0
    public void SetMenuPalette(MenuPalettes palette)
    {
        menuPalette = palette;

        // apply new selected color scheme with ColorSwap
        switch (menuPalette)
        {
        case MenuPalettes.Custom:
            // custom colors
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(customColorBlockLight));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(customColorBlockDark));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(customColorBackground));
            break;

        case MenuPalettes.BombMan:
            // light green, dark green, brown
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0x80D010));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0x009400));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x7C0800));
            break;

        case MenuPalettes.CutMan:
        case MenuPalettes.Wily3:
            // white, medium gray, dark gray
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xFCFCFC));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0xBCBCBC));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x747474));
            break;

        case MenuPalettes.ElecMan:
        case MenuPalettes.Wily4:
            // white, orange, dark orange
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xFCFCFC));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0xFC9838));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0xC84C0C));
            break;

        case MenuPalettes.FireMan:
            // white, medium gray, dark red
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xFCFCFC));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0xBCBCBC));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0xA40000));
            break;

        case MenuPalettes.GutsMan:
            // pink, dark orange, brown
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xFC7460));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0xC84C0C));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x7C0800));
            break;

        case MenuPalettes.IceMan:
            // white, dark green, teal
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xFCFCFC));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0x004400));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x008088));
            break;

        case MenuPalettes.Wily1:
            // white, dark gray, blue
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xFCFCFC));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0x747474));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x0000A8));
            break;

        case MenuPalettes.Wily2:
            // green, mustard, teal
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0x58F898));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0x887000));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x008088));
            break;

        case MenuPalettes.Wily4_1:
            // red, pink, black
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0xD82800));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0xFC7460));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0x000000));
            break;

        case MenuPalettes.Wily4_2:
            // brown, light yellow, orange
            colorSwap.SwapColor((int)SwapIndex.Block1, ColorSwap.ColorFromInt(0x7C0800));
            colorSwap.SwapColor((int)SwapIndex.Block2, ColorSwap.ColorFromInt(0xFCD8A8));
            colorSwap.SwapColor((int)SwapIndex.Background, ColorSwap.ColorFromInt(0xC84C0C));
            break;
        }

        // apply the color changes
        colorSwap.ApplyColor();
    }
예제 #3
0
 public void SetMenuPalette(MenuPalettes palette)
 {
     // set the menu palette with predefined colors
     this.menuPalette = palette;
 }