Changeset 254 for binary-improvements/MapRendering
- Timestamp:
- Dec 24, 2015, 1:15:17 PM (9 years ago)
- Location:
- binary-improvements/MapRendering
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/ModInfo.xml
r253 r254 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="Christian 'Alloc' Illy" /> 7 <Version value="1 0" />7 <Version value="11" /> 8 8 <Website value="http://7dtd.illy.bz" /> 9 9 </ModInfo> -
binary-improvements/MapRendering/Web/Handlers/ItemIconHandler.cs
r253 r254 94 94 if (tintedIcons.ContainsKey (name)) { 95 95 foreach (Color c in tintedIcons [name]) { 96 Texture2D tintedTex = new Texture2D (data.width, data.height, TextureFormat.ARGB32, false); 96 string tintedName = name + "__" + AllocsUtils.ColorToHex (c); 97 if (!icons.ContainsKey (tintedName)) { 98 Texture2D tintedTex = new Texture2D (data.width, data.height, TextureFormat.ARGB32, false); 97 99 98 for (int x = 0; x < data.width; x++) { 99 for (int y = 0; y < data.height; y++) { 100 tintedTex.SetPixel (x, y, tex.GetPixel (x, y) * c); 100 for (int x = 0; x < data.width; x++) { 101 for (int y = 0; y < data.height; y++) { 102 tintedTex.SetPixel (x, y, tex.GetPixel (x, y) * c); 103 } 101 104 } 105 106 icons.Add (tintedName, tintedTex.EncodeToPNG ()); 107 108 UnityEngine.Object.Destroy (tintedTex); 102 109 } 103 104 icons.Add (name + "__" + AllocsUtils.ColorToHex (c), tintedTex.EncodeToPNG ());105 106 UnityEngine.Object.Destroy (tintedTex);107 110 } 108 111 } -
binary-improvements/MapRendering/WebAndMapRendering.csproj
r253 r254 4 4 <Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration> 5 5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 6 <ProductVersion> 10.0.0</ProductVersion>6 <ProductVersion>8.0.30703</ProductVersion> 7 7 <SchemaVersion>2.0</SchemaVersion> 8 8 <ProjectGuid>{A1847B5F-7BFC-4BCD-94AA-A6C9FB7E7C54}</ProjectGuid> … … 19 19 <WarningLevel>4</WarningLevel> 20 20 <ConsolePause>false</ConsolePause> 21 <NoStdLib>true</NoStdLib> 21 22 </PropertyGroup> 22 23 <ItemGroup>
Note:
See TracChangeset
for help on using the changeset viewer.