Mercurial > wow > worldplan
diff FlightMap.lua @ 53:44baf4f35c7c
- Fix missing pin numerals in the flight map.
- Make use of nudge factors in flight map overlays.
author | Nenue |
---|---|
date | Fri, 30 Dec 2016 20:43:58 -0500 |
parents | 6439015d74b1 |
children | 0749e38081e7 |
line wrap: on
line diff
--- a/FlightMap.lua Fri Dec 30 18:31:32 2016 -0500 +++ b/FlightMap.lua Fri Dec 30 20:43:58 2016 -0500 @@ -39,8 +39,8 @@ function WorldPlanDataProvider:OnLoad() self:SetNudgeTargetFactor(0.015); - self:SetNudgeZoomedOutFactor(1.0); - self:SetNudgeZoomedInFactor(0.25); + self:SetNudgeZoomedOutFactor(0.5); + self:SetNudgeZoomedInFactor(0.15); end function WorldPlanDataProvider:OnShow() @@ -116,14 +116,7 @@ -- sticking it onto the MapCanvas pin pin.throttle = 1 pin.isStale = true - pin:SetParent(frame) - pin:ClearAllPoints() - pin:SetPoint('CENTER') - pin.Overlay:SetParent(frame) - pin.Overlay:ClearAllPoints() - pin.Overlay:SetPoint('TOPLEFT', pin, 'TOPLEFT', 0, 4) - pin.Overlay:SetPoint('BOTTOMRIGHT', pin, 'BOTTOMRIGHT', 0, -4) - pin.Overlay:SetShown(true) + pin:SetAnchor(frame) --print(pin.Overlay:IsShown(), pin.Overlay:GetPoint(1)) end pin:SetShown(pin.used)