Files
@ r9464:ce84e83c962a
Branch filter:
Location: cpp/openttd-patchpack/source/src/viewport_type.h - annotation
r9464:ce84e83c962a
2.5 KiB
text/x-c
(svn r13384) -Update: WebTranslator2 update to 2008-06-05 08:15:43
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8224:194097dc7288 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8224:194097dc7288 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8857:5317aca8d1c7 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r9129:db82b80b0a0b r9129:db82b80b0a0b r9129:db82b80b0a0b r9129:db82b80b0a0b r9129:db82b80b0a0b r9129:db82b80b0a0b r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r8224:194097dc7288 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r9147:6e8812a42759 r8224:194097dc7288 | /* $Id$ */
/** @file viewport_type.h Types related to viewports. */
#ifndef VIEWPORT_TYPE_H
#define VIEWPORT_TYPE_H
#include "zoom_type.h"
/**
* Data structure for viewport, display of a part of the world
*/
struct ViewPort {
int left; ///< Screen coordinate left egde of the viewport
int top; ///< Screen coordinate top edge of the viewport
int width; ///< Screen width of the viewport
int height; ///< Screen height of the viewport
int virtual_left; ///< Virtual left coordinate
int virtual_top; ///< Virtual top coordinate
int virtual_width; ///< width << zoom
int virtual_height; ///< height << zoom
ZoomLevel zoom;
};
struct ViewportSign {
int32 left;
int32 top;
byte width_1, width_2;
};
enum {
ZOOM_IN = 0,
ZOOM_OUT = 1,
ZOOM_NONE = 2, // hack, used to update the button status
};
/**
* 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.
};
/** Viewport place method (type of highlighted area and placed objects) */
enum ViewportPlaceMethod {
VPM_X_OR_Y = 0, ///< drag in X or Y direction
VPM_FIX_X = 1, ///< drag only in X axis
VPM_FIX_Y = 2, ///< drag only in Y axis
VPM_RAILDIRS = 3, ///< all rail directions
VPM_X_AND_Y = 4, ///< area of land in X and Y directions
VPM_X_AND_Y_LIMITED = 5, ///< area of land of limited size
VPM_SIGNALDIRS = 6, ///< similiar to VMP_RAILDIRS, but with different cursor
};
/** Drag and drop selection process, or, what to do with an area of land when
* you've selected it. */
enum ViewportDragDropSelectionProcess {
DDSP_DEMOLISH_AREA,
DDSP_RAISE_AND_LEVEL_AREA,
DDSP_LOWER_AND_LEVEL_AREA,
DDSP_LEVEL_AREA,
DDSP_CREATE_DESERT,
DDSP_CREATE_ROCKS,
DDSP_CREATE_WATER,
DDSP_CREATE_RIVER,
DDSP_PLANT_TREES,
DDSP_BUILD_BRIDGE,
/* Rail specific actions */
DDSP_PLACE_RAIL_NE,
DDSP_PLACE_RAIL_NW,
DDSP_PLACE_AUTORAIL,
DDSP_BUILD_SIGNALS,
DDSP_BUILD_STATION,
DDSP_REMOVE_STATION,
DDSP_CONVERT_RAIL,
/* Road specific actions */
DDSP_PLACE_ROAD_X_DIR,
DDSP_PLACE_ROAD_Y_DIR,
DDSP_PLACE_AUTOROAD,
};
#endif /* VIEWPORT_TYPE_H */
|