I got the image to pull up however I think there is a problem some where in the table or the local function QuestMaps()
Because I can go above and comment the code out and pull up the image. Right now I'm just getting a white box I have it un hidden so that I can see the img currently. Here is the code I have.
Lua Code:
--This code displays the image with lua so no need for any xml.
local tlw = WINDOW_MANAGER:CreateTopLevelWindow("WindowName")
tlw:SetDimensions(700,700)
tlw:SetAnchor(CENTER)
tlw:SetHidden(false)
local image = WINDOW_MANAGER:CreateControl("WindowNameImage", tlw, CT_TEXTURE)
image:SetAnchorFill(tlw)
--WindowNameImage:SetTexture("QuestVisions/Maps/auridon.dds")
--[[This table is the zone index map and what I want it to display. Example [179] = 51, would be quest number to display. However
instead of 51, we could place an image here.]]--
--Custom images must be in .dds format a picture program like photoshop or gimp should be able to convert the image.
--To call an image it would be example "QuestVisions/Maps/auridon.dds" or [[QuestVisions/Maps/auridon.dds]].
local questImage ={
--Aldmeri Dominion
[179] = "QuestVisions/Maps/auridon.dds", --Auridon
[295] = 11, --Khenarthi's Roost
[181] = 44, --Grahtwood
[19] = 50, --Greenshade
[12] = 45, --Malabal Tor
[180] = 60, --Reaper's March
--Daggerfall Covenant
[293] = 15, --Stros M'Kai
[294] = 9, --Betnikh
[2] = 67, --Glenumbra
[4] = 70, --Stormhaven
[5] = 48, --Rivenspir
[18] = 53, --Alik'r Desert
[15] = 47, --Bangkorai
--Ebonheart Pact
[110] = 12, --Bleakrock Isle
[111] = 9, --Bal Foyen
[9] = 76, --Stonefalls
[11] = 67, --Deshaan
[20] = 64, --Shadowfen
[16] = 52, --Eastmarch
[17] = 73, --The Rift
--All other quest/other
[155] = 32, --Coldharbour
[353] = 18, --Craglorn
[38] = 566, --Cyrodiil
}
--[[This function pulls up what I want displayed for each zone like in questlurker it uses the zone index map to find the zone then
display the quest number I've provided. Instead of a quest number I can add an image.]]--
-- QuestMapsQuest:SetTexture is how we call the texture which is our image. MyBackdropElement:SetCenterTexture([[Maps/auridon.dds]])
local function QuestMaps()
local zoneIndex = GetCurrentMapZoneIndex()
local imgQuests = questImage[zoneIndex]
if imgQuests ~= nil then
WindowNameImage:SetTexture(imgQuests)
WindowName:SetHidden(false)
else
WindowName:SetHidden(true)
end
end