Debug: Allow clicking to highlight group in sprite group dump window

This commit is contained in:
Jonathan G Rennison
2022-06-01 21:31:05 +01:00
parent 6d877b5e70
commit 564d7e5029
8 changed files with 84 additions and 57 deletions

View File

@@ -691,12 +691,12 @@ bool IndustryTemporarilyRefusesCargo(Industry *ind, CargoID cargo_type)
return false;
}
void DumpIndustrySpriteGroup(const IndustrySpec *spec, std::function<void(const char *)> print)
void DumpIndustrySpriteGroup(const IndustrySpec *spec, DumpSpriteGroupPrinter print)
{
DumpSpriteGroup(spec->grf_prop.spritegroup[0], std::move(print));
}
void DumpIndustryTileSpriteGroup(const IndustryTileSpec *spec, std::function<void(const char *)> print)
void DumpIndustryTileSpriteGroup(const IndustryTileSpec *spec, DumpSpriteGroupPrinter print)
{
DumpSpriteGroup(spec->grf_prop.spritegroup[0], std::move(print));
}