diff --git a/.gitignore b/.gitignore index bc31345e..95e80e4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/GPUCache /Cache /Data /Errors @@ -7,6 +8,29 @@ /Utils /WTF +# Ignore addons +/Interface/Addons + +# But don't ignore NeavUI addons +# This allows you to install any other addons you want to and they wont be tracked by git +# Any addon you want to be a part of NeavUI and be tracked by git, add to this list +!/Interface/Addons/!BeautyCase +!/Interface/Addons/!Colorz +!/Interface/Addons/evl_RaidStatus +!/Interface/Addons/nBuff +!/Interface/Addons/nCore +!/Interface/Addons/nMainbar +!/Interface/Addons/nMinimap +!/Interface/Addons/nPlates +!/Interface/Addons/nPower +!/Interface/Addons/nTooltip +!/Interface/Addons/oUF +!/Interface/Addons/oUF_Neav +!/Interface/Addons/oUF_NeavRaid + +.curseclient +.flavor.info + .build.info .patch.result diff --git a/Interface/AddOns/!Beautycase/!Beautycase.toc b/Interface/AddOns/!Beautycase/!Beautycase.toc index d87e5d2d..ae778494 100644 --- a/Interface/AddOns/!Beautycase/!Beautycase.toc +++ b/Interface/AddOns/!Beautycase/!Beautycase.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 11302 ## Title: !Beautycase core.lua diff --git a/Interface/AddOns/!Colorz/!Colorz.lua b/Interface/AddOns/!Colorz/!Colorz.lua index d87cbe24..a9328f4b 100644 --- a/Interface/AddOns/!Colorz/!Colorz.lua +++ b/Interface/AddOns/!Colorz/!Colorz.lua @@ -42,35 +42,31 @@ hooksecurefunc("ReputationFrame_Update", function(showLFGPulse) local factionIndex = factionOffset + i local factionBar = _G["ReputationBar"..i.."ReputationBar"] + -- Classic: fallback + if factionBar == nil then + factionBar = _G["ReputationBar"..i] + end + if factionIndex <= numFactions then local name, description, standingID = GetFactionInfo(factionIndex) - local colorIndex = standingID - local friendID = GetFriendshipReputation(factionID) - - if friendID ~= nil then - colorIndex = 5 -- always color friendships green - end - local color = CUSTOM_FACTION_BAR_COLORS[colorIndex] factionBar:SetStatusBarColor(color.r, color.g, color.b) end end end) -hooksecurefunc(ReputationBarMixin, "Update", function(self) - local name, reaction, minBar, maxBar, value, factionID = GetWatchedFactionInfo(); - local colorIndex = reaction; - local friendshipID = GetFriendshipReputation(factionID); - - if friendshipID then - colorIndex = 5; -- always color friendships green - end +-- Classic: 'ReputationBarMixin' is not available +if ReputationBarMixin then + hooksecurefunc(ReputationBarMixin, "Update", function(self) + local name, reaction, minBar, maxBar, value, factionID = GetWatchedFactionInfo(); + local colorIndex = reaction; - local color = CUSTOM_FACTION_BAR_COLORS[colorIndex]; - self:SetBarColor(color.r, color.g, color.b, 1); -end) + local color = CUSTOM_FACTION_BAR_COLORS[colorIndex]; + self:SetBarColor(color.r, color.g, color.b, 1); + end) +end -- Override the default GameTooltip_UnitColor function. diff --git a/Interface/AddOns/!Colorz/!Colorz.toc b/Interface/AddOns/!Colorz/!Colorz.toc index 3185b8ce..257e8513 100644 --- a/Interface/AddOns/!Colorz/!Colorz.toc +++ b/Interface/AddOns/!Colorz/!Colorz.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 11302 ## Title: !Colorz ## Notes: Custom colors diff --git a/Interface/AddOns/evl_RaidStatus/evl_RaidStatus.toc b/Interface/AddOns/evl_RaidStatus/evl_RaidStatus.toc index 480f8784..89bf9100 100644 --- a/Interface/AddOns/evl_RaidStatus/evl_RaidStatus.toc +++ b/Interface/AddOns/evl_RaidStatus/evl_RaidStatus.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 11302 ## Title: Evl's Raid Status ## Author: Evl diff --git a/Interface/AddOns/nBuff/core.lua b/Interface/AddOns/nBuff/core.lua index fbcdea5c..17bcb8ab 100644 --- a/Interface/AddOns/nBuff/core.lua +++ b/Interface/AddOns/nBuff/core.lua @@ -62,10 +62,11 @@ TempEnchant2:SetPoint("TOPRIGHT", TempEnchant1, "TOPLEFT", -cfg.paddingX, 0) local function UpdateFirstButton(self) if self and self:IsShown() then self:ClearAllPoints() - if UnitHasVehicleUI("player") then - self:SetPoint("TOPRIGHT", TempEnchant1) - return - else + -- Classic TODO: Doesn't have vehilces, can this be updated to still work with Retail? + -- if UnitHasVehicleUI("player") then + -- self:SetPoint("TOPRIGHT", TempEnchant1) + -- return + -- else if BuffFrame.numEnchants > 0 then self:SetPoint("TOPRIGHT", _G["TempEnchant"..BuffFrame.numEnchants], "TOPLEFT", -cfg.paddingX, 0) return @@ -73,7 +74,7 @@ local function UpdateFirstButton(self) self:SetPoint("TOPRIGHT", TempEnchant1) return end - end + -- end end end diff --git a/Interface/AddOns/nBuff/nBuff.toc b/Interface/AddOns/nBuff/nBuff.toc index 101e79fd..603274e0 100644 --- a/Interface/AddOns/nBuff/nBuff.toc +++ b/Interface/AddOns/nBuff/nBuff.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 11302 ## Title: |cffCC3333 n|rBuff config.lua diff --git a/Interface/AddOns/nChat/core.lua b/Interface/AddOns/nChat/core.lua index f28c2dd4..68785372 100644 --- a/Interface/AddOns/nChat/core.lua +++ b/Interface/AddOns/nChat/core.lua @@ -68,15 +68,18 @@ end -- Quick Join Button Options -if cfg.enableQuickJoinButton then - ChatAlertFrame:ClearAllPoints() - ChatAlertFrame:SetPoint("BOTTOMLEFT", ChatFrame1Tab, "TOPLEFT", 0, 0) - QuickJoinToastButton:ClearAllPoints() - QuickJoinToastButton:SetPoint("BOTTOMLEFT", ChatAlertFrame, "TOPLEFT", 0, 0) -else - QuickJoinToastButton:SetAlpha(0) - QuickJoinToastButton:EnableMouse(false) - QuickJoinToastButton:UnregisterAllEvents() +-- Classic: QuickJoinToastButton doesn't exist so add check +if QuickJoinToastButton then + if cfg.enableQuickJoinButton then + ChatAlertFrame:ClearAllPoints() + ChatAlertFrame:SetPoint("BOTTOMLEFT", ChatFrame1Tab, "TOPLEFT", 0, 0) + QuickJoinToastButton:ClearAllPoints() + QuickJoinToastButton:SetPoint("BOTTOMLEFT", ChatAlertFrame, "TOPLEFT", 0, 0) + else + QuickJoinToastButton:SetAlpha(0) + QuickJoinToastButton:EnableMouse(false) + QuickJoinToastButton:UnregisterAllEvents() + end end -- Voice Chat Buttons @@ -261,6 +264,34 @@ local function ModChat(self) chat.AddMessage = FCF_AddMessage end + -- Classic: Brought over hiding the chat scroll buttons from a previous version + local buttonUp = _G[self..'ButtonFrameUpButton'] + if buttonUp ~= nil then + buttonUp:SetAlpha(0) + buttonUp:EnableMouse(false) + end + + local buttonDown = _G[self..'ButtonFrameDownButton'] + if buttonDown ~= nil then + buttonDown:SetAlpha(0) + buttonDown:EnableMouse(false) + end + + local buttonBottom = _G[self..'ButtonFrameBottomButton'] + if buttonBottom ~= nil then + if (cfg.enableBottomButton) then + buttonBottom:Hide() + buttonBottom:ClearAllPoints() + buttonBottom:SetPoint('BOTTOMLEFT', chat, -1, -3) + buttonBottom:HookScript('OnClick', function(self) + self:Hide() + end) + else + buttonBottom:SetAlpha(0) + buttonBottom:EnableMouse(false) + end + end + for _, texture in pairs({ "ButtonFrameBackground", "ButtonFrameTopLeftTexture", @@ -272,12 +303,21 @@ local function ModChat(self) "ButtonFrameBottomTexture", "ButtonFrameTopTexture", }) do - _G[self..texture]:SetTexture(nil) + -- Classic: These textures don't exist + if _G[self..texture] then + _G[self..texture]:SetTexture(nil) + end end -- Modify the editbox - for k = 3, 8 do + --[[ + Classic: Tried to find an elegent solution to SetTexture not being available on regions [3-8], + but I could only get this to work if the loop to work if only regions [3-5] were done. + + Could be due to my limited WoW and Lua knowledge :s + ]]-- + for k = 3, 5 do select(k, _G[self.."EditBox"]:GetRegions()):SetTexture(nil) end diff --git a/Interface/AddOns/nChat/nChat.toc b/Interface/AddOns/nChat/nChat.toc index 52f15faa..05b180ce 100644 --- a/Interface/AddOns/nChat/nChat.toc +++ b/Interface/AddOns/nChat/nChat.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 11302 ## Title: |cffCC3333 n|rChat ## RequiredDeps: !Beautycase diff --git a/Interface/AddOns/nCore/modules/archaeology.lua b/Interface/AddOns/nCore/modules/archaeology.lua index ba2c16a0..624e8cfd 100644 --- a/Interface/AddOns/nCore/modules/archaeology.lua +++ b/Interface/AddOns/nCore/modules/archaeology.lua @@ -49,6 +49,9 @@ function nCore:ArchaeologyHelper() if not mapID then return end + -- Classic: Doesn't support Archaeology + if ArchaeologyMapUpdateAll == nil then return end + if ArchaeologyMapUpdateAll(mapID) > 0 and CanScanResearchSite() and GetSpellCooldown(SURVEY_SPELL_ID) == 0 and not IsEquippedItemType(FISHING_POLE) then if GetNumLootItems() == 0 and previousClickTime then local doubleClickTime = GetTime() - previousClickTime diff --git a/Interface/AddOns/nCore/modules/coords.lua b/Interface/AddOns/nCore/modules/coords.lua index 81e3913f..da2e22b0 100644 --- a/Interface/AddOns/nCore/modules/coords.lua +++ b/Interface/AddOns/nCore/modules/coords.lua @@ -4,7 +4,11 @@ function nCore:MapCoords() local unpack = unpack -- Temp fix until Blizzard removed the ! icon from the global string. - local _, MOUSE_LABEL = strsplit("1", MOUSE_LABEL, 2) + -- Extended this to support Classic as 'strsplit' won't work on MOUSE_LABEL as it doesn't have the ! icon + local _, mouseLabel = strsplit("1", MOUSE_LABEL, 2) + if ( mouseLabel == nil ) then + mouseLabel = MOUSE_LABEL + end local cfg = { location = {"BOTTOMLEFT", WorldMapFrame, "BOTTOMLEFT", 10, 0}, @@ -56,7 +60,7 @@ function nCore:MapCoords() if cx then if cx >= 0 and cy >= 0 and cx <= 1 and cy <= 1 then - self.Mouse.Text:SetFormattedText("%s: %.1f x %.1f", MOUSE_LABEL, cx * 100, cy * 100) + self.Mouse.Text:SetFormattedText("%s: %.1f x %.1f", mouseLabel, cx * 100, cy * 100) else self.Mouse.Text:SetText("") end diff --git a/Interface/AddOns/nCore/modules/dressroom.lua b/Interface/AddOns/nCore/modules/dressroom.lua index 17bb78cf..558971b7 100644 --- a/Interface/AddOns/nCore/modules/dressroom.lua +++ b/Interface/AddOns/nCore/modules/dressroom.lua @@ -5,7 +5,12 @@ function nCore:Dressroom() DressUpFrameCancelButton:SetText("Naked") DressUpFrameCancelButton:SetScript("OnClick", function() - DressUpModel:Undress() + -- Classic: Use DressUpModelFrame instead + if DressUpModelFrame then + DressUpModelFrame:Undress() + else + DressUpModel:Undress() + end end) DressUpFrameResetButton:SetText("Clothed") end \ No newline at end of file diff --git a/Interface/AddOns/nCore/modules/durability.lua b/Interface/AddOns/nCore/modules/durability.lua index bf615517..fb46194e 100644 --- a/Interface/AddOns/nCore/modules/durability.lua +++ b/Interface/AddOns/nCore/modules/durability.lua @@ -30,8 +30,16 @@ function nCore:Durability() local charString = CharacterLevelText charString:SetFont(STANDARD_TEXT_FONT, 14) - local tab = CreateFrame("Button", "PaperDollFrameDurabilityTab", PaperDollSidebarTab1, "CharacterFrameTabButtonTemplate") - tab:SetPoint("TOP", PaperDollFrame, "BOTTOM", 170, 2) + -- For retail use PaperDollSidebarTab1, Classic use PaperDollItemsFrame + local tab = nil + if PaperDollSidebarTab1 then + tab = CreateFrame('Button', 'PaperDollFrameDurabilityTab', PaperDollSidebarTab1, 'CharacterFrameTabButtonTemplate') + tab:SetPoint('TOP', PaperDollFrame, 'BOTTOM', 170, 2) + else + tab = CreateFrame('Button', 'PaperDollFrameDurabilityTab', PaperDollItemsFrame, 'CharacterFrameTabButtonTemplate') + tab:SetPoint('TOP', PaperDollFrame, 'BOTTOM', 103, 78) + end + tab:Disable() tab:EnableMouse(false) tab:SetFrameStrata("BACKGROUND") diff --git a/Interface/AddOns/nCore/modules/objectivetracker.lua b/Interface/AddOns/nCore/modules/objectivetracker.lua index 01fe783b..04259e2d 100644 --- a/Interface/AddOns/nCore/modules/objectivetracker.lua +++ b/Interface/AddOns/nCore/modules/objectivetracker.lua @@ -2,6 +2,9 @@ local _, nCore = ... local L = nCore.L function nCore:ObjectiveTracker() + -- Classic: 'ObjectiveTrackerFrame' isn't available? Have commented out the config option for now + if ( not ObjectiveTrackerFrame ) then return end + if ( not nCoreDB.ObjectiveTracker ) then return end local objectiveTrackerFrame = _G["ObjectiveTrackerFrame"] diff --git a/Interface/AddOns/nCore/modules/questtracker.lua b/Interface/AddOns/nCore/modules/questtracker.lua index 4a8517ee..a1525883 100644 --- a/Interface/AddOns/nCore/modules/questtracker.lua +++ b/Interface/AddOns/nCore/modules/questtracker.lua @@ -3,8 +3,11 @@ local _, nCore = ... function nCore:QuestTracker() local function UpdateQuestText() local _, numQuests = GetNumQuestLogEntries() - WorldMapFrameTitleText:SetFormattedText("%s - %d/%s", MAP_AND_QUEST_LOG, numQuests, MAX_QUESTS) - WorldMapFrameTitleText:Show() + -- Classic TODO: 'WorldMapFrameTitleText' doesn't appear to exist, is there an alternative? + -- Have commented out the config option for now + + -- WorldMapFrameTitleText:SetFormattedText("%s - %d/%s", MAP_AND_QUEST_LOG, numQuests, MAX_QUESTS) + -- WorldMapFrameTitleText:Show() end UpdateQuestText() @@ -21,8 +24,8 @@ function nCore:QuestTracker() if nCoreDB.QuestTracker then UpdateQuestText() else - WorldMapFrameTitleText:SetText(MAP_AND_QUEST_LOG) - WorldMapFrameTitleText:Show() + -- WorldMapFrameTitleText:SetText(MAP_AND_QUEST_LOG) + -- WorldMapFrameTitleText:Show() end end) end diff --git a/Interface/AddOns/nCore/modules/vignette.lua b/Interface/AddOns/nCore/modules/vignette.lua index 4a53f307..bfb27958 100644 --- a/Interface/AddOns/nCore/modules/vignette.lua +++ b/Interface/AddOns/nCore/modules/vignette.lua @@ -3,6 +3,8 @@ local _, nCore = ... -- Forked from rVignette by zork - 2014 function nCore:VignetteAlert() + -- Classic: 'C_VignetteInfo' isn't available, have commented out the config option for now + if (not C_VignetteInfo) then return end local addon = CreateFrame("Frame") diff --git a/Interface/AddOns/nCore/nCore.toc b/Interface/AddOns/nCore/nCore.toc index d3aa0999..206085c9 100644 --- a/Interface/AddOns/nCore/nCore.toc +++ b/Interface/AddOns/nCore/nCore.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 11302 ## Title: |cffCC3333 n|rCore ## OptionalDeps: !Beautycase, Recount, Omen, DBM, PitBull4, Skada, TinyDPS ## SavedVariables: nCoreDB diff --git a/Interface/AddOns/nCore/nCore.xml b/Interface/AddOns/nCore/nCore.xml index 301ab34b..0fcfdde1 100644 --- a/Interface/AddOns/nCore/nCore.xml +++ b/Interface/AddOns/nCore/nCore.xml @@ -3,7 +3,12 @@