summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-11-26 14:00:57 +0000
committerdominik <dominik@openttd.org>2004-11-26 14:00:57 +0000
commitd801ca16a30efaec8e3bbcd47774c9eb9b691f1b (patch)
tree9e8ee2b5fd754b740dd680685159404168824045 /table
parenta2951667546a0ab402c9cb23b2a8a5553b17a6ca (diff)
downloadopenttd-d801ca16a30efaec8e3bbcd47774c9eb9b691f1b.tar.xz
(svn r819) Code cleanup: colors for langfile strings are now taken from a color table instead of a sprite
Diffstat (limited to 'table')
-rw-r--r--table/palettes.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/table/palettes.h b/table/palettes.h
index fd4a77f38..184a2a495 100644
--- a/table/palettes.h
+++ b/table/palettes.h
@@ -94,3 +94,25 @@ static const ExtraPaletteValues _extra_palette_values = {
92,164,184, 92,164,184,116,180,196,148,200,216,180,220,232},
};
+// Color table for colors in lang files (e.g. {BLACK})
+// 1st color: text
+// 2nd color: shadow
+static const byte StringColormap[17][2] = {
+ { 150, 215 }, // BLUE
+ { 12, 215 }, // SILVER
+ { 189, 215 }, // GOLD
+ { 184, 215 }, // RED
+ { 174, 215 }, // PURPLE
+ { 30, 215 }, // LTBROWN
+ { 195, 215 }, // ORANGE
+ { 209, 215 }, // GREEN
+ { 68, 215 }, // YELLOW
+ { 95, 215 }, // DKGREEN
+ { 79, 215 }, // CREAM
+ { 116, 215 }, // BROWN
+ { 15, 215 }, // WHITE
+ { 152, 215 }, // LTBLUE
+ { 32, 215 }, // GRAY
+ { 133, 215 }, // DKBLUE
+ { 215, 0 }, // BLACK
+};