support d2k remap range
This commit is contained in:
@@ -93,7 +93,7 @@ namespace OpenRA
|
||||
{
|
||||
var info = Rules.Info["world"].Traits.Get<PlayerColorPaletteInfo>();
|
||||
var newpal = new Palette(world.WorldRenderer.GetPalette(info.BasePalette),
|
||||
new PlayerColorRemap(Color, Color2, info.SplitRamp));
|
||||
new PlayerColorRemap(Color, Color2, info.PaletteFormat));
|
||||
world.WorldRenderer.AddPalette(palette, newpal);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,12 +8,13 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.FileFormats;
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
{
|
||||
public class PlayerColorPaletteInfo : TraitInfo<PlayerColorPalette>
|
||||
{
|
||||
public readonly string BasePalette = null;
|
||||
public readonly bool SplitRamp = false;
|
||||
public readonly PaletteFormat PaletteFormat = PaletteFormat.ra;
|
||||
}
|
||||
|
||||
public class PlayerColorPalette {}
|
||||
|
||||
Reference in New Issue
Block a user