Functions related to the autoreplace GUIs. More...
#include "engine_type.h"#include "group_type.h"#include "vehicle_type.h"Go to the source code of this file.
Functions | |
| void | AddRemoveEngineFromAutoreplaceAndBuildWindows (VehicleType type) |
| When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists. | |
| void | InvalidateAutoreplaceWindow (EngineID e, GroupID id_g) |
| Rebuild the left autoreplace list if an engine is removed or added. | |
| void | ShowReplaceGroupVehicleWindow (GroupID group, VehicleType veh) |
Functions related to the autoreplace GUIs.
Definition in file autoreplace_gui.h.
| void AddRemoveEngineFromAutoreplaceAndBuildWindows | ( | VehicleType | type | ) |
When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists.
| type | The type of engine |
Definition at line 92 of file autoreplace_gui.cpp.
References InvalidateWindowClassesData(), and InvalidateWindowData().
Referenced by NewVehicleAvailable().
Rebuild the left autoreplace list if an engine is removed or added.
| e | Engine to check if it is removed or added | |
| id_g | The group the engine belongs to Note: this function only works if it is called either
|
Definition at line 75 of file autoreplace_gui.cpp.
References _local_company, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem<&_engine_pool >::Get(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem<&_company_pool >::Get(), GetGroupNumEngines(), InvalidateWindowData(), and Company::num_engines.
Referenced by CmdBuildVehicle(), CmdSetAutoReplace(), and Vehicle::PreDestructor().
1.7.1