mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 11:10:00 +00:00
focus: add /clearfocus command
This commit is contained in:
@@ -17,19 +17,6 @@ function SlashCmdList.GM(msg, editbox)
|
||||
ToggleHelpFrame(1)
|
||||
end
|
||||
|
||||
SLASH_PFFOCUS1 = '/focus'
|
||||
function SlashCmdList.PFFOCUS(msg)
|
||||
if msg ~= "" then
|
||||
pfUI.uf.focus:Show()
|
||||
pfUI.uf.focus.unitname = strlower(msg)
|
||||
elseif UnitName("target") then
|
||||
pfUI.uf.focus:Show()
|
||||
pfUI.uf.focus.unitname = strlower(UnitName("target"))
|
||||
else
|
||||
pfUI.uf.focus:Hide()
|
||||
end
|
||||
end
|
||||
|
||||
pfUI = CreateFrame("Frame",nil,UIParent)
|
||||
pfUI:RegisterEvent("ADDON_LOADED")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user