forked from mirrors/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:
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user