mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
api: clean up and documentation
This commit is contained in:
+6
-6
@@ -23,7 +23,7 @@ pfUI:RegisterModule("target", function ()
|
||||
pfUI.uf.target:SetWidth(pfUI_config.unitframes.target.width)
|
||||
pfUI.uf.target:SetHeight(pfUI_config.unitframes.target.height + pfUI_config.unitframes.target.pheight + 2*default_border + pfUI_config.unitframes.target.pspace)
|
||||
pfUI.uf.target:SetPoint("BOTTOMLEFT", UIParent, "BOTTOM", 75, 125)
|
||||
pfUI.utils:UpdateMovable(pfUI.uf.target)
|
||||
pfUI.api:UpdateMovable(pfUI.uf.target)
|
||||
pfUI.uf.target:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
|
||||
pfUI.uf.target:SetScript("OnEnter", function()
|
||||
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||
@@ -271,7 +271,7 @@ pfUI:RegisterModule("target", function ()
|
||||
pfUI.uf.target.hp:SetWidth(pfUI_config.unitframes.target.width)
|
||||
pfUI.uf.target.hp:SetHeight(pfUI_config.unitframes.target.height)
|
||||
pfUI.uf.target.hp:SetPoint("TOP", 0, 0)
|
||||
pfUI.utils:CreateBackdrop(pfUI.uf.target.hp, default_border)
|
||||
pfUI.api:CreateBackdrop(pfUI.uf.target.hp, default_border)
|
||||
|
||||
pfUI.uf.target.hp.bar = CreateFrame("StatusBar", nil, pfUI.uf.target.hp)
|
||||
pfUI.uf.target.hp.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
|
||||
@@ -328,7 +328,7 @@ pfUI:RegisterModule("target", function ()
|
||||
pfUI.uf.target.power:SetPoint("BOTTOM", 0, 0)
|
||||
pfUI.uf.target.power:SetWidth(pfUI_config.unitframes.target.width)
|
||||
pfUI.uf.target.power:SetHeight(pfUI_config.unitframes.target.pheight)
|
||||
pfUI.utils:CreateBackdrop(pfUI.uf.target.power, default_border)
|
||||
pfUI.api:CreateBackdrop(pfUI.uf.target.power, default_border)
|
||||
|
||||
pfUI.uf.target.power.bar = CreateFrame("StatusBar", nil, pfUI.uf.target.power)
|
||||
pfUI.uf.target.power.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
|
||||
@@ -376,7 +376,7 @@ pfUI:RegisterModule("target", function ()
|
||||
pfUI.uf.target["combopoint" .. point]:SetFrameStrata("HIGH")
|
||||
pfUI.uf.target["combopoint" .. point]:SetWidth(5)
|
||||
pfUI.uf.target["combopoint" .. point]:SetHeight(5)
|
||||
pfUI.utils:CreateBackdrop(pfUI.uf.target["combopoint" .. point])
|
||||
pfUI.api:CreateBackdrop(pfUI.uf.target["combopoint" .. point])
|
||||
pfUI.uf.target["combopoint" .. point]:SetPoint("TOPLEFT", pfUI.uf.target, "TOPRIGHT", pfUI_config.appearance.border.default*3, -(point - 1) * (5 + pfUI_config.appearance.border.default*3))
|
||||
if point < 3 then
|
||||
local tex = pfUI.uf.target["combopoint" .. point]:CreateTexture("OVERLAY")
|
||||
@@ -470,7 +470,7 @@ pfUI:RegisterModule("target", function ()
|
||||
function pfUI.uf.target.buff.RefreshBuffs()
|
||||
for i=1, 16 do
|
||||
local texture, stacks = UnitBuff("target",i)
|
||||
pfUI.utils:CreateBackdrop(pfUI.uf.target.buff.buffs[i], default_border)
|
||||
pfUI.api:CreateBackdrop(pfUI.uf.target.buff.buffs[i], default_border)
|
||||
pfUI.uf.target.buff.buffs[i]:SetNormalTexture(texture)
|
||||
for i,v in ipairs({pfUI.uf.target.buff.buffs[i]:GetRegions()}) do
|
||||
if v.SetTexCoord then v:SetTexCoord(.08, .92, .08, .92) end
|
||||
@@ -560,7 +560,7 @@ pfUI:RegisterModule("target", function ()
|
||||
invert * (row)*((2*default_border) + pfUI_config.unitframes.debuff_size + 1) + invert * (2*default_border + 1))
|
||||
|
||||
local texture, stacks = UnitDebuff("target",i)
|
||||
pfUI.utils:CreateBackdrop(pfUI.uf.target.debuff.debuffs[i], default_border)
|
||||
pfUI.api:CreateBackdrop(pfUI.uf.target.debuff.debuffs[i], default_border)
|
||||
pfUI.uf.target.debuff.debuffs[i]:SetNormalTexture(texture)
|
||||
for i,v in ipairs({pfUI.uf.target.debuff.debuffs[i]:GetRegions()}) do
|
||||
if v.SetTexCoord then v:SetTexCoord(.08, .92, .08, .92) end
|
||||
|
||||
Reference in New Issue
Block a user