View Single Post
10-24-18, 06:40 AM   #1
Furyan
A Murloc Raider
Join Date: Oct 2018
Posts: 9
Need help for Addon please

Hello everyone!

I am using following addon to cycle through my Party frames :

local f =
CreateFrame("Button","TabParty",nil,"SecureActionButtonTemplate")
f:SetAttribute("type","target")
SecureHandlerWrapScript(f,"OnClick",f,[[
local unit
for i=1,5 do
TabPartyIndex = (TabPartyIndex or 0)%5+1
if TabPartyIndex==5 then
unit = "player"
else
unit = "party"..TabPartyIndex
end
if UnitExists(unit) then
self:SetAttribute("unit",unit)
break
end
end
]])


Heres my Question:

Is there a Way to alter the Code so the addon cycles in the Different direction?

Id be super happy if someone could help me

Greeting Furyan
  Reply With Quote