The following will draw a bar under each skill on the character sheet:
Code: Select all
function onDrawSkills(self, context, champion)
local width = context.width
local height = context.height
local heightRatio = height / 1080
local barX = width - (536 * heightRatio)
local barY = 339 * heightRatio
local initialY = barY
local barWidth = 224 * heightRatio
local barHeight = 4 * heightRatio
local barSpacingY = (31 * heightRatio)
if barHeight < 1 then
barHeight = 1
end
context.color(255, 255, 0, 128)
for i=0, 7 do
context.drawRect(barX, barY, barWidth, barHeight)
barY = barY + barSpacingY
end
barY = initialY;
barX = barX + (252 * heightRatio)
for i=0, 7 do
context.drawRect(barX, barY, barWidth, barHeight)
barY = barY + barSpacingY
end
end