|
@@ -41,12 +41,23 @@ void HandleZoomMessage(Window *w, const
|
|
|
|
|
|
static inline void MaxZoomInOut(int how, Window *w)
|
|
|
{
|
|
|
while (DoZoomInOutWindow(how, w)) {};
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Some values for constructing bounding boxes (BB). The Z positions under bridges are:
|
|
|
* z=0..5 Everything that can be built under low bridges.
|
|
|
* z=6 reserved, currently unused.
|
|
|
* z=7 Z separator between bridge/tunnel and the things under/above it.
|
|
|
*/
|
|
|
enum {
|
|
|
BB_HEIGHT_UNDER_BRIDGE = 6, ///< Everything that can be built under low bridges, must not exceed this Z height.
|
|
|
BB_Z_SEPARATOR = 7, ///< Separates the bridge/tunnel from the things under/above it.
|
|
|
};
|
|
|
|
|
|
void OffsetGroundSprite(int x, int y);
|
|
|
|
|
|
void DrawGroundSprite(SpriteID image, SpriteID pal);
|
|
|
void DrawGroundSpriteAt(SpriteID image, SpriteID pal, int32 x, int32 y, byte z);
|
|
|
void AddSortableSpriteToDraw(SpriteID image, SpriteID pal, int x, int y, int w, int h, int dz, int z, bool transparent = false, int bb_offset_x = 0, int bb_offset_y = 0, int bb_offset_z = 0);
|
|
|
void *AddStringToDraw(int x, int y, StringID string, uint64 params_1, uint64 params_2);
|