Add TransparentIndex to PaletteFromFile.

This commit is contained in:
Paul Chote
2021-02-02 19:37:16 +00:00
committed by reaperrr
parent e63b9b4986
commit 0c52d275fa
5 changed files with 16 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
shadowIndex[shadowIndex.Length - 3] = 4;
}
var palette = new ImmutablePalette(args[2], shadowIndex);
var palette = new ImmutablePalette(args[2], new[] { 0 }, shadowIndex);
var palColors = new Color[Palette.Size];
for (var i = 0; i < Palette.Size; i++)
palColors[i] = palette.GetColor(i);

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
// HACK: The engine code assumes that Game.modData is set.
var modData = Game.ModData = utility.ModData;
var palette = new ImmutablePalette(args[1], new int[0]);
var palette = new ImmutablePalette(args[1], new[] { 0 }, new int[0]);
SequenceProvider sequences = null;
var mapPackage = new Folder(Platform.EngineDir).OpenPackage(args[2], modData.ModFiles);