News:

SimuTranslator
Make Simutrans speak your language.

Vehicle Details tab in Convoi Dialog always displays first player colors.

Started by Leartin, December 20, 2020, 10:21:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leartin

See attached image.
The vehicles list displays all vehicles in player colors and updates if they load/unload.
The vehicle details in the convoi dialog is displayed with the first players color, no matter which player it belongs to. It also doesn't update the graphic when the vehicle loads/unloads but is stuck in the state it was when the dialog was opened. (this doesn't matter much though).

Of course in the code, these two are incomparable since one gets the image from vehicle_t, the other from vehicle_desc_t - it's not as simple as copypasting the code from vehiclelist_frame.cc to convoi_detail_t.cc. Still, if possible, the behaviour should be identical.

Dwachs

Parsley, sage, rosemary, and maggikraut.