unitframes: add slash command to test unitframes

This commit is contained in:
shagu
2024-11-04 16:16:17 +01:00
parent 532f1c7e57
commit 33d8de9345
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ This is **not** an addon-pack like [ShaguUI](http://shagu.org/ShaguUI/), however
/castfocus Same as /cast but for focus frame
/clearfocus Clears the Focus-Frame
/swapfocus Toggle Focus and Target-Frame
/pftest Toggle pfUI Unitframe Test Mode
/abp Addon Button Panel
## Languages
+6
View File
@@ -14,6 +14,12 @@ end)
pfUI.uf.frames = {}
pfUI.uf.delayed = {}
-- slash command to toggle unitframe test mode
_G.SLASH_PFTEST1, _G.SLASH_PFTEST2 = "/pftest", "/pfuftest"
_G.SlashCmdList.PFTEST = function()
pfUI.uf.showall = not pfUI.uf.showall
end
local scanner
local glow = {
edgeFile = pfUI.media["img:glow"], edgeSize = 8,