1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 03:35:09 +01:00

Name a lot of the palettes (#19889)

This commit is contained in:
Duncan
2023-04-09 21:29:35 +01:00
committed by GitHub
parent 3d5cb20ca6
commit 01d9be4609
12 changed files with 43 additions and 39 deletions

View File

@@ -1049,18 +1049,18 @@ void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileEl
if (tileElement.AdditionIsGhost())
{
sceneryImageTemplate = ImageId().WithRemap(FilterPaletteID::Palette44);
sceneryImageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost);
}
if (tileElement.IsGhost())
{
session.InteractionType = ViewportInteractionItem::None;
imageTemplate = ImageId().WithRemap(FilterPaletteID::Palette44);
imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost);
}
else if (TileInspector::IsElementSelected(reinterpret_cast<const TileElement*>(&tileElement)))
{
imageTemplate = ImageId().WithRemap(FilterPaletteID::Palette44);
sceneryImageTemplate = ImageId().WithRemap(FilterPaletteID::Palette44);
imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost);
sceneryImageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost);
}
// For debugging purpose, show blocked tiles with a colour
@@ -1072,7 +1072,7 @@ void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileEl
// Draw wide flags as ghosts, leaving only the "walkable" paths to be drawn normally
if (gPaintWidePathsAsGhost && tileElement.IsWide())
{
imageTemplate = ImageId().WithRemap(FilterPaletteID::Palette44);
imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost);
}
PaintPatrolAreas(session, tileElement);