Changes

Test
Line 56: Line 56:     
     return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_image .. formatted_text .. tooltip_content)
 
     return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_image .. formatted_text .. tooltip_content)
 +
   
 +
end
    +
function EquipmentLink:create(name)
 +
    local equipment_asset = EquipmentCardKai:Asset({ name, size = "260px" })
 +
    equipment_asset = string.gsub(equipment_asset, "File:Catbomb.png|260px", "File:Catbomb.png|300px")
 +
    local formatted_text = F:format_link(name, name)
 +
    local tooltip_content = F:class_span("tooltip-contents", nil, equipment_asset)
 +
    return F:class_span("advanced-tooltip", nil, formatted_text .. tooltip_content)
 
end
 
end
  
Anonymous user