From c7c913783349e4dbf918d733bcfedaf7d18d9d1a Mon Sep 17 00:00:00 2001 From: Lanerra Date: Wed, 19 Sep 2012 22:36:18 -0700 Subject: [PATCH] - Fixed deprecated functions no longer used in 5.0.4 - Removed UI option dimming for Unit Frames until I have time to work out the problem - Version 1.3 - Other than this, it should function per normal. Let me know of any hiccups --- Tags.lua | 2 +- oUF_Lanerra.lua | 34 +++++++++++++++++----------------- oUF_Lanerra.toc | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Tags.lua b/Tags.lua index e7ef573..1b29516 100644 --- a/Tags.lua +++ b/Tags.lua @@ -133,7 +133,7 @@ oUF.UnitlessTagEvents['PLAYER_REGEN_ENABLED'] = true oUF.TagEvents['LanLeader'] = 'PARTY_LEADER_CHANGED PARTY_MEMBERS_CHANGED' oUF.Tags['LanLeader'] = function(unit) - if UnitIsPartyLeader(unit) then + if UnitIsGroupLeader(unit) then return [[|TInterface\GroupFrame\UI-Group-LeaderIcon:0|t]] elseif UnitInRaid(unit) and UnitIsRaidOfficer(unit) then return [[|TInterface\GroupFrame\UI-Group-AssistantIcon:0|t]] diff --git a/oUF_Lanerra.lua b/oUF_Lanerra.lua index 50aa57c..edb114b 100644 --- a/oUF_Lanerra.lua +++ b/oUF_Lanerra.lua @@ -9,24 +9,24 @@ -- Disable Blizzard options that are rendered useless by having a unit frame addon -for _, button in pairs({ - 'UnitFramePanelPartyBackground', - 'UnitFramePanelPartyPets', - 'UnitFramePanelFullSizeFocusFrame', +--~ for _, button in pairs({ +--~ 'UnitFramePanelPartyBackground', +--~ 'UnitFramePanelPartyPets', +--~ 'UnitFramePanelFullSizeFocusFrame', - 'CombatPanelTargetOfTarget', - 'CombatPanelTOTDropDown', - 'CombatPanelTOTDropDownButton', - 'CombatPanelEnemyCastBarsOnPortrait', +--~ 'CombatPanelTargetOfTarget', +--~ 'CombatPanelTOTDropDown', +--~ 'CombatPanelTOTDropDownButton', +--~ 'CombatPanelEnemyCastBarsOnPortrait', - 'DisplayPanelShowAggroPercentage', +--~ 'DisplayPanelShowAggroPercentage', - 'FrameCategoriesButton9', -}) do - _G['InterfaceOptions'..button]:SetAlpha(0.35) - _G['InterfaceOptions'..button]:Disable() - _G['InterfaceOptions'..button]:EnableMouse(false) -end +--~ 'FrameCategoriesButton9', +--~ }) do +--~ _G['InterfaceOptions'..button]:SetAlpha(0.35) +--~ _G['InterfaceOptions'..button]:Disable() +--~ _G['InterfaceOptions'..button]:EnableMouse(false) +--~ end do for k, v in pairs(UnitPopupMenus) do @@ -1581,7 +1581,7 @@ partyToggle:SetScript('OnEvent', function(self) If you want to switch to raid view later (meaning, if the members no longer fit into the party frame), you may change the following line accordingly.--]] if (Settings.Units.Raid.Healer) and (Settings.Units.Party.Healer) then - if(GetNumRaidMembers() > 0) then + if(GetNumGroupMembers() > 0) then _G['oUF_Lanerra_Group']:Hide() _G['oUF_Lanerra_Raid']:Show() else @@ -1589,7 +1589,7 @@ partyToggle:SetScript('OnEvent', function(self) _G['oUF_Lanerra_Raid']:Hide() end else - if(GetNumRaidMembers() > 0) then + if(GetNumGroupMembers() > 0) then _G['oUF_Lanerra_Group']:Hide() _G['oUF_Lanerra_Raid1']:Show() _G['oUF_Lanerra_Raid2']:Show() diff --git a/oUF_Lanerra.toc b/oUF_Lanerra.toc index 57a89e8..13be748 100644 --- a/oUF_Lanerra.toc +++ b/oUF_Lanerra.toc @@ -1,5 +1,5 @@ ## Interface: 40300 -## Version: 1.2.31 +## Version: 1.3 ## Title: oUF_Lanerra ## Notes: oUF layout by Lanerra -- 1.7.9.5