Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

add support for pfUI-UnitFrames

  • Loading branch information...
shagu committed Feb 15, 2017
1 parent df7d567 commit a5ee56c3f803afbdda07bae9cd330e0d4a75d75a
Showing with 39 additions and 0 deletions.
  1. +38 −0 Plugins/Clique_pfUI.lua
  2. +1 −0 Plugins/Plugins.xml
@@ -0,0 +1,38 @@
--[[---------------------------------------------------------------------------------
This is a template for the plugin/module system for Clique.
Plugins are typically used to tie Clique to a specific set of unit frames, but
can also be used to add functionality to the system through a manner of hooks.
Plugins are registered with Clique with a shortname that is used for all slash
commands. In addition they are required to have a fullname parameter that is
used in all display messages
----------------------------------------------------------------------------------]]

local Plugin = Clique:NewModule("pfUI")
Plugin.fullname = "pfUI UnitFrames"
Plugin.url = "https://github.com/shagu/pfUI"

function Plugin:Test()
return pfUI
end

function Plugin:OnEnable()
pfUI.uf.ClickActionOld = pfUI.uf.ClickAction
pfUI.uf.ClickAction = Plugin.OnClick
end

function Plugin:OnDisable()
pfUI.uf.ClickAction = pfUI.uf.ClickActionOld
end

function Plugin:OnClick()
local button = arg1
local label = this.label or ""
local id = this.id or ""
local unit = label .. id

if not Clique:OnClick(button, unit) then
pfUI.uf:ClickActionOld(button)
end
end
@@ -34,4 +34,5 @@
<Script file="Clique_WatchDog.lua"/>
<Script file="Clique_XPerl.lua"/>
<Script file="Clique_AofHeal.lua"/>
<Script file="Clique_pfUI.lua"/>
</Ui>

0 comments on commit a5ee56c

Please sign in to comment.
You can’t perform that action at this time.