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

Method OrderClick_Goto

src/order_gui.cpp:576–588  ·  view source on GitHub ↗

* Handle the click on the goto button. */

Source from the content-addressed store, hash-verified

574 * Handle the click on the goto button.
575 */
576 void OrderClick_Goto(OrderPlaceObjectState type)
577 {
578 assert(type > OPOS_NONE && type < OPOS_END);
579
580 static const HighLightStyle goto_place_style[OPOS_END - 1] = {
581 HT_RECT | HT_VEHICLE, // OPOS_GOTO
582 HT_NONE, // OPOS_CONDITIONAL
583 HT_VEHICLE, // OPOS_SHARE
584 };
585 SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, goto_place_style[type - 1], this);
586 this->goto_type = type;
587 this->SetWidgetDirty(WID_O_GOTO);
588 }
589
590 /**
591 * Handle the click on the full load button.

Callers 4

OrdersWindowMethod · 0.95
OnClickMethod · 0.95
OnDropdownSelectMethod · 0.95
OnHotkeyMethod · 0.95

Calls 2

SetObjectToPlaceWndFunction · 0.85
SetWidgetDirtyMethod · 0.80

Tested by

no test coverage detected