TBTR: Fix palette recolouring of templates
Fix group overrides affecting template image when cloning vehicle Update template when changing company colours Update template images on demand instead of at load
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "tbtr_template_vehicle.h"
|
||||
|
||||
Train* VirtualTrainFromTemplateVehicle(TemplateVehicle* tv, StringID &err, uint32 user);
|
||||
Train* VirtualTrainFromTemplateVehicle(const TemplateVehicle* tv, StringID &err, uint32 user);
|
||||
|
||||
void BuildTemplateGuiList(GUITemplateList*, Scrollbar*, Owner, RailType);
|
||||
|
||||
@@ -59,4 +59,11 @@ void NeutralizeStatus(Train *t);
|
||||
bool TrainMatchesTemplate(const Train *t, const TemplateVehicle *tv);
|
||||
bool TrainMatchesTemplateRefit(const Train *t, const TemplateVehicle *tv);
|
||||
|
||||
void UpdateAllTemplateVehicleImages();
|
||||
|
||||
inline void InvalidateTemplateReplacementImages()
|
||||
{
|
||||
_template_vehicle_images_valid = false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user