Changes

Undo revision 934455 by Kenji135 (talk)
Line 25: Line 25:  
         = image
 
         = image
 
         and EquipmentCardKai:Asset({ name, size = image, link = link or name })
 
         and EquipmentCardKai:Asset({ name, size = image, link = link or name })
         or ""
+
         or F:format_link(link or name, text or name)
    
     local formatted_icon
 
     local formatted_icon
Line 32: Line 32:  
         and F:format_image{ F:format_equipment_icon(Equipment(name):icon()) }
 
         and F:format_image{ F:format_equipment_icon(Equipment(name):icon()) }
 
         or ""
 
         or ""
  −
    local formatted_text
  −
        = text
  −
        and F:format_link(link or name, text or name)
  −
        or (icon
  −
            and F:format_link(link or name, text or name)
  −
            or "")
  −
        or (image
  −
            and ""
  −
            or F:format_link(link or name, text or name))
      
     local tooltip_content = F:class_div("tooltip-contents", nil, #cards > 0 and table.concat(cards, "") or "??")
 
     local tooltip_content = F:class_div("tooltip-contents", nil, #cards > 0 and table.concat(cards, "") or "??")
   −
     return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_link .. formatted_text .. tooltip_content)
+
     return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_link .. tooltip_content)
    
end
 
end
Anonymous user