fix cnc cursors

This commit is contained in:
Chris Forbes
2010-03-07 23:26:50 +13:00
parent 34495cf3e7
commit cbd12f90ae
6 changed files with 14 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ namespace OpenRA.Traits
public readonly string Name = null;
public readonly string Theater = null;
public readonly string Filename = null;
public readonly bool Transparent = true;
public object Create(Actor self) { return new PaletteFromFile(self, this); }
}
@@ -37,8 +38,8 @@ namespace OpenRA.Traits
if (info.Theater == null ||
info.Theater.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant())
{
//Log.Write("Loading palette {0} from file {1}", info.Name, info.Filename);
self.World.WorldRenderer.AddPalette(info.Name, new Palette(FileSystem.Open(info.Filename)));
self.World.WorldRenderer.AddPalette(info.Name,
new Palette(FileSystem.Open(info.Filename), info.Transparent));
}
}
}