Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Cjewett/HonorAssist
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjewett committed Dec 14, 2019
2 parents 99efb93 + 8c378c4 commit fed2de7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HonorAssist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ end
SLASH_HONORASSIST1 = "/honorassist"
SLASH_HONORASSIST2 = "/honorassist help"
SLASH_HONORASSIST3 = "/honorassist show"
SLASH_HONORASSIST2 = "/honorassist reset"
SLASH_HONORASSIST4 = "/honorassist hide"
SLASH_HONORASSIST5 = "/honorassist debug"
SlashCmdList["HONORASSIST"] = function(msg)
Expand Down Expand Up @@ -135,6 +136,10 @@ SlashCmdList["HONORASSIST"] = function(msg)
HonorAssist:ShowTrackerUi(false)
end

if subCommand == "reset" then
HonorAssist:ResetPosition()
end

if subCommand == "test" then
HonorAssist:ProcessChatMsgCombatHonorGain("You have been awarded 200 honor points")
end
Expand All @@ -145,4 +150,5 @@ function HonorAssist:PrintHelpInformation()
print("/honorassist, /honorassist help -- Displays help information for HonorAssist addon.")
print("/honorassist show -- Shows the Honor Assist (Daily) tracker.")
print("/honorassist hide -- Hides the Honor Assist (Daily) tracker.")
print("/honorassist reset -- Resets the position of the Honor Assist (Daily) tracker.")
end
8 changes: 8 additions & 0 deletions HonorAssistTrackerUi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ function HonorAssist:SetPosition()
end
end

function HonorAssist:ResetPosition()
HonorAssistTrackerFramePositionX = nil
HonorAssistTrackerFramePositionY = nil

HonorAssist.trackerFrame:ClearAllPoints()
HonorAssist.trackerFrame:SetPoint("CENTER", HonorAssistTrackerFramePositionX, HonorAssistTrackerFramePositionY)
end

function HonorAssist:UpdateDailyTrackerKills(kills)
HonorAssist.totalKills:SetText(totalKillsText .. kills)
end
Expand Down

0 comments on commit fed2de7

Please sign in to comment.