mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
4e3dbeeada
commit
7f602037ba
16 changed files with 36 additions and 17 deletions
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ab575c448396691e149a21715f732d2f63b976f6e911adc4605626ba7fd48649
|
||||
size 149733
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cdec7529ec667bbd4ee50b466a92ebd8cd1409ee535e3f088f1d7a0619eaa3b1
|
||||
size 148425
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3bdff0d3654a7cff104df349ec72c7bba9fe7d79ba23982165ceabee1ce9b0e8
|
||||
size 137495
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cb07e4897a3cf5f323c9d1b93d3f7af68a413e3f0aede11f9d7e7cf979193180
|
||||
size 153582
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d55ae6a07a9adda558f77eb71f5d5e5627bd01c53ed52ba704b5eaa6d360d999
|
||||
size 150507
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9c5f3fd61fe1bf4e14f9a3755c5679e28047bea87a52c5be38b3bd1ba0473e1f
|
||||
size 142102
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cbb1ee4d93c62f09b78410478e5ea82a2276db80d6618cf6ef17a5fd5830b78a
|
||||
size 150558
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b565d4845a3a4a40a0cfb1610edb02b796a40f6256a67f963229fdfd3a6b4d12
|
||||
size 143278
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bf5150064119a588d319eba2439fd7d6db6f63d9295a9a0f58be8d5c40d980d7
|
||||
size 141597
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue