1
0
forked from 0ad/0ad

Biome specific map previews for Mainland, which for some reason is still the favorite map of many lobby players, refs #4962.

This was SVN commit r21679.
This commit is contained in:
elexis 2018-04-09 11:38:26 +00:00
parent 4e3dbeeada
commit 7f602037ba
16 changed files with 36 additions and 17 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1632,9 +1632,12 @@ function getMapDisplayName(map)
function getMapPreview(map)
{
let mapBiome = g_Settings.Biomes.find(biome => biome.Id == g_GameAttributes.settings.Biome);
if (mapBiome && mapBiome.Preview)
return mapBiome.Preview;
if (g_GameAttributes.settings.Biome)
{
let biomePreview = basename(map) + "_" + basename(g_GameAttributes.settings.Biome) + ".png";
if (Engine.FileExists("art/textures/ui/session/icons/mappreview/" + biomePreview))
return biomePreview;
}
let mapData = loadMapData(map);
if (!mapData || !mapData.settings || !mapData.settings.Preview)

View File

@ -3,7 +3,7 @@
"Name" : "Mainland",
"Script" : "mainland.js",
"Description" : "A typical map without any water.",
"Preview" : "mainland.png",
"Preview" : "mainland_temperate.png",
"SupportedBiomes": "generic/",
"CircularMap" : true
}

View File

@ -1,8 +1,7 @@
{
"Description": {
"Title": "Dry Season",
"Description": "The vitalizing waters of the Nile sustain life along its banks, while the long dry season scorches the land.",
"Preview" : "fields_of_meroe_dry.png"
"Description": "The vitalizing waters of the Nile sustain life along its banks, while the long dry season scorches the land."
},
"Environment": {
"SkySet": "sunny",

View File

@ -1,8 +1,7 @@
{
"Description": {
"Title": "Rainy Season",
"Description": "Revelling in the much awaited rain, the baked land transforms into a lush haven for both man and beast.",
"Preview" : "fields_of_meroe_rainy.png"
"Description": "Revelling in the much awaited rain, the baked land transforms into a lush haven for both man and beast."
},
"Environment": {
"SkySet": "stormy",

View File

@ -1,8 +1,7 @@
{
"Description": {
"Title": "Frozen Lake",
"Description": "Solidifying it's grip, the harsh cold has succeeded in freezing up the gulf. The thick ice formed is capable of withstanding any weight.",
"Preview" : "gulf_of_bothnia_frozen_lake.png"
"Description": "Solidifying it's grip, the harsh cold has succeeded in freezing up the gulf. The thick ice formed is capable of withstanding any weight."
},
"Environment": {
"SkySet": "stormy",

View File

@ -1,8 +1,7 @@
{
"Description": {
"Title": "Late Spring",
"Description": "A late spring breeze ripples through the conifer forests of the Gulf of Bothnia. Herds of deer dot the landscape and playful rabbits frolick in the undergrowth.",
"Preview" : "gulf_of_bothnia_late_spring.png"
"Description": "A late spring breeze ripples through the conifer forests of the Gulf of Bothnia. Herds of deer dot the landscape and playful rabbits frolick in the undergrowth."
},
"Environment": {
"SkySet": "stormy",

View File

@ -1,8 +1,7 @@
{
"Description": {
"Title": "Winter",
"Description": "Winter has set in, carpeting the land with its first snow. The still unfrozen gulf offers great fishing opportunities.",
"Preview" : "gulf_of_bothnia_winter.png"
"Description": "Winter has set in, carpeting the land with its first snow. The still unfrozen gulf offers great fishing opportunities."
},
"Environment": {
"SkySet": "stormy",