- 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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user