mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 15:00:43 +00:00
882a39ee70
Added functions to TerrainMapGenerator to create a bitmap from the Minimap Terrain array with the colors being identical to those rendered in game, with the additional change of setting the Alpha of all water to 0. Calls added to generateTerrainMaps to actually generate the thumbnail PNGs, Revision to src\client\utilities\maps.ts to reflect that the images pulled into the UI should be those ending in 'Thumb.png,' I've tested by launching the game and starting a few matches. hile I'd hoped that using the minimaps as the basis for the thumbnails would speed things up I think the actual bottleneck is the writing to the file system. Below is a screenshot showing these thumbnails in the UI.     Finally I will say that while the code additions work, given my novice status with typescript and asynch calls these changes may benefit more from review and a little critical feedback before they're ready to merge.