Skip to content

Commit

Permalink
Add custom route name for the export to APR
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed May 9, 2024
1 parent 963f31a commit 325258c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function AprRC.command:SlashCmd(input)
elseif inputText == "coord" then
local currentStep = AprRC:GetLastStep()
AprRC:SetStepCoord(currentStep, currentStep.Range)
currentStep.NoArrow = nil -- remove NoArrow
print("|cff00bfffCoord|r Added")
return
elseif inputText == "range" then
Expand Down
7 changes: 4 additions & 3 deletions frames/exportRoute.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ function AprRC.export:Show()
exportToAPRBtn:SetWidth(200)
exportToAPRBtn:SetCallback("OnClick", function()
local route = AprRC:FindRouteByName(selectedRouteName)
APRData.CustomRoute[route.name] = route.steps
APR.RouteQuestStepList[route.name] = route.steps
APR.RouteList.Custom[route.name] = route.name:match("%d+-(.*)")
local name = route.name .. ' - Custom'
APRData.CustomRoute[name] = route.steps
APR.RouteQuestStepList[name] = route.steps
APR.RouteList.Custom[name] = name:match("%d+-(.*)")
end)
frame:AddChild(exportToAPRBtn)

Expand Down

0 comments on commit 325258c

Please sign in to comment.