In my MagePorts addon I used the following to get the map image for my continent buttons
Lua Code:
addonData.TaxiMaps =
{
[1] = { --Kalimdor
mapID = 12,
mapTexture = "TAXIMAP1",
},
[2] = { -- Eastern Kingdoms
mapID = 13,
mapTexture = "TAXIMAP0",
},
[3] = { -- Outland
mapID = 101,
mapTexture = "TAXIMAP530",
},
[4] = { -- Northrend
mapID = 113,
mapTexture = "TAXIMAP571",
},
[5] = { -- Pandaria
mapID = 424,
mapTexture = "TAXIMAP870",
},
[6] = { -- Draenor
mapID = 572,
mapTexture = "TAXIMAP1116",
},
[7] = { -- Broken Isles
mapID = 619,
mapTexture = "TAXIMAP1220",
},
[8] = { -- Zandalar
mapID = 875,
mapTexture = "TAXIMAP1642",
mapFaction = "Horde",
},
[9] = { -- Kul'Tiras
mapID = 876,
mapTexture = "TAXIMAP1643",
mapFaction = "Alliance",
},
}
These images are still in the TAXIFRAME folder of Interface but there doesn't seem to be one for Shadowlands and I suspect not for Dragonflight either..
The mapIDs are still the same pointing to 1550 for Shadowlands but the only texture numbers of files in existanceare 10 to 150 long lists of texture numbers ... not the 9 at most for nineslicing I was expecting at worst.
Does anyone know of a way to get a smaller list of textures or even a single texture for the Shadowlands continent map and eventually the Dragonflight continent map ?
And, worse case scenario, how would I arrange those texture numbers into a small button texture ?
Thanks in advance for any info you can provide.
Edit:
It seems the list of texture numbers can be used with a MapCanvas object - probably not ideal for button use though.
https://github.com/tomrus88/Blizzard...lLayer.lua#L46
Edit2:
Going through Canvas or creating my own mini canvas doesn't work. Unable to increase the number of map tiles ( to make smaller segments ) as it makes the script run too long and error out. And this wasn't as small as I needed it.
Might have to forego on the continent map buttons and re-do the addon yet again. Might be able to have Continent NAME buttons. I am assuming the name returned by the map functions are localized.