Back to Home

ESO Lua File v101049

ingame/lorelibrary/lorelibrary_shared.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
function ZO_LoreLibrary_ReadBook(categoryIndex, collectionIndex, bookIndex)
    local title, _, _, bookId = GetLoreBookInfo(categoryIndex, collectionIndex, bookIndex)
    local body, medium, showTitle = ReadLoreBook(categoryIndex, collectionIndex, bookIndex)
    local overrideImage, overrideImageTitlePosition = GetLoreBookOverrideImageFromBookId(bookId)
    LORE_READER:Show(title, body, medium, showTitle, overrideImage, overrideImageTitlePosition)
end
function ZO_LoreLibrary_ReadHirelingCorrespondence(hirelingType, index)
    local _, subject, message = GetHirelingCorrespondenceInfoByIndex(hirelingType, index)
    local SHOW_TITLE = false
    local LETTER_MEDIUM = 4 -- The old enum value for BOOK_MEDIUM_LETTER (4) is now the def id for the equivalent medium
    LORE_READER:Show(subject, message, LETTER_MEDIUM, SHOW_TITLE)
end