Skip to content

Commit

Permalink
Add slash command '/til saveActionbar' to save current action bars to…
Browse files Browse the repository at this point in the history
… the currently active loadout
  • Loading branch information
Lardeck committed May 26, 2023
1 parent 4e4d325 commit 780b0c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ImprovedTalentLoadouts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2381,3 +2381,14 @@ function TalentLoadouts:UpdateMacros()
--backwards compatibility
self.charMacros = self.characterMacros
end

SLASH_IMPROVEDTALENDLOADOUTS1 = '/itl'
SlashCmdList["IMPROVEDTALENDLOADOUTS"] = function(msg, editbox)
if msg == 'saveActionbar' then
local currentSpecID = TalentLoadouts.specID
local configID = TalentLoadouts.charDB[currentSpecID]
if configID then
UpdateActionBars(nil, configID)
end
end
end

0 comments on commit 780b0c1

Please sign in to comment.