line way too long.
This commit is contained in:
@@ -6,12 +6,11 @@
|
|||||||
* as published by the Free Software Foundation. For more information,
|
* as published by the Free Software Foundation. For more information,
|
||||||
* see LICENSE.
|
* see LICENSE.
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System.Drawing;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Traits;
|
using OpenRA.FileFormats;
|
||||||
using System.Collections.Generic;
|
using OpenRA.Traits;
|
||||||
using OpenRA.FileFormats;
|
|
||||||
using OpenRA.Widgets.Delegates;
|
using OpenRA.Widgets.Delegates;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
@@ -27,12 +26,13 @@ namespace OpenRA.Mods.RA
|
|||||||
var info = Rules.Info["world"].Traits.Get<PlayerColorPaletteInfo>();
|
var info = Rules.Info["world"].Traits.Get<PlayerColorPaletteInfo>();
|
||||||
SplitPlayerPalette = info.SplitRamp;
|
SplitPlayerPalette = info.SplitRamp;
|
||||||
w.WorldRenderer.AddPalette("colorpicker", w.WorldRenderer.GetPalette(info.BasePalette));
|
w.WorldRenderer.AddPalette("colorpicker", w.WorldRenderer.GetPalette(info.BasePalette));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AdjustPalette(Dictionary<string,Palette> palettes)
|
public void AdjustPalette(Dictionary<string, Palette> palettes)
|
||||||
{
|
{
|
||||||
palettes["colorpicker"] = new Palette(palettes["colorpicker"],
|
palettes["colorpicker"] = new Palette(palettes["colorpicker"],
|
||||||
new PlayerColorRemap(LobbyDelegate.CurrentColorPreview1, LobbyDelegate.CurrentColorPreview2, SplitPlayerPalette));
|
new PlayerColorRemap(LobbyDelegate.CurrentColorPreview1,
|
||||||
|
LobbyDelegate.CurrentColorPreview2, SplitPlayerPalette));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user