Show engine id in build window in newgrf developer mode

This commit is contained in:
dP
2020-04-23 19:38:20 +03:00
parent 62c154acff
commit 9cfc84a1aa
3 changed files with 15 additions and 1 deletions

View File

@@ -74,6 +74,13 @@ This is usable for any OpenTTD servers
== CHANGELOG ==
*** next
- Show engine id in build window in newgrf developer mode.
*** 1.10.1 (15 Apr 2020) ***
- Add a setting to autoopen vehicle window when cloning vehicles while sharing orders.
- Add a setting to autoopen orders window along with a vehicle window for new vehicles.
*** 1.10.0 (1 Apr 2020) ***
- OpenTTD update.

View File

@@ -870,6 +870,12 @@ int DrawVehiclePurchaseInfo(int left, int right, int y, EngineID engine_number,
bool refittable = IsArticulatedVehicleRefittable(engine_number);
bool articulated_cargo = false;
if (_settings_client.gui.newgrf_developer_tools) {
SetDParam(0, e->index);
DrawString(left, right, y, STR_CM_PURCHASE_ENGINE_ID);
y += FONT_HEIGHT_NORMAL;
}
switch (e->type) {
default: NOT_REACHED();
case VEH_TRAIN:

View File

@@ -5515,4 +5515,5 @@ STR_CM_STATION_BUILD_TOWN_SMALL :{BLACK}Town: {GOLD}{TOWN} (S)
STR_CM_CONFIG_SETTING_OPEN_VEHICLE_FOR_SHARED_CLONE :Open vehicle window for shared clones: {STRING2}
STR_CM_CONFIG_SETTING_OPEN_VEHICLE_FOR_SHARED_CLONE_HELPTEXT :Open vehicle window when cloning vehicles with shared orders (as it does for non-shared ones)
STR_CM_CONFIG_SETTING_OPEN_ORDERS_FOR_NEW_VEHICLES :Open orders window for new vehicles: {STRING2}
STR_CM_CONFIG_SETTING_OPEN_ORDERS_FOR_NEW_VEHICLES_HELPTEXT :Automatically open oreders windown along with a vehicle window for a new vehicles
STR_CM_CONFIG_SETTING_OPEN_ORDERS_FOR_NEW_VEHICLES_HELPTEXT :Automatically open oreders windown along with a vehicle window for a new vehicles
STR_CM_PURCHASE_ENGINE_ID :{BLACK}Engine ID: {GOLD}{NUM}