From 973cee6816b195edc8e7d9e8d62bb6ead86a4469 Mon Sep 17 00:00:00 2001 From: Kerrinen Hope <8914+Ravendwyr@users.noreply.github.com> Date: Fri, 2 Sep 2022 22:43:40 +0100 Subject: [PATCH] Update to use latest libraries. Should fix #91 --- Modules/Appearance.lua | 4 ++-- Modules/MoveButtons.lua | 2 +- Modules/Position.lua | 8 ++++---- Modules/ShowHide.lua | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Modules/Appearance.lua b/Modules/Appearance.lua index 4cbfb4b..9735b41 100755 --- a/Modules/Appearance.lua +++ b/Modules/Appearance.lua @@ -108,7 +108,7 @@ function Appearance:OnDisable() MinimapBorder:Show() Minimap:SetAlpha(1) - if Chinchilla:IsClassic() or Chinchilla:IsBurningCrusadeClassic() then + if Chinchilla:IsClassic() or Chinchilla:IsWrathClassic() then Minimap:SetMaskTexture("Textures\\MinimapMask") else Minimap:SetMaskTexture(186178) @@ -241,7 +241,7 @@ function Appearance:SetScale(value) if Chinchilla:IsClassic() then QuestWatchFrame:GetSize() - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then WatchFrame:GetSize() else ObjectiveTrackerFrame:GetSize() diff --git a/Modules/MoveButtons.lua b/Modules/MoveButtons.lua index a112563..509a8bb 100755 --- a/Modules/MoveButtons.lua +++ b/Modules/MoveButtons.lua @@ -251,7 +251,7 @@ function MoveButtons:OnInitialize() zoomIn = MinimapZoomIn, zoomOut = MinimapZoomOut, } - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then buttons = { map = MiniMapWorldMapButton, mail = MiniMapMailFrame, diff --git a/Modules/Position.lua b/Modules/Position.lua index 27a52e3..3052f58 100755 --- a/Modules/Position.lua +++ b/Modules/Position.lua @@ -31,7 +31,7 @@ function Position:OnInitialize() questWatch = QuestWatchFrame, ticketStatus = TicketStatusFrame, } - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then nameToFrame = { minimap = Minimap, durability = DurabilityFrame, @@ -182,7 +182,7 @@ function Position:OnEnable() if Chinchilla:IsClassic() then self:SecureHook(QuestWatchFrame, "SetPoint", "WatchFrame_SetPoint") - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then self:SecureHook(WatchFrame, "SetPoint", "WatchFrame_SetPoint") else self:SecureHook(VehicleSeatIndicator, "SetPoint", "VehicleSeatIndicator_SetPoint") @@ -327,7 +327,7 @@ function Position:SetMinimapPosition(point, x, y) if Chinchilla:IsClassic() then QuestWatchFrame:GetSize() - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then WatchFrame:GetSize() else ObjectiveTrackerFrame:GetSize() @@ -521,7 +521,7 @@ function Position:UpdateClamp(info, value) if Chinchilla:IsClassic() then QuestWatchFrame:GetSize() - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then WatchFrame:GetSize() else ObjectiveTrackerFrame:GetSize() diff --git a/Modules/ShowHide.lua b/Modules/ShowHide.lua index 3af366c..0fb6e43 100755 --- a/Modules/ShowHide.lua +++ b/Modules/ShowHide.lua @@ -37,7 +37,7 @@ function ShowHide:OnInitialize() zoomOut = "MinimapZoomOut", clock = "TimeManagerClockButton", } - elseif Chinchilla:IsBurningCrusadeClassic() then + elseif Chinchilla:IsWrathClassic() then frames = { north = "MinimapNorthTag", map = "MiniMapWorldMapButton",