Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 10.1 changes upstream #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions WorldFlightMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,11 @@ function WorldFlightMapProvider:AddFlightNode(taxiNodeData)

pin:SetPosition(taxiNodeData.position:GetXY());
pin.taxiNodeData = taxiNodeData;
pin.textureKit = taxiNodeData.textureKit;
pin.isMapLayerTransition = taxiNodeData.isMapLayerTransition;
pin.owner = self;
pin.linkedPins = {};
pin:SetFlightPathStyle(taxiNodeData.textureKitPrefix, taxiNodeData.state);
pin:SetFlightPathStyle(taxiNodeData.state);

pin:UpdatePinSize(taxiNodeData.state);

Expand All @@ -293,7 +295,7 @@ function WorldFlightMapProvider:AddFlightNode(taxiNodeData)
pin:SetScalingLimits(1.25, initialScaleFactor, initialScaleFactor * 1.25)
--pin:SetIgnoreGlobalPinScale(true)

pin:SetShown(taxiNodeData.state ~= Enum.FlightPathState.Unreachable); -- Only show if part of a route, handled in the route building functions
pin:SetShown(taxiNodeData.state ~= Enum.FlightPathState.Unreachable or taxiNodeData.isMapLayerTransition); -- Only show if part of a route, handled in the route building functions

for poiPin in self:GetMap():EnumeratePinsByTemplate("FlightPointPinTemplate") do
if poiPin.name == taxiNodeData.name and playAnim then
Expand Down