From 33d8de9345d5394344d78e47c6c7cc84abea6572 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 4 Nov 2024 16:14:29 +0100 Subject: [PATCH] unitframes: add slash command to test unitframes --- README.md | 1 + api/unitframes.lua | 6 ++++++ 2 files changed, 7 insertions(+) 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,