fix cnc cursors
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user