Skip to content

Commit

Permalink
Add ResetRoute step option to auto reset the route
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed Sep 7, 2024
1 parent 4048bbe commit 8ccedc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function AprRC.command:SlashCmd(input)
print(L_APR["COMMAND_LIST"] .. ":")
print("|cffeda55f/aprrc achievement |r- " .. "HasAchievement")
print("|cffeda55f/aprrc addjob |r- " .. "LearnProfession")
print("|cffeda55f/aprrc addreset |r- " .. "ResetRoute")
print("|cffeda55f/aprrc aura |r- " .. "HasAura")
print("|cffeda55f/aprrc button, btn |r- " .. "Button")
print("|cffeda55f/aprrc class |r- " .. "Class")
Expand Down Expand Up @@ -102,6 +103,10 @@ function AprRC.command:SlashCmd(input)
elseif inputText == "addjob" then
AprRC.autocomplete:ShowProfessionAutoComplete()
return
elseif inputText == "addreset" then
local step = { ResetRoute = true }
AprRC:NewStep(step)
return
elseif inputText == "aura" then
AprRC.autocomplete:ShowAuraAutoComplete(function(_, spellID, frame)
local currentStep = AprRC:GetLastStep()
Expand Down
Binary file added assets/icons/ResetRoute.blp
Binary file not shown.
1 change: 1 addition & 0 deletions frames/CommandsBarSetting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ local allCommands = {
{ command = "qpartpart", label = "QpartPart", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\QpartPart" },
{ command = "race", label = "Race", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\Race" },
{ command = "range", label = "Range", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\Range" },
{ command = "addreset", label = "ResetRoute", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\ResetRoute" },
{ command = "spelltrigger", label = "SpellTrigger", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\SpellTrigger" },
{ command = "vehicle", label = "VehicleExit", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\VehicleExit" },
{ command = "warmode", label = "WarMode", texture = "Interface\\AddOns\\APR-Recorder\\assets\\icons\\WarMode" },
Expand Down

0 comments on commit 8ccedc2

Please sign in to comment.