
# Conflicts: # .github/workflows/ci-build.yml # .github/workflows/release-linux.yml # .github/workflows/release-macos.yml # .github/workflows/release-windows.yml # .gitignore # COMPILING.md # src/company_gui.cpp # src/date_gui.cpp # src/engine.cpp # src/engine_func.h # src/fileio.cpp # src/linkgraph/linkgraph_gui.h # src/newgrf_debug_gui.cpp # src/newgrf_gui.cpp # src/order_gui.cpp # src/osk_gui.cpp # src/rail_gui.cpp # src/road_gui.cpp # src/script/api/script_event_types.hpp # src/sl/oldloader_sl.cpp # src/smallmap_gui.cpp # src/station_cmd.cpp # src/toolbar_gui.cpp # src/town_gui.cpp # src/transparency_gui.cpp # src/vehicle_gui.cpp # src/widget.cpp # src/widget_type.h # src/widgets/dropdown.cpp # src/widgets/dropdown_func.h # src/widgets/dropdown_type.h # src/widgets/group_widget.h # src/widgets/vehicle_widget.h # src/window.cpp # src/window_gui.h # src/window_type.h
40 lines
1.9 KiB
C
40 lines
1.9 KiB
C
/*
|
|
* 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_func.h Functions related to tile highlights. */
|
|
|
|
#ifndef TILEHIGHLIGHT_FUNC_H
|
|
#define TILEHIGHLIGHT_FUNC_H
|
|
|
|
#include "gfx_type.h"
|
|
#include "tilehighlight_type.h"
|
|
#include "track_type.h"
|
|
|
|
void PlaceProc_DemolishArea(TileIndex tile);
|
|
bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile);
|
|
|
|
bool HandlePlacePushButton(Window *w, WidgetID widget, CursorID cursor, HighLightStyle mode);
|
|
void SetObjectToPlaceWnd(CursorID icon, PaletteID pal, HighLightStyle mode, Window *w);
|
|
void SetObjectToPlace(CursorID icon, PaletteID pal, HighLightStyle mode, WindowClass window_class, WindowNumber window_num);
|
|
void ResetObjectToPlace();
|
|
|
|
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
|
|
void VpStartDragging(ViewportDragDropSelectionProcess process);
|
|
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
|
|
void VpSetPresizeRange(TileIndex from, TileIndex to);
|
|
void VpSetPlaceSizingLimit(int limit);
|
|
|
|
void UpdateTileSelection();
|
|
|
|
void StoreRailPlacementEndpoints(TileIndex start_tile, TileIndex end_tile, Track start_track, bool bidirectional = true);
|
|
void ResetRailPlacementSnapping();
|
|
bool CurrentlySnappingRailPlacement();
|
|
|
|
extern TileHighlightData _thd;
|
|
|
|
#endif /* TILEHIGHLIGHT_FUNC_H */
|