Skip to content

Commit 8534d01

Browse files
committed
disable import images button since its functionality doesn't work
1 parent b483f90 commit 8534d01

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Gui/MainForm.Designer.cs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gui/MainForm.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using NAudio.Gui;
22
using NAudio.Wave;
3-
using OpenLoco.ObjectEditor;
43
using OpenLoco.ObjectEditor.DatFileParsing;
54
using OpenLoco.ObjectEditor.Headers;
6-
using OpenLoco.ObjectEditor.Objects;
75
using OpenLoco.ObjectEditor.Types;
86
using OpenLoco.ObjectEditor.Logging;
97
using System.Data;
@@ -1071,17 +1069,18 @@ static IEnumerable<Bitmap> CreateImages(List<G1Element32> G1Elements, Color[] pa
10711069
{
10721070
var paletteIndex = imageData[(y * currElement.Width) + x];
10731071

1074-
// the issue with greyscale here is it isn't normalised so all heightmaps are really dark and hard to see
1075-
//var colour = obj.Object is HillShapesObject
1076-
// ? Color.FromArgb(paletteIndex, paletteIndex, paletteIndex) // for hillshapes, its just a heightmap so lets put it in greyscale
1077-
// : palette[paletteIndex];
1078-
10791072
if (paletteIndex == 0 && useTransparency)
10801073
{
1074+
// transparent pixel - no need to set anything as that's the default pixel value
10811075
//ImageHelpers.SetPixel(dstImgData, x, y, colour);
1076+
//Debugger.Break();
10821077
}
10831078
else
10841079
{
1080+
//if (paletteIndex >= 154 && paletteIndex <= 165)
1081+
//{
1082+
// //Debugger.Break();
1083+
//}
10851084
var colour = palette[paletteIndex];
10861085
ImageHelpers.SetPixel(dstImgData, x, y, colour);
10871086
}

palette.png

-170 Bytes
Loading

0 commit comments

Comments
 (0)