Fix obsolete variable name

This commit is contained in:
Brandon Dyck 2024-04-19 12:59:30 -06:00
parent 2e2d63dfd7
commit 154a85cd41

View File

@ -108,14 +108,14 @@ function skin.collapsiblecategory(object)
love.graphics.setFont(skin.controls.small_font)
printOnPixel(text, x + offset, y + offset)
local arrow
local icon
if open then
arrow = ""
icon = ""
else
arrow = "+"
icon = "+"
end
local arrowWidth = skin.controls.button_text_font:getWidth(arrow)
printOnPixel(arrow, x + width - arrowWidth - offset, y + offset)
local arrowWidth = skin.controls.button_text_font:getWidth(icon)
printOnPixel(icon, x + width - arrowWidth - offset, y + offset)
end
-- Taken from the included Blue theme by Nikolai Resokav.