Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Combat Indicator
- CPT=CreateFrame("Frame")
- CPT:SetParent(PlayerFrame)
- CPT:SetPoint("Bottom",PlayerFrame,355,-525)
- CPT:SetSize(24,24)
- CPT.t=CPT:CreateTexture(nil,BORDER)
- CPT.t:SetAllPoints()
- CPT.t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")
- CPT:Hide()
- local function FrameOnUpdate(self) if UnitAffectingCombat("Player") then self:Show() else self:Hide() end end
- local g = CreateFrame("Frame")
- g:SetScript("OnUpdate", function(self) FrameOnUpdate(CPT) end)
- CTT=CreateFrame("Frame")
- CTT:SetParent(TargetFrame)
- CTT:SetPoint("Bottom",TargetFrame,40,24)
- CTT:SetSize(18,18)
- CTT.t=CTT:CreateTexture(nil,BORDER)
- CTT.t:SetAllPoints()
- CTT.t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")
- CTT:Hide()
- local function FrameOnUpdate(self) if UnitAffectingCombat("target") then self:Show() else self:Hide() end end
- local g = CreateFrame("Frame")
- g:SetScript("OnUpdate", function(self) FrameOnUpdate(CTT) end)
- CFT=CreateFrame("Frame")
- CFT:SetParent(FocusFrame)
- CFT:SetPoint("Bottom",FocusFrame,40,24)
- CFT:SetSize(18,18)
- CFT.t=CFT:CreateTexture(nil,BORDER)
- CFT.t:SetAllPoints()
- CFT.t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")
- CFT:Hide()
- local function FrameOnUpdate(self) if UnitAffectingCombat("focus") then self:Show() else self:Hide() end end
- local g = CreateFrame("Frame")
- g:SetScript("OnUpdate", function(self) FrameOnUpdate(CFT) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement