1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Create weak enum for PaletteIndex

This commit is contained in:
Michael Steenbeek
2025-04-09 16:47:22 +02:00
committed by GitHub
parent 6693278b7f
commit cfb4b008b2
16 changed files with 200 additions and 200 deletions

View File

@@ -48,10 +48,10 @@ namespace OpenRCT2::Ui::Windows
constexpr int16_t TRACK_MINI_PREVIEW_HEIGHT = 78;
constexpr uint16_t TRACK_MINI_PREVIEW_SIZE = TRACK_MINI_PREVIEW_WIDTH * TRACK_MINI_PREVIEW_HEIGHT;
static constexpr uint8_t kPaletteIndexColourEntrance = PALETTE_INDEX_20; // White
static constexpr uint8_t kPaletteIndexColourExit = PALETTE_INDEX_10; // Black
static constexpr uint8_t kPaletteIndexColourTrack = PALETTE_INDEX_248; // Grey (dark)
static constexpr uint8_t kPaletteIndexColourStation = PALETTE_INDEX_252; // Grey (light)
static constexpr uint8_t kPaletteIndexColourEntrance = PaletteIndex::pi20; // White
static constexpr uint8_t kPaletteIndexColourExit = PaletteIndex::pi10; // Black
static constexpr uint8_t kPaletteIndexColourTrack = PaletteIndex::pi248; // Grey (dark)
static constexpr uint8_t kPaletteIndexColourStation = PaletteIndex::pi252; // Grey (light)
enum
{
@@ -430,7 +430,7 @@ namespace OpenRCT2::Ui::Windows
void ClearMiniPreview()
{
// Fill with transparent colour.
std::fill(_miniPreview.begin(), _miniPreview.end(), PALETTE_INDEX_0);
std::fill(_miniPreview.begin(), _miniPreview.end(), PaletteIndex::pi0);
}
private: