Changes

no edit summary
Line 155: Line 155:     
-- not doing Formatting:advanced_tooltip
 
-- not doing Formatting:advanced_tooltip
function equipment_tooltip(text, equipment_card)
+
function equipment_tooltip(text, equipment_name, equipment_card)
 
     return format{
 
     return format{
         [=[<span class="advanced-tooltip explain" style="color:red;">${text}<div class="tooltip-contents">[[File:${equipment_card}]]</div></span>]=],
+
         [=[<span class="advanced-tooltip explain" style="color:red;">${text}<div class="tooltip-contents" style="text-align:center; width:150px;">${equipment_name}<br>[[File:${equipment_card}|150px]]</div></span>]=],
 
         text = text,
 
         text = text,
 
         equipment_card = equipment_card,
 
         equipment_card = equipment_card,
Line 171: Line 171:  
             elseif equipment then
 
             elseif equipment then
 
                 local equipment_card = Equipment(equipment):card()
 
                 local equipment_card = Equipment(equipment):card()
                 return equipment_tooltip(amount, equipment_card)
+
                 return equipment_tooltip(amount, equipment, equipment_card)
 
             end
 
             end
 
         elseif resources.equipment == false then
 
         elseif resources.equipment == false then
cssedit, gkautomate
7,064

edits