Line 21: |
Line 21: |
| local cards = {} | | local cards = {} |
| for _, arg in ipairs(args) do | | for _, arg in ipairs(args) do |
− | local equipment_asset = EquipmentCardKai:Asset({ arg, size = "260px" })
| + | table.insert(cards, arg == "-" and "<br />" or EquipmentCardKai:Asset({ arg, size = args.size })) |
− | equipment_asset = string.gsub(equipment_asset, "File:Catbomb.png|260px", "File:Catbomb.png|300px")
| |
− | table.insert(cards, arg == "-" and "<br />" or equipment_asset) | |
| end | | end |
| | | |
Line 56: |
Line 54: |
| | | |
| 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(link)
| |
− | local equipment_asset = EquipmentCardKai:Asset({ link, size = "260px" })
| |
− | equipment_asset = string.gsub(equipment_asset, "File:Catbomb.png|260px", "File:Catbomb.png|300px")
| |
− | local formatted_text = F:format_link(link, link)
| |
− | local tooltip_content = F:class_span("tooltip-contents", nil, equipment_asset)
| |
− | return F:class_span("advanced-tooltip", nil, formatted_text .. tooltip_content)
| |
| end | | end |
| | | |