* Handle the click on the goto button. */
| 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. |
no test coverage detected