Show correct planet image based on planet type
Closed this issue · 1 comments
lanedirt commented
TODO: The correct image for the planet needs to be shown in the following locations:
- Galaxy page
- Planet list in right sidebar
- Planet abandon/rename popup (button on overview page)
- Empire page (does not exist yet)
- Note: PR #194 added more images which resulted in some duplicates. Check which version is the best to use and delete any duplicates.
A planet is always one of these types:
- dry
- desert
- normal
- jungle
- water
- ice
- gas
See PlanetService::getPlanetType()
for how the planet type is determined.
The [planet type] + [planet position in galaxy:system] makes up the unique "image". E.g. planet 1:1:15 with type "dry" would be "dry_15".
Images are stored in /public/img/planets
. Note: not all images have been added to this folder yet. Any missing images will need to be retrieved and stored in the correct folder.
Chewbaka69 commented