- I believe you'd need to change every line that contains 'this' to 'self'. It was deprecated before but you could still use it. Now it is required to use 'self'.
- Also, argn is no longer supported. wherever you see argn, you will need to replace it with whatever the event arguments are.
It seems to me sometimes it uses self, sometimes it uses this. Sometimes it uses argn, sometimes it uses function(self, event, unit).
- Every call of getglobal() needs to be replaced with _G[]
- Some functions defined by blizzard that previously required nothing as parameter now require the use of 'self'. A good example is UnitFrameOnEnter.
For example, in TargetPartyFrameTemplates, at the bottom:
Code:
<Scripts>
<OnLoad>
local id = self:GetID();
self.debuffCountdown = 0;
self.numDebuffs = 0;
self.noTextPrefix = 1;
local prefix = "TargetPartyMemberFrame"..id;
UnitFrame_Initialize(self, "party"..id.."target", _G[prefix.."Name"], _G[prefix.."Portrait"],
_G[prefix.."HealthBar"], _G[prefix.."HealthBarText"],
_G[prefix.."ManaBar"], _G[prefix.."ManaBarText"],
_G[prefix.."threatIndicator"], _G[prefix.."threatFeedbackUnit"], _G[threatNumericIndicator] );
SetTextStatusBarTextZeroText(_G[prefix.."HealthBar"], DEAD);
TargetPartyMemberFrame_OnLoad(self);
</OnLoad>
<OnEvent>
TargetPartyMemberFrame_OnEvent(self,event,unit);
</OnEvent>
<OnEnter>
UnitFrame_OnEnter(self);
TargetPartyMemberBuffTooltip:SetPoint("TOPLEFT", self, "TOPLEFT", 47, -30);
TargetPartyMemberBuffTooltip_Update(self);
</OnEnter>
<OnLeave>
UnitFrame_OnLeave(self);
TargetPartyMemberBuffTooltip:Hide();
</OnLeave>
<OnUpdate>
TargetPartyMemberFrame_OnUpdate(self, elapsed);
</OnUpdate>
This is coded without testing, so it may contain errors. Also I did not touch the functions in any way.
I don't have an active subscription at the moment else I'd fix it up