• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 93: Line 93:  
local function tooltip(text, title)
 
local function tooltip(text, title)
 
   return F:tooltip2(text, title, '<br>')
 
   return F:tooltip2(text, title, '<br>')
 +
end
 +
 +
local itemTemplate = [=[<span style="position:relative;display:inline">[[File:${file}|35px|link=${link}|${name}]]<span style="font-size:12px;font-weight:800;position:absolute;color:f61;right:4px;bottom:-18px;text-shadow:#fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px, #fff 0px 0px 5px">${text}</span>]=]
 +
 +
local itemFiles = {
 +
  [1] = 'Instant_repair.jpg',
 +
  [2] = 'Instant_construction.jpg',
 +
  [3] = 'Development_material.jpg',
 +
  [10] = 'Furniture_box_small.png',
 +
  [11] = 'Furniture_box_medium.png',
 +
  [12] = 'Furniture_box_large.jpg',
 +
}
 +
 +
local itemLinks = {
 +
  [1] = 'Tutorial:_FAQ#What_are_buckets.3F',
 +
  [2] = 'Construction',
 +
  [3] = 'Development',
 +
  [10] = 'Furniture/Guide#Furniture_coin',
 +
  [11] = 'Furniture/Guide#Furniture_coin',
 +
  [12] = 'Furniture/Guide#Furniture_coin',
 +
}
 +
 +
local itemNames = {
 +
  [1] = 'Instant Repair',
 +
  [2] = 'Instant Construction',
 +
  [3] = 'Development Material',
 +
  [10] = 'Small Furniture Coin Box',
 +
  [11] = 'Medium Furniture Coin Box',
 +
  [12] = 'Large Furniture Coin Box',
 +
}
 +
 +
local function formatItem(id, count)
 +
  return U.format{
 +
    itemTemplate,
 +
    file = itemFiles[id] or '??',
 +
    link = itemLinks[id] or '',
 +
    name = itemNames[id] or '??',
 +
    text = 'x' .. count,
 +
  }
 
end
 
end
   Line 120: Line 159:  
       steel = tooltip(args.explicit[id .. ' steel'] or '??', 'Base resources gain from expedition (at 100% ratio)'),
 
       steel = tooltip(args.explicit[id .. ' steel'] or '??', 'Base resources gain from expedition (at 100% ratio)'),
 
       bauxite = tooltip(args.explicit[id .. ' bauxite'] or '??', 'Base resources gain from expedition (at 100% ratio)'),
 
       bauxite = tooltip(args.explicit[id .. ' bauxite'] or '??', 'Base resources gain from expedition (at 100% ratio)'),
       item1 = '??',
+
       item1 = e.win_item1[1] > 0 and formatItem(e.win_item1[1], e.win_item1[2]) or '',
       item2 = '??',
+
       item2 = e.win_item2[1] > 0 and formatItem(e.win_item2[1], e.win_item2[2]) or '',
 
     }
 
     }
 
   end)) .. '\n|}</div>'
 
   end)) .. '\n|}</div>'
cssedit, gkautomate
7,060

edits

Navigation menu