Skip to content

Commit

Permalink
Fixed console commands
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Nov 15, 2019
1 parent 4a3f6d7 commit 67eff7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ globals = {
"InterfaceOptionsFrame",
"CopyTable",
"GetSpellInfo",
"CreateFramePool"
"CreateFramePool",
"InterfaceOptionsFrame_OpenToCategory",
}
19 changes: 7 additions & 12 deletions NugPlateAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -428,22 +428,17 @@ end


local helpMessage = {
"|cff00ff00/ncf lock|r",
"|cff00ff00/ncf unlock|r",
"|cff00ff00/ncf direction|r <TOP|LEFT||RIGHT|BOTTOM>",
"|cff00ff00/npa gui|r",
}


NugPlateAuras.Commands = {
["unlock"] = function(v)
NugPlateAuras.anchor:Show()
end,
["lock"] = function(v)
NugPlateAuras.anchor:Hide()
end,
["direction"] = function(v)
NCFDB.direction = string.upper(v)
NugPlateAuras:UpdateSettings()
["gui"] = function(v)
if not NugPlateAuras.optionsPanel then
NugPlateAuras.optionsPanel = NugPlateAuras:CreateGUI()
end
InterfaceOptionsFrame_OpenToCategory("NugPlateAuras")
InterfaceOptionsFrame_OpenToCategory("NugPlateAuras")
end,
}

Expand Down

0 comments on commit 67eff7a

Please sign in to comment.