1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
if collectibleId then
local name , description , _ , _ , _ , purchasable , _ , _ , hint , isPlaceholder = GetCollectibleInfo ( collectibleId )
self : LayoutCollectible ( nil , name , nickname , unlockState , purchaseable , description , hint , isPlaceholder )
end
end
function ZO_Tooltip : LayoutCollectible ( collectionName , collectibleName , collectibleNickname , unlockState , isPurchasable , description , hint , isPlaceholder )
if not isPlaceholder then
--things added to the topSection stack upwards
if collectionName then
end
end
self : AddLine ( zo_strformat ( SI_COLLECTIBLE_NAME_FORMATTER , collectibleName ) , qualityNormal , self : GetStyle ( "title" ) )
if collectibleNickname and collectibleNickname ~= "" then
headerSection : AddLine ( zo_strformat ( SI_GAMEPAD_COLLECTIONS_NICKNAME_FORMAT , collectibleNickname ) , qualityNormal , self : GetStyle ( "bodyHeader" ) )
end
bodySection : AddLine ( zo_strformat ( SI_GAMEPAD_COLLECTIONS_DESCRIPTION_FORMATTER , description ) , self : GetStyle ( "bodyDescription" ) )
end
if isPurchasable then
bodySection : AddLine ( GetString ( SI_COLLECTIBLE_TOOLTIP_PURCHASABLE ) , self : GetStyle ( "bodyDescription" ) )
end
if hint then
bodySection : AddLine ( zo_strformat ( SI_GAMEPAD_COLLECTIONS_DESCRIPTION_FORMATTER , hint ) , self : GetStyle ( "bodyDescription" ) )
end
end |