MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetObjectToPlaceWnd

Function SetObjectToPlaceWnd

src/viewport.cpp:3510–3513  ·  view source on GitHub ↗

* Change the cursor and mouse click/drag handling to a mode for performing special operations like tile area selection, object placement, etc. * @param icon New shape of the mouse cursor. * @param pal Palette to use. * @param mode Mode to perform. * @param w %Window requesting the mode change. */

Source from the content-addressed store, hash-verified

3508 * @param w %Window requesting the mode change.
3509 */
3510void SetObjectToPlaceWnd(CursorID icon, PaletteID pal, HighLightStyle mode, Window *w)
3511{
3512 SetObjectToPlace(icon, pal, mode, w->window_class, w->window_number);
3513}
3514
3515#include "table/animcursors.h"
3516

Callers 11

OnClickMethod · 0.85
OrderClick_GotoMethod · 0.85
OnClickMethod · 0.85
UpdateSelectSizeMethod · 0.85
DepotClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnPageElementClickMethod · 0.85
OnClickMethod · 0.85
UpdateSelectSizeMethod · 0.85
OnClickMethod · 0.85

Calls 1

SetObjectToPlaceFunction · 0.85

Tested by

no test coverage detected