Skip to content

Commit

Permalink
Remove Classic support
Browse files Browse the repository at this point in the history
Maintaining Classic support has become a huge burden for this mod, since
it is designed to modify the Blizzard UI, and the UI diverges even
further between Retail and the different Classic variants with every
update.

Hence, I rather focus my efforts on Retail, and other mods.
  • Loading branch information
Nevcairiel committed Nov 28, 2023
1 parent 1e1a22f commit 67e59cd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 2,584 deletions.
13 changes: 1 addition & 12 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ All rights reserved.
local Mapster = LibStub("AceAddon-3.0"):GetAddon("Mapster")
local L = LibStub("AceLocale-3.0"):GetLocale("Mapster")

local WoWRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)
local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)

local optGetter, optSetter
do
function optGetter(info)
Expand Down Expand Up @@ -90,7 +87,6 @@ local function getOptions()
order = 6.1,
type = "description",
name = "",
hidden = not WoWRetail,
},
arrowScale = {
order = 7,
Expand Down Expand Up @@ -182,14 +178,7 @@ function Mapster:SetupMapButton()
self.optionsButton:SetHeight(18)
self.optionsButton:SetText("Mapster")
self.optionsButton:ClearAllPoints()
if WoWClassic then
self.optionsButton:SetParent(WorldMapFrame)
self.optionsButton:SetPoint("LEFT", WorldMapZoomOutButton, "RIGHT", 5, 0)
self.optionsButton:SetWidth(110)
self.optionsButton:SetHeight(22)
else
self.optionsButton:SetPoint("TOPRIGHT", WorldMapFrame.BorderFrame.TitleContainer, "TOPRIGHT", -48, -1)
end
self.optionsButton:SetPoint("TOPRIGHT", WorldMapFrame.BorderFrame.TitleContainer, "TOPRIGHT", -48, -1)

if self.db.profile.hideMapButton then
self.optionsButton:Hide()
Expand Down
6 changes: 2 additions & 4 deletions Coords.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ All rights reserved.
local Mapster = LibStub("AceAddon-3.0"):GetAddon("Mapster")
local L = LibStub("AceLocale-3.0"):GetLocale("Mapster")

local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)

local MODNAME = "Coords"
local Coords = Mapster:NewModule(MODNAME)

Expand Down Expand Up @@ -109,8 +107,8 @@ function Coords:OnEnable()
cursortext:SetTextColor(1, 1, 1)
playertext:SetTextColor(1, 1, 1)

cursortext:SetPoint("TOPLEFT", WorldMapFrame.ScrollContainer, "BOTTOM", 30, WoWClassic and -9 or -5)
playertext:SetPoint("TOPRIGHT", WorldMapFrame.ScrollContainer, "BOTTOM", -30, WoWClassic and -9 or -5)
cursortext:SetPoint("TOPLEFT", WorldMapFrame.ScrollContainer, "BOTTOM", 30, -5)
playertext:SetPoint("TOPRIGHT", WorldMapFrame.ScrollContainer, "BOTTOM", -30, -5)

tinsert(Mapster.elementsToHide, display)
end
Expand Down
3 changes: 0 additions & 3 deletions FogClearData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ Copyright (c) 2009-2020, Hendrik "Nevcairiel" Leppkes < [email protected] >
All rights reserved.
]]

local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
if WoWClassic then return end

-- data
-- [MapArtID] = {
-- key: w + h + x + y, 12-bits each for 48 total, value = string list of file data IDs
Expand Down
Loading

0 comments on commit 67e59cd

Please sign in to comment.