rude hack to make snow maps for c&c work
This commit is contained in:
@@ -8,7 +8,7 @@ namespace OpenRa.Traits
|
|||||||
class PaletteFromFileInfo : ITraitInfo
|
class PaletteFromFileInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public readonly string Name = null;
|
public readonly string Name = null;
|
||||||
public readonly string Theatre = null;
|
public readonly string Theater = null;
|
||||||
public readonly string Filename = null;
|
public readonly string Filename = null;
|
||||||
public object Create(Actor self) { return new PaletteFromFile(self, this); }
|
public object Create(Actor self) { return new PaletteFromFile(self, this); }
|
||||||
}
|
}
|
||||||
@@ -17,8 +17,8 @@ namespace OpenRa.Traits
|
|||||||
{
|
{
|
||||||
public PaletteFromFile(Actor self, PaletteFromFileInfo info)
|
public PaletteFromFile(Actor self, PaletteFromFileInfo info)
|
||||||
{
|
{
|
||||||
if (info.Theatre == null ||
|
if (info.Theater == null ||
|
||||||
info.Theatre.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant())
|
info.Theater.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant())
|
||||||
{
|
{
|
||||||
//Log.Write("Loading palette {0} from file {1}", info.Name, info.Filename);
|
//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)));
|
||||||
|
|||||||
BIN
mods/cnc/snow_ra.pal
Normal file
BIN
mods/cnc/snow_ra.pal
Normal file
Binary file not shown.
@@ -16,11 +16,20 @@ World:
|
|||||||
UnitInfluence:
|
UnitInfluence:
|
||||||
PaletteFromFile@terrain_temperat:
|
PaletteFromFile@terrain_temperat:
|
||||||
Name: terrain
|
Name: terrain
|
||||||
|
Theater: temperat
|
||||||
Filename: temperat_ra.pal
|
Filename: temperat_ra.pal
|
||||||
PaletteFromFile@player_temperat:
|
PaletteFromFile@player_temperat:
|
||||||
Name: player
|
Name: player
|
||||||
Theatre: temperat
|
Theater: temperat
|
||||||
Filename: temperat.pal
|
Filename: temperat.pal
|
||||||
|
PaletteFromFile@terrain_snow:
|
||||||
|
Name: terrain
|
||||||
|
Theater: snow
|
||||||
|
Filename: snow_ra.pal
|
||||||
|
PaletteFromFile@player_snow:
|
||||||
|
Name: player
|
||||||
|
Theater: snow
|
||||||
|
Filename: tdbits/winter.pal
|
||||||
PlayerColorPalette@player0:
|
PlayerColorPalette@player0:
|
||||||
Name: player0
|
Name: player0
|
||||||
DisplayName: Gold
|
DisplayName: Gold
|
||||||
|
|||||||
Reference in New Issue
Block a user