Commit 5c40ffab authored by Simpy's avatar Simpy 🐹

Fix LeaveVehicleButton scaling (credit: Hekili)

parent 6464faa0
......@@ -439,10 +439,10 @@ function AB:UpdateVehicleLeave()
if not button then return; end
local pos = E.db.general.minimap.icons.vehicleLeave.position or "BOTTOMLEFT"
local size = E.db.general.minimap.icons.vehicleLeave.size or 26
local scale = 26 * (E.db.general.minimap.icons.vehicleLeave.scale or 1)
button:ClearAllPoints()
button:Point(pos, Minimap, pos, E.db.general.minimap.icons.vehicleLeave.xOffset or 2, E.db.general.minimap.icons.vehicleLeave.yOffset or 2)
button:SetSize(size, size)
button:SetSize(scale, scale)
end
function AB:CreateVehicleLeave()
......
......@@ -80,7 +80,7 @@ P['general'] = {
['yOffset'] = -8,
},
['vehicleLeave'] = {
['size'] = 26,
['scale'] = 1,
['position'] = "BOTTOMLEFT",
['xOffset'] = 2,
['yOffset'] = 2,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment