- new API: Details:GetEncounterInfoFromEncounterName (ID, encountername), returns encounter info.

- Tweaks for Legion Dungeon.
- Framework update to v35.
- Solved an issue with bookmarks where the background sometimes was a light silver.
- Sovelod an issue with the display menu where sometimes it wasn't changeing the display.
- new tooltip design.
This commit is contained in:
Tercio
2016-08-11 00:13:27 -03:00
parent ba033e79b3
commit 07ed01c097
16 changed files with 206 additions and 72 deletions
+13
View File
@@ -189,6 +189,19 @@ do
return _detalhes.EncounterInformation [mapid] and _detalhes.EncounterInformation [mapid].encounters [bossindex]
end
function _detalhes:GetEncounterInfoFromEncounterName (EJID, encountername)
EJ_SelectInstance (EJID)
for i = 1, 20 do
local name = EJ_GetEncounterInfoByIndex (i, EJID)
if (not name) then
return
end
if (name == encountername or name:find (encountername)) then
return i, EJ_GetEncounterInfoByIndex (i, EJID)
end
end
end
--> return the wallpaper for the raid instance
function _detalhes:GetRaidBackground (mapid)
local bosstables = _detalhes.EncounterInformation [mapid]