From 414bdead1782ba5fadb155d2169839c047cea90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 17 Nov 2022 10:37:05 +0100 Subject: [PATCH] Docks render style --- src/map/ENC/objects.h | 2 ++ src/map/ENC/style.cpp | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/map/ENC/objects.h b/src/map/ENC/objects.h index 33976e0b..32b1b2ee 100644 --- a/src/map/ENC/objects.h +++ b/src/map/ENC/objects.h @@ -27,10 +27,12 @@ #define DEPARE 42 #define DEPCNT 43 #define DRGARE 46 +#define DRYDOC 47 #define DMPGRD 48 #define DYKCON 49 #define FAIRWY 51 #define FERYRT 53 +#define FLODOC 57 #define GATCON 61 #define HRBFAC 64 #define LAKARE 69 diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index 2ee4d762..6f8b69f2 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -36,6 +36,7 @@ void Style::defaultPolygonStyle() _polygons[TYPE(OBSTRN)] = Polygon(Qt::NoBrush, QPen(QColor("#000000"), 1.5, Qt::DotLine)); _polygons[TYPE(PONTON)] = Polygon(QBrush("#333333")); + _polygons[TYPE(DRYDOC)] = Polygon(QBrush("#333333")); _polygons[TYPE(SLCONS)] = Polygon(Qt::NoBrush, QPen(QColor("#333333"), 1.5, Qt::DashLine)); _polygons[TYPE(LAKARE)] = Polygon(QBrush("#9fc4e1"), @@ -58,8 +59,12 @@ void Style::defaultPolygonStyle() Qt::BDiagPattern)); _polygons[TYPE(DAMCON)] = Polygon(QBrush("#d98b21"), QPen(QColor("#000000"), 1)); + _polygons[TYPE(DRYDOC)] = Polygon(QBrush("#ebab54"), QPen(QColor("#000000"), + 1)); _polygons[TYPE(PYLONS)] = Polygon(QBrush("#a58140"), QPen(QColor("#000000"), 1)); + _polygons[TYPE(FLODOC)] = Polygon(QBrush("#333333"), QPen(QColor("#000000"), + 1)); _drawOrder << TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0) @@ -68,9 +73,10 @@ void Style::defaultPolygonStyle() << SUBTYPE(DEPARE, 6) << TYPE(LAKARE) << TYPE(CANALS) << TYPE(DYKCON) << TYPE(RIVERS) << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(BUAARE) << TYPE(BUISGL) << TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(SLCONS) - << TYPE(PONTON) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) + << TYPE(PONTON) << TYPE(FLODOC) << TYPE(DRYDOC) << TYPE(DAMCON) + << TYPE(PYLONS) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) << SUBTYPE(ACHARE, 1) << SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) - << TYPE(PRCARE) << TYPE(DAMCON) << TYPE(PYLONS); + << TYPE(PRCARE); } void Style::defaultLineStyle()