unitframes: add comments

This commit is contained in:
shagu
2017-07-29 14:56:51 +02:00
parent e91bec058f
commit 5e0231570b
+2
View File
@@ -220,6 +220,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
f:SetScript("OnUpdate", function()
local unitname = ( this.label and UnitName(this.label) ) or ""
-- focus unit detection
if this.unitname and this.unitname ~= strlower(unitname) then
-- invalid focus frame
for unit, bool in pairs(pfValidUnits) do
@@ -239,6 +240,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
if not this.label then return end
-- ticker for non event frames
if this.tick and not this.lastTick then this.lastTick = GetTime() + this.tick end
if this.lastTick and this.lastTick < GetTime() then
this.lastTick = GetTime() + this.tick