Thread Tools Display Modes
07-27-15, 03:18 PM   #1
IllusionIV
A Defias Bandit
Join Date: Jul 2015
Posts: 3
LF script to modify combat tracker

Hello im looking for someone who can complete this script (neilyo add on combat tracker)

CTT=CreateFrame("Frame")CTT:SetParent(TargetFrame)CTT:SetPoint("Left",TargetFrame,-30,5)CTT:SetSize(25,25)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("Left",FocusFrame,-30,5)CFT:SetSize(25,25)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)



I want add The same icon from this script to put it on the left of nameplates + arena frame 1 2 3 4 5.

is it possible ? thank you for your efforts
  Reply With Quote
07-28-15, 02:34 AM   #2
elcius
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 75
Code:
local function x(p,f,t)
	f=CreateFrame"Frame"
	f:SetParent(p)
	f:SetPoint("Left",-30,5)
	f:SetSize(25,25)
	t=f:CreateTexture()
	t:SetAllPoints()
	t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")
	f:SetScript('OnUpdate',function()t:SetShown(UnitAffectingCombat(p.unit))end);
end
x(PlayerFrame)
x(TargetFrame)
LoadAddOn("Blizzard_ArenaUI")
for i=1,5 do x(_G['ArenaEnemyFrame'..i]) end
  Reply With Quote
07-28-15, 10:35 AM   #3
IllusionIV
A Defias Bandit
Join Date: Jul 2015
Posts: 3
thank you, i've to add this on the file or just create another one ? rly thank u for your help

edit: its work perfectly for arena frame, but i got nothing on nameplate, its cause im using platebuff+treath plate ?

Last edited by IllusionIV : 07-28-15 at 10:42 AM.
  Reply With Quote
07-28-15, 03:31 PM   #4
IllusionIV
A Defias Bandit
Join Date: Jul 2015
Posts: 3
i done some search about the questio, i wonder if i can add this icon near the nameplates as i wanted to do, look really complex
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » LF script to modify combat tracker


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off