From 791fc7029df845c35a1cd41a8bbb448738d64274 Mon Sep 17 00:00:00 2001 From: chrisf Date: Fri, 13 Jul 2007 01:36:26 +0000 Subject: [PATCH] just exercising the palette remap capabilities :D git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1185 993157c7-ee19-0410-b2c4-bb4e9862e678 --- OpenRa.Game/MainWindow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenRa.Game/MainWindow.cs b/OpenRa.Game/MainWindow.cs index 29de5c16b4..d01aa61933 100644 --- a/OpenRa.Game/MainWindow.cs +++ b/OpenRa.Game/MainWindow.cs @@ -17,7 +17,7 @@ namespace OpenRa.Game readonly Map map; readonly TileSet tileSet; - Palette pal; + Palette pal, playerPal; Package TileMix; string TileSuffix; @@ -72,7 +72,7 @@ namespace OpenRa.Game foreach (TreeReference treeReference in map.Trees) world.Add(new Tree(treeReference, treeCache, map)); - UnitSheetBuilder.AddUnit( "mcv", renderer.Device, pal ); + UnitSheetBuilder.AddUnit( "mcv", renderer.Device, playerPal ); world.Add( new Mcv( new PointF( 24 * 5, 24 * 5 ) ) ); } @@ -215,6 +215,8 @@ namespace OpenRa.Game TileMix = new Package("../../../" + theaterName + ".mix"); TileSuffix = "." + theaterName.Substring(0, 3); + playerPal = new Palette(pal, new PaletteRemap(File.OpenRead("../../../red.rem"))); + return new TileSet(TileMix, TileSuffix, pal); } }