From c07e0197f685823eb9b1570434c329adf0b4e6fc Mon Sep 17 00:00:00 2001 From: Eric Mauser Date: Tue, 3 May 2016 20:35:59 +0200 Subject: [PATCH] added /pfui command to show gui --- pfUI.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pfUI.lua b/pfUI.lua index b12af8e7..9bc68200 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -1,8 +1,17 @@ -SLASH_RELOAD1 = '/rl'; -- 3. -function SlashCmdList.RELOAD(msg, editbox) -- 4. +SLASH_RELOAD1 = '/rl'; +function SlashCmdList.RELOAD(msg, editbox) ReloadUI() end +SLASH_PFUI1 = '/pfui'; +function SlashCmdList.PFUI(msg, editbox) + if pfUI.gui:IsShown() then + pfUI.gui:Hide() + else + pfUI.gui:Show() + end +end + pfUI = CreateFrame("Frame",nil,UIParent) pfUI.backdrop = { bgFile = "Interface\\AddOns\\pfUI\\img\\bg", tile = true, tileSize = 8,