Files
@ r16679:4aec077dd028
Branch filter:
Location: cpp/openttd-patchpack/source/src/tilehighlight_type.h - annotation
r16679:4aec077dd028
2.7 KiB
text/x-c
(svn r21421) -Update from WebTranslator v3.0:
belarusian - 2 changes by KorneySan
catalan - 3 changes by arnau
croatian - 1 changes by VoyagerOne
dutch - 21 changes by habell
french - 1 changes by glx
irish - 2 changes by tem
korean - 1 changes by junho2813
polish - 2 changes by voythas
romanian - 7 changes by kneekoo
russian - 2 changes by KorneySan
serbian - 25 changes by etran
slovenian - 3 changes by ntadej
ukrainian - 2 changes by Fixer
vietnamese - 2 changes by myquartz, nglekhoi
belarusian - 2 changes by KorneySan
catalan - 3 changes by arnau
croatian - 1 changes by VoyagerOne
dutch - 21 changes by habell
french - 1 changes by glx
irish - 2 changes by tem
korean - 1 changes by junho2813
polish - 2 changes by voythas
romanian - 7 changes by kneekoo
russian - 2 changes by KorneySan
serbian - 25 changes by etran
slovenian - 3 changes by ntadej
ukrainian - 2 changes by Fixer
vietnamese - 2 changes by myquartz, nglekhoi
r9127:933c13888121 r9127:933c13888121 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r14248:a9050881acd7 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r16050:f8b5963745b7 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r11695:8dbb94e1bfa0 r9127:933c13888121 r9127:933c13888121 r14900:c679fdaeebe6 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r11695:8dbb94e1bfa0 r11695:8dbb94e1bfa0 r11695:8dbb94e1bfa0 r9127:933c13888121 r11697:53072e575f0b r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9147:6e8812a42759 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 r9127:933c13888121 | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file tilehighlight_type.h Types related to highlighting tiles. */
#ifndef TILEHIGHLIGHT_TYPE_H
#define TILEHIGHLIGHT_TYPE_H
#include "core/geometry_type.hpp"
#include "window_type.h"
#include "tile_type.h"
#include "viewport_type.h"
/** Highlighting draw styles */
enum HighLightStyle {
HT_NONE = 0x000, ///< default
HT_RECT = 0x010, ///< rectangle (stations, depots, ...)
HT_POINT = 0x020, ///< point (lower land, raise land, level land, ...)
HT_SPECIAL = 0x030, ///< special mode used for highlighting while dragging (and for tunnels/docks)
HT_DRAG = 0x040, ///< dragging items in the depot windows
HT_LINE = 0x008, ///< used for autorail highlighting (longer streches), lower bits: direction
HT_RAIL = 0x080, ///< autorail (one piece), lower bits: direction
HT_VEHICLE = 0x100, ///< vehicle is accepted as target as well (bitmask)
HT_DRAG_MASK = 0x0F8, ///< masks the drag-type
/* lower bits (used with HT_LINE and HT_RAIL):
* (see ASCII art in autorail.h for a visual interpretation) */
HT_DIR_X = 0, ///< X direction
HT_DIR_Y = 1, ///< Y direction
HT_DIR_HU = 2, ///< horizontal upper
HT_DIR_HL = 3, ///< horizontal lower
HT_DIR_VL = 4, ///< vertical left
HT_DIR_VR = 5, ///< vertical right
HT_DIR_END, ///< end marker
HT_DIR_MASK = 0x7 ///< masks the drag-direction
};
DECLARE_ENUM_AS_BIT_SET(HighLightStyle)
struct TileHighlightData {
Point size;
Point outersize;
Point pos;
Point offs;
Point new_pos;
Point new_size;
Point new_outersize;
Point selend, selstart;
byte dirty;
byte sizelimit;
HighLightStyle drawstyle; // lower bits 0-3 are reserved for detailed highlight information information
HighLightStyle new_drawstyle; // only used in UpdateTileSelection() to as a buffer to compare if there was a change between old and new
HighLightStyle next_drawstyle; // queued, but not yet drawn style
HighLightStyle place_mode;
bool make_square_red;
WindowClass window_class;
WindowNumber window_number;
ViewportPlaceMethod select_method;
ViewportDragDropSelectionProcess select_proc;
TileIndex redsq;
};
#endif /* TILEHIGHLIGHT_TYPE_H */
|