Some fixes for button scale

This commit is contained in:
LaYt
2017-02-01 16:09:25 +07:00
parent 35806293d6
commit adf2ca9ac1
+2 -1
View File
@@ -550,7 +550,8 @@ function MBB_OnUpdate(elapsed)
x= cos(angle)*xdelta
y= sin(angle)*ydelta
end
MBB_MinimapButtonFrame:SetPoint("TOPLEFT", Minimap, "TOPLEFT", xdelta-x -17 , y-ydelta +17);
local sc= MBB_Options.Scale/100
MBB_MinimapButtonFrame:SetPoint("TOPLEFT", Minimap, "TOPLEFT", (xdelta-x)/sc -17 , (y-ydelta)/sc +17);
end
if( MBB_Options.CollapseTimeout and MBB_Options.CollapseTimeout ~= 0 ) then