summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-10-05 21:18:37 +0000
committerpeter1138 <peter1138@openttd.org>2014-10-05 21:18:37 +0000
commit5a924dcbbc25762ec770a32e6f14c2798bf9f92f (patch)
treed7bce9c379945f3c0740f787f1c7cdbb540f2ce6 /src/table
parent9ab2263fda4bda2477ed6bf69ed26e03bb989155 (diff)
downloadopenttd-5a924dcbbc25762ec770a32e6f14c2798bf9f92f.tar.xz
(svn r26965) -Codechange: Add palette bit to indicate that palette is actually a text colour remap, and draw closebox as a sprite, using said bit. Change news popup to use closebox widget for its closebox.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/sprites.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/table/sprites.h b/src/table/sprites.h
index b5b3321b0..fa687a39f 100644
--- a/src/table/sprites.h
+++ b/src/table/sprites.h
@@ -85,6 +85,8 @@ static const SpriteID SPR_SHARED_ORDERS_ICON = SPR_OPENTTD_BASE + 50;
static const SpriteID SPR_PIN_UP = SPR_OPENTTD_BASE + 51; // pin icon
static const SpriteID SPR_PIN_DOWN = SPR_OPENTTD_BASE + 52;
+static const SpriteID SPR_CLOSEBOX = 143;
+
static const SpriteID SPR_CIRCLE_FOLDED = SPR_OPENTTD_BASE + 147; // (+) icon
static const SpriteID SPR_CIRCLE_UNFOLDED = SPR_OPENTTD_BASE + 148; // (-) icon
@@ -1479,11 +1481,15 @@ static const CursorID ANIMCURSOR_BUILDSIGNALS = ANIMCURSOR_FLAG | 4; ///< 1292 -
* bits used for the recolouring process. For transparency, it must be 0x322.</li></ul>
*/
enum SpriteSetup {
+ /* These bits are applied to sprite ID */
TRANSPARENT_BIT = 31, ///< toggles transparency in the sprite
RECOLOUR_BIT = 30, ///< toggles recolouring in the sprite
CUSTOM_BIT = 29,
OPAQUE_BIT = 28,
+ /* This bit is applied to palette ID */
+ PALETTE_TEXT_RECOLOUR = 31, ///< Set if palette is actually a magic text recolour
+
PALETTE_WIDTH = 24, ///< number of bits of the sprite containing the recolour palette
SPRITE_WIDTH = 24, ///< number of bits for the sprite number
};