12 #ifndef TILEHIGHLIGHT_FUNC_H 13 #define TILEHIGHLIGHT_FUNC_H 29 void VpSetPlaceSizingLimit(
int limit);
ViewportDragDropSelectionProcess
Drag and drop selection process, or, what to do with an area of land when you've selected it...
uint32 PaletteID
The number of the palette.
bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile)
A central place to handle all X_AND_Y dragged GUI functions.
bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, HighLightStyle mode)
This code is shared for the majority of the pushbuttons.
void UpdateTileSelection()
Updates tile highlighting for all cases.
void VpSetPresizeRange(TileIndex from, TileIndex to)
Highlights all tiles between a set of two tiles.
WindowClass
Window classes.
Data structure for an opened window.
ViewportPlaceMethod
Viewport place method (type of highlighted area and placed objects)
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process)
highlighting tiles while only going over them with the mouse
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method)
Selects tiles while dragging.
void SetObjectToPlaceWnd(CursorID icon, PaletteID pal, HighLightStyle mode, Window *w)
Change the cursor and mouse click/drag handling to a mode for performing special operations like tile...
Types related to highlighting tiles.
uint32 TileIndex
The index/ID of a Tile.
uint32 CursorID
The number of the cursor (sprite)
void SetObjectToPlace(CursorID icon, PaletteID pal, HighLightStyle mode, WindowClass window_class, WindowNumber window_num)
Change the cursor and mouse click/drag handling to a mode for performing special operations like tile...
HighLightStyle
Highlighting draw styles.
Metadata about the current highlighting.
int32 WindowNumber
Number to differentiate different windows of the same class.
void ResetObjectToPlace()
Reset the cursor and mouse mode handling back to default (normal cursor, only clicking in windows)...
void PlaceProc_DemolishArea(TileIndex tile)
Start a drag for demolishing an area.
Types related to the graphics and/or input devices.