diff --git a/README.md b/README.md index c9cb69fb..6e556887 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/api/unitframes.lua b/api/unitframes.lua index dca423d8..7a1eaecf 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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,