Skip to content

Commit

Permalink
old api
Browse files Browse the repository at this point in the history
  • Loading branch information
Repooc committed Aug 14, 2024
1 parent b29ed77 commit 9c8d609
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion AddOnSkins/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local floor, print, format, strlower, strmatch, strlen = floor, print, format, s
local sort, tinsert = sort, tinsert

local geterrorhandler = geterrorhandler
local IsAddOnLoaded, C_Timer = IsAddOnLoaded, C_Timer
local IsAddOnLoaded, C_Timer = C_AddOns.IsAddOnLoaded, C_Timer

AS.SkinErrors = {}

Expand Down
20 changes: 10 additions & 10 deletions AddOnSkins/Skins/AddOns/Guild_Roster_Manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function AS:GuildRosterManager()
if isClassic then
bottomRight , bottomLeft = "BotRightCorner","BotLeftCorner"
end

local edgeNames = {"BottomBorder","TopBorder","LeftBorder","RightBorder","TopLeftCorner","TopRightCorner",bottomRight,bottomLeft}

for i = 1 , #edgeNames do
Expand Down Expand Up @@ -425,7 +425,7 @@ function AS:GuildRosterManager()
AS:SkinButton(GRM_ExportSelectedRangeButton)
AS:SkinButton(GRM_ExportNextRangeButton)
AS:SkinButton(GRM_ExportPreviousRangeButton)
AS:SkinButton(GRM_ExportMemberDetailsHeadersButton)
AS:SkinButton(GRM_ExportMemberDetailsHeadersButton)
AS:SkinButton(GRM_ExportResetOptionsButton)
AS:SkinFrame(GRM_ExportLogScrollBorderFrame)
AS:SkinEditBox(GRM_ExportRangeEditBox1)
Expand All @@ -440,7 +440,7 @@ function AS:GuildRosterManager()
AS:SkinCheckBox(_G["GRM_ExportFilter"..i])
end
end

AS:SkinButton(GRM_ExportLogTab)
AS:SkinButton(GRM_ExportGuildDataTab)
AS:SkinButton(GRM_ExportLeftGuildDataTab)
Expand Down Expand Up @@ -481,14 +481,14 @@ function AS:GuildRosterManager()
if GRM_G.BuildVersion >= 80000 then
AS:SkinButton(GRM_RosterColumnMythicPlus)
end
AS:SkinScrollBar(GRM_RosterFrameScrollFrameSlider)
AS:SkinScrollBar(GRM_RosterFrameScrollFrameSlider)
AS:SkinEditBox(GRM_RosterFrameNameEditBox)
AS:SkinEditBox(GRM_RosterNoteEditBox)

-- Spacing
GRM_RosterOptions:SetPoint ( "TOP" , GRM_UI.GRM_RosterFrame , "BOTTOM" , 0 , -1 )
GRM_RosterOptionsButton:SetPoint ( "BOTTOMRIGHT" , GRM_UI.GRM_RosterFrame , "BOTTOMLEFT" , 0 , 0 )

newRosterLoaded = true;

end
Expand Down Expand Up @@ -529,7 +529,7 @@ function AS:GuildRosterManager()
AS:SkinCheckBox(GRM_IgnoreListFrameKickCheckBox)
AS:SkinCheckBox(GRM_IgnoreListFramePromoteCheckBox)
AS:SkinCheckBox(GRM_IgnoreListFrameDemoteCheckBox)
AS:SkinEditBox(GRM_IgnoreListPromoteTimeExpireEditBox)
AS:SkinEditBox(GRM_IgnoreListPromoteTimeExpireEditBox)
AS:SkinEditBox(GRM_IgnoreListKickTimeExpireEditBox)
AS:SkinEditBox(GRM_IgnoreListDemoteTimeExpireEditBox)
end
Expand Down Expand Up @@ -655,13 +655,13 @@ function AS:GuildRosterManager()
GRM_MemberDetailMetaDataCloseButton:SetPoint( "TOPRIGHT" , GRM_UI.GRM_MemberDetailMetaData , "TOPRIGHT" , 0 , 0 );
end);

-- Ignore Macro
-- Ignore Macro
skinMacroIgnoreLists()

isLoaded = true
end
end)

GRM_RosterCheckBoxSideFrame:HookScript("OnShow" , function()
if not isLoaded2 then
-- MISC FRAMES
Expand Down Expand Up @@ -736,7 +736,7 @@ function AS:GuildRosterManager()
tileSize = 32,
edgeSize = 9,
insets = { left = -2 , right = -2 , top = -3 , bottom = -2 }
} );
} );
end
end
end);
Expand All @@ -756,7 +756,7 @@ function AS:GuildRosterManager()
end)

-- Module Group Info - GRM dependent addon
if IsAddOnLoaded ( "Guild_Roster_Manager_Group_Info" ) then
if C_AddOns.IsAddOnLoaded ( "Guild_Roster_Manager_Group_Info" ) then
AS:SkinButton(GRM_GroupRulesButton)
AS:SkinFrame(GRM_GroupButtonFrame)
AS:SkinCloseButton(GRM_GroupButtonFrameCloseButton)
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/AddOns/InvenMount.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

function R:InvenMount(event, addon)
if addon == "Blizzard_PetJournal" or event == 'PLAYER_ENTERING_WORLD' and IsAddOnLoaded("Blizzard_PetJournal") then
if addon == "Blizzard_PetJournal" or event == 'PLAYER_ENTERING_WORLD' and C_AddOns.IsAddOnLoaded("Blizzard_PetJournal") then
for i = 1, #MountJournal.ListScrollFrame.buttons do
local Button = _G["MountJournalListScrollFrameButton"..i]
Button.checkbox:ClearAllPoints()
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/AddOns/OrderHallCommander.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

function R:OrderHallCommander(event, addon)
if (event == "ADDON_LOADED" and addon == 'OrderHallCommander') or event == 'PLAYER_ENTERING_WORLD' and IsAddOnLoaded('OrderHallCommander') then
if (event == "ADDON_LOADED" and addon == 'OrderHallCommander') or event == 'PLAYER_ENTERING_WORLD' and C_AddOns.IsAddOnLoaded('OrderHallCommander') then
local OHC = LibStub('LibInit'):GetAddon('OrderHallCommander')
local OHCCache = OHC:GetCacheModule()
local TroopFrame = OHCCache:GetTroopsFrame()
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/AddOns/Overachiever.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

function R:Overachiever(_, addon)
if addon == "Overachiever_Tabs" or IsAddOnLoaded("Overachiever_Tabs") then
if addon == "Overachiever_Tabs" or C_AddOns.IsAddOnLoaded("Overachiever_Tabs") then
for i = 4, 6 do
S:HandleTab(_G["AchievementFrameTab"..i])
end
Expand Down
2 changes: 2 additions & 0 deletions AddOnSkins/Skins/AddOns/Pawn.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

local IsAddOnLoaded = C_AddOns.IsAddOnLoaded

function R:Pawn(event, addon)
local Texture = "Interface\\AddOns\\Pawn\\Textures\\PawnLogo"

Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/AddOns/PetJournalEnhanced.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

function R:PetJournalEnhanced(event, addon)
if addon == 'Blizzard_PetJournal' or IsAddOnLoaded('Blizzard_PetJournal') then
if addon == 'Blizzard_PetJournal' or C_AddOns.IsAddOnLoaded('Blizzard_PetJournal') then
PetJournal:HookScript('OnShow', function()
S:StripTextures(PJEUniquePetCount)
S:HandleScrollBar(PetJournalEnhancedListScrollFrameScrollBar)
Expand Down
2 changes: 2 additions & 0 deletions AddOnSkins/Skins/AddOns/PetTracker.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

local IsAddOnLoaded = C_AddOns.IsAddOnLoaded

function R:PetTracker(event, addon)
if event == 'PLAYER_ENTERING_WORLD' then
if not AS:CheckAddOn('Carbonite.Quests') then
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/AddOns/Scrap.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

function R:Scrap(event, addon)
if addon == 'Scrap_Merchant' or IsAddOnLoaded('Scrap_Merchant') then
if addon == 'Scrap_Merchant' or C_AddOns.IsAddOnLoaded('Scrap_Merchant') then
local function skinButton()
local Button = Scrap.Merchant
if Button and not Button.IsSkinned then
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/AddOns/TrainAll.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local AS, L, S, R = unpack(AddOnSkins)

function R:TrainAll(event, addon)
if addon == 'Blizzard_TrainerUI' or IsAddOnLoaded('Blizzard_TrainerUI') then
if addon == 'Blizzard_TrainerUI' or C_AddOns.IsAddOnLoaded('Blizzard_TrainerUI') then
ClassTrainerFrame:HookScript('OnShow', function(self)
if not TrainAllButton.isSkinned then
S:StripTextures(TrainAllButton)
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/Classic/Debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ end
S:AddCallback('ScriptErrorsFrame')

-- FrameStack, TableInspect Skins
if _G.IsAddOnLoaded('Blizzard_DebugTools') then
if C_AddOns.IsAddOnLoaded('Blizzard_DebugTools') then
S:AddCallback('Blizzard_DebugTools')
else
S:AddCallbackForAddon('Blizzard_DebugTools')
Expand Down
4 changes: 2 additions & 2 deletions AddOnSkins/Skins/Deprecated/AchieveIt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local AS, L, S, R = unpack(AddOnSkins)
if not AS:CheckAddOn('AchieveIt') then return end

function R:AchieveIt(event, addon)
if addon == 'Blizzard_AchievementUI' or IsAddOnLoaded('Blizzard_AchievementUI') then
if addon == 'Blizzard_AchievementUI' or C_AddOns.IsAddOnLoaded('Blizzard_AchievementUI') then
AS:Delay(1, function()
for i = 1, 20 do
local frame = _G['AchievementFrameCategoriesContainerButton'..i]
Expand All @@ -12,7 +12,7 @@ function R:AchieveIt(event, addon)
end
AchieveIt_Locate_Button.label:ClearAllPoints()
AchieveIt_Locate_Button.label:SetJustifyH('CENTER')
AchieveIt_Locate_Button.label:SetPoint('CENTER')
AchieveIt_Locate_Button.label:SetPoint('CENTER')
S:HandleButton(AchieveIt_Locate_Button, true)
AchieveIt_Locate_Button:ClearAllPoints()
AchieveIt_Locate_Button:SetPoint('TOPLEFT', AchievementFrame, 250, 5)
Expand Down
2 changes: 1 addition & 1 deletion AddOnSkins/Skins/Wrath/Debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ end
S:AddCallback('ScriptErrorsFrame')

-- FrameStack, TableInspect Skins
if _G.IsAddOnLoaded('Blizzard_DebugTools') then
if C_AddOns.IsAddOnLoaded('Blizzard_DebugTools') then
S:AddCallback('Blizzard_DebugTools')
else
S:AddCallbackForAddon('Blizzard_DebugTools')
Expand Down

0 comments on commit 9c8d609

Please sign in to comment.