Feature: Control + clicking on a vehicle in the vehicle list window opens the vehicle group window focused on the vehicle's group.
This commit is contained in:

committed by
Charles Pigott

parent
798e9ee93e
commit
fea5151ee1
@@ -1625,7 +1625,13 @@ public:
|
|||||||
if (id_v >= this->vehicles.size()) return; // click out of list bound
|
if (id_v >= this->vehicles.size()) return; // click out of list bound
|
||||||
|
|
||||||
const Vehicle *v = this->vehicles[id_v];
|
const Vehicle *v = this->vehicles[id_v];
|
||||||
if (!VehicleClicked(v)) ShowVehicleViewWindow(v);
|
if (!VehicleClicked(v)) {
|
||||||
|
if (_ctrl_pressed) {
|
||||||
|
ShowCompanyGroupForVehicle(v);
|
||||||
|
} else {
|
||||||
|
ShowVehicleViewWindow(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user