mirror of https://github.com/OpenTTD/OpenTTD.git
Feature: Control + click on a vehicle in the vehicle group window selects and scrolls to the vehicle's group.
This commit is contained in:
parent
551bde77a4
commit
a363933d08
|
@ -734,6 +734,10 @@ public:
|
||||||
|
|
||||||
this->vehicle_sel = v->index;
|
this->vehicle_sel = v->index;
|
||||||
|
|
||||||
|
if (_ctrl_pressed) {
|
||||||
|
this->SelectGroup(v->group_id);
|
||||||
|
}
|
||||||
|
|
||||||
SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
|
SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
|
||||||
SetMouseCursorVehicle(v, EIT_IN_LIST);
|
SetMouseCursorVehicle(v, EIT_IN_LIST);
|
||||||
_cursor.vehchain = true;
|
_cursor.vehchain = true;
|
||||||
|
|
Loading…
Reference in New Issue