Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m some attrs now brown instad of grey
Sur (talk | contribs)
m stat_infobox color shades slightly distinguished
Line 310: Line 310:
if (icon_color == "Brown") then
if (icon_color == "Brown") then
image_file = '<span style="position: relative; bottom: 2px; filter: invert(42%) sepia(10%) saturate(2912%) hue-rotate(351deg) brightness(90%) contrast(87%);">' .. image_file .. '</span>'
image_file = '<span style="position: relative; bottom: 2px; filter: invert(42%) sepia(10%) saturate(2912%) hue-rotate(351deg) brightness(90%) contrast(87%);">' .. image_file .. '</span>'
else
image_file = '<span style="position: relative; bottom: 2px; filter: brightness(0) saturate(100%) invert(69%) sepia(4%) saturate(19%) hue-rotate(356deg) brightness(87%) contrast(95%);">' .. image_file .. '</span>'
end
end
-- use white instead of grey if grey is returned
-- Add an empty cell following some stats to align them correctly as seen in game
-- Add an empty cell following some stats to align them correctly as seen in game
Line 320: Line 319:
extra_blank_cell = ""
extra_blank_cell = ""
end
end
-- bold the stat value
stat_value = '<b>' .. stat_value .. '</b>'
-- slightly lighter color for stat name
label = '<span style="color: #3d3d3d;">' .. label .. '</span>'
-- Add the scaling str if it scales
-- Add the scaling str if it scales