Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.0.0 fixes #7

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions Callings/CallingsBoard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ function WQT_CallingsBoardMixin:OnLoad()
self.lastUpdate = 0;
self:UpdateCovenant();

hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
self:OnMapChanged(WorldMapFrame:GetMapID());
end)
-- hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
-- self:OnMapChanged(WorldMapFrame:GetMapID());
-- end)
EventRegistry:RegisterCallback("MapCanvas.MapSet", function(_,mapID)
-- Now we do it modern way.
self:OnMapChanged(mapID);
end);

self:RequestUpdate();
end
Expand Down Expand Up @@ -382,13 +386,9 @@ function WQT_CallingsBoardDisplayMixin:OnEnter()

if (self.calling.isLockedToday) then
local daysUntilString = "";
if (GetBuildInfo() < "9.0.5") then
daysUntilString = self.calling:GetDaysUntilNextString();
else
local days = MAX_CALLINGS - self.calling.index + 1;
daysUntilString = _G["BOUNTY_BOARD_NO_CALLINGS_DAYS_" .. days] or BOUNTY_BOARD_NO_CALLINGS_DAYS_1;
end

local days = MAX_CALLINGS - self.calling.index + 1;
daysUntilString = _G["BOUNTY_BOARD_NO_CALLINGS_DAYS_" .. days] or BOUNTY_BOARD_NO_CALLINGS_DAYS_1;

GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(daysUntilString, HIGHLIGHT_FONT_COLOR:GetRGB());
GameTooltip:Show();
Expand Down Expand Up @@ -432,11 +432,3 @@ function WQT_CallingsBoardDisplayMixin:OnClick()
end
end
end








2 changes: 1 addition & 1 deletion Callings/CallingsBoard.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/"
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ../../FrameXML/UI.xsd">

Expand Down
250 changes: 214 additions & 36 deletions Data.lua

Large diffs are not rendered by default.

67 changes: 44 additions & 23 deletions Dataprovider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ local function UpdateAzerothZones(newLevel)
wipe(worldTable);

-- world map continents depending on expansion level
worldTable[113] = {["x"] = 0.49, ["y"] = 0.13} -- Northrend
worldTable[424] = {["x"] = 0.46, ["y"] = 0.92} -- Pandaria
worldTable[12] = {["x"] = 0.19, ["y"] = 0.5} -- Kalimdor
worldTable[13] = {["x"] = 0.88, ["y"] = 0.56} -- Eastern Kingdom
worldTable[113] = {["x"] = 0.49, ["y"] = 0.12} -- Northrend
worldTable[424] = {["x"] = 0.48, ["y"] = 0.82} -- Pandaria
worldTable[12] = {["x"] = 0.24, ["y"] = 0.55} -- Kalimdor
worldTable[13] = {["x"] = 0.89, ["y"] = 0.52} -- Eastern Kingdom

-- Always take the highest expansion
if (expLevel >= LE_EXPANSION_BATTLE_FOR_AZEROTH and newLevel >= 50) then
worldTable[875] = {["x"] = 0.54, ["y"] = 0.61} -- Zandalar
worldTable[876] = {["x"] = 0.72, ["y"] = 0.49} -- Kul Tiras
elseif (expLevel >= LE_EXPANSION_LEGION and newLevel >= 50) then
worldTable[619] = {["x"] = 0.6, ["y"] = 0.41} -- Broken Isles
-- Always take the highest expansion
if (expLevel >= LE_EXPANSION_DRAGONFLIGHT and newLevel >= 58) then
worldTable[1978] = {["x"] = 0.77, ["y"] = 0.22} -- Dragon Isles
elseif (expLevel >= LE_EXPANSION_BATTLE_FOR_AZEROTH and newLevel >= 50) then
worldTable[875] = {["x"] = 0.54, ["y"] = 0.63} -- Zandalar
worldTable[876] = {["x"] = 0.71, ["y"] = 0.50} -- Kul Tiras
elseif (expLevel >= LE_EXPANSION_LEGION and newLevel >= 45) then
worldTable[619] = {["x"] = 0.58, ["y"] = 0.39} -- Broken Isles
end
end

Expand Down Expand Up @@ -238,16 +240,26 @@ function QuestInfoMixin:LoadRewards(force)
elseif (typeID == 0 and subTypeID == 8 and price == 0 and ilvl > 100) then
-- Item converting into equipment
self:AddReward(WQT_REWARDTYPE.equipment, ilvl, texture, quality, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardArmor), rewardId);
else
elseif (rewardId == 199192 or rewardId == 204359 or rewardId == 205226 or rewardId == 210549) and WQT.settings.general.df_goldPurses then
--Treat dragon racer's purse rewards as gold.
self:AddReward(WQT_REWARDTYPE.gold, 525*100*100, 133784, 1, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardGold));
else
self:AddReward(WQT_REWARDTYPE.item, numItems, texture, quality, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardItem), rewardId);
end
end
end
end
-- Spells
if (GetQuestLogRewardSpell(1, self.questId)) then
local texture, _, _, _, _, _, _, _, rewardId = GetQuestLogRewardSpell(1, self.questId);
self:AddReward(WQT_REWARDTYPE.spell, 1, texture, 1, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardItem), rewardId);
if (C_QuestInfoSystem.HasQuestRewardSpells(self.questId)) then
local spellRewards = C_QuestInfoSystem.GetQuestRewardSpells(self.questId);
for _, spellID in ipairs(spellRewards) do
local spellInfo = C_QuestInfoSystem.GetQuestRewardSpellInfo(self.questId, spellID);
local knownSpell = IsSpellKnownOrOverridesKnown(spellID);
-- only allow the spell reward if user can learn it
if spellInfo and spellInfo.texture and not knownSpell and (not spellInfo.isBoostSpell or IsCharacterNewlyBoosted()) and (not spellInfo.garrFollowerID or not C_Garrison.IsFollowerCollected(spellInfo.garrFollowerID)) then
self:AddReward(WQT_REWARDTYPE.spell, 1, spellInfo.texture, 1, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardItem), spellInfo.spellID);
end
end
end
-- Honor
if (GetQuestLogRewardHonor(self.questId) > 0) then
Expand Down Expand Up @@ -382,8 +394,9 @@ end

function QuestInfoMixin:GetRewardTexture()
if (self.reward.typeBits == WQT_REWARDTYPE.none) then
-- Dark empty texture
return "Interface/Garrison/GarrisonMissionUIInfoBoxBackgroundTile";
-- Dark empty texture
--return "Interface/Garrison/GarrisonMissionUIInfoBoxBackgroundTile";
return 134400;
end

local reward = self.rewardList[1];
Expand Down Expand Up @@ -478,12 +491,15 @@ function WQT_DataProvider:Init()
self.waitingRoomRewards = {};

self.bufferedZones = {};
hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
-- If we change map, reset the CD, we want new quest info
self:LoadQuestsInZone(WorldMapFrame.mapID);
-- hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
-- -- If we change map, reset the CD, we want new quest info
-- self:LoadQuestsInZone(WorldMapFrame.mapID);
-- end);
EventRegistry:RegisterCallback("MapCanvas.MapSet", function(_,mapID)
-- Now we do it modern way.
self:LoadQuestsInZone(mapID);
end);

UpdateAzerothZones();
UpdateAzerothZones();

self.updateCD = 0;
end
Expand All @@ -499,7 +515,7 @@ function WQT_DataProvider:OnEvent(event, ...)

elseif (event == "PLAYER_LEVEL_UP") then
local level = ...;
UpdateAzerothZones(level);
UpdateAzerothZones(level);
end
end

Expand Down Expand Up @@ -602,7 +618,7 @@ function WQT_DataProvider:LoadQuestsInZone(zoneID)
self.latestZoneId = zoneID
-- If the flight map is open, we want all quests no matter what
if ((FlightMapFrame and FlightMapFrame:IsShown()) ) then
local taxiId = GetTaxiMapID()
local taxiId = FlightMapFrame and FlightMapFrame:GetMapID() or GetTaxiMapID()
zoneID = (taxiId and taxiId > 0) and taxiId or zoneID;
-- World Flight Map add-on overwrite
if (_WFMLoaded) then
Expand Down Expand Up @@ -681,6 +697,11 @@ function WQT_DataProvider:AddQuest(qInfo)

local questInfo = self.pool:Acquire();
local alwaysHide = not MapUtil.ShouldShowTask(qInfo.mapID, qInfo);

-- Dragonflight devs forgot to flagged some tech quests with "MapUtil.ShouldShowTask", and past it in Vol'dun location.
-- It make Vol'dun's map messy. This should fix it.
if (qInfo.questId > 60000) and (qInfo.mapID == 864) then alwaysHide = true; end

local posX, posY = WQT_Utils:GetQuestMapLocation(qInfo.questId, qInfo.mapID);
local haveRewardData = questInfo:Init(qInfo.questId, qInfo.isDaily, qInfo.isCombatAllyQuest, alwaysHide, posX, posY);

Expand Down
2 changes: 1 addition & 1 deletion Debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ local function GetWorldQuestDump()
end

local function GetPlayerDump()
local version = GetAddOnMetadata(addonName, "version");
local version = C_AddOns.GetAddOnMetadata(addonName, "version");
local map = C_Map.GetBestMapForUnit("player");
local coords = nil;
if (map) then
Expand Down
2 changes: 1 addition & 1 deletion Debug.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/"
 <Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ../../FrameXML/UI.xsd">

Expand Down
2 changes: 1 addition & 1 deletion External/External.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/"
 <Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ../../FrameXML/UI.xsd">

Expand Down
93 changes: 90 additions & 3 deletions Locals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ L["FORMAT_GROUP_SEARCH"] = "Type |cFFFFFFFF%d|r to search for a group for this q
L["FORMAT_GROUP_TYPO"] = "It appears to have made a typo. Type either |cFFFFFFFF%d|r, or |cFFFFFFFF%s|r."
L["GENERIC_ANIMA"] = "Matching Anima Textures"
L["GENERIC_ANIMA_TT"] = "Replace the different anima item textures with matching ones, much like Azerite had. This only affects map icons and the quest list."
L["GOLD_PURSES"] = "Gold Racer's Purses"
L["GOLD_PURSES_TT"] = "Treat Dragon Racer's Purses as gold rewards."
L["GROUP_SEARCH_INFO"] = "Blizzard prevents add-ons from automatically looking for a group for the majority of world quests. Because of this, players have to manually fill in the search box."
L["INCLUDE_DAILIES"] = "Include Dailies"
L["INCLUDE_DAILIES_TT"] = "Treat certain dailies as world quests. Only affects dailies which Blizzard themselves treats as world quests."
Expand Down Expand Up @@ -473,7 +475,7 @@ L["MAP_FILTER_DISABLED_TITLE"] = "一些世界地图过滤器被禁用"
L["NO_FACTION"] = "无阵营"
L["NUMBERS_FIRST"] = "%g万"
L["NUMBERS_SECOND"] = "%g亿"
L["NUMBERS_THIRD"] = "%g"
L["NUMBERS_THIRD"] = "%g兆"
L["PIN_BIGGER"] = "更大的固定项"
L["PIN_BIGGER_TT"] = "增大固定项的尺寸来获得更好的可见性"
L["PIN_DISABLE"] = "关闭任务图标替换"
Expand Down Expand Up @@ -520,7 +522,91 @@ L["WHATS_NEW_TT"] = "查看 World Quest Tab 的更新日志。"
L["WQT_FULLSCREEN_BUTTON_TT"] = "左键点击来切换世界任务列表,右键按住拖拽来改变位置。"
L["PRECISE_FILTER"] = "精确过滤"
L["PRECISE_FILTER_TT"] = "过滤器只显示与所有过滤匹配的任务,\\n而不仅仅是单一过滤匹配的任务。"

L["IGNORES_FILTERS"] = "始终显示"
--Not trusted zhCN translation below this line
L["BLIZZARD"] = "暴雪"
L["CALLINGS_BOARD"] = "使命面板"
L["CALLINGS_BOARD_TT"] = "在地图上显示圣所的使命任务面板,类似以前的大使任务"
L["CURRENT_PROFILE"] = "当前配置文件"
L["CURRENT_PROFILE_TT"] = "选择您启用的配置文件"
L["CUSTOM_COLORS"] = "自定义染色"
L["EMISSARY_REWARD"] = "大使奖励图标"
L["EMISSARY_REWARD_TT"] = "在大使图标上,显示所提供奖励的类型图标"
L["EMISSARY_SELECTED_ONLY"] = "只显示所选大使"
L["EMISSARY_SELECTED_ONLY_TT"] = "只显示所选大使的任务,不再显示其他任务。(关闭此选项,会显示所有现有大使的任务,点一下大使图标仍然只会显示所选大使相关的任务)"
L["GENERIC_ANIMA"] = "统一心能图标"
L["GENERIC_ANIMA_TT"] = "将不同的心能物品图标全部替换成同样的,类似之前的艾泽里特。仅影响地图标记和任务列表的图标。"
L["INCLUDE_DAILIES"] = "包含日常"
L["INCLUDE_DAILIES_TT"] = "将某些每日任务视作世界任务。仅影响暴雪自己视之为世界任务的每日任务。"
L["LIST_COLOR_TIME"] = "时长染色"
L["LIST_COLOR_TIME_TT"] = "根据剩余时长染色。临终一刻染红"
L["MAP_PINS"] = "任务点"
L["MINI_ICONS"] = "小图标"
L["NEW_PROFILE"] = "新配置文件"
L["NEW_PROFILE_TT"] = "基于现有设置新建一个配置文件"
L["PIN_BLIZZARD_TT"] = "暴雪风格的任务点"
L["PIN_CENTER"] = "主要图标类型"
L["PIN_CENTER_TT"] = "选择任务点中心的图标外观"
L["PIN_ELITE_RING"] = "精英镶边替换"
L["PIN_ELITE_RING_TT"] = "用尖刺环替代暴雪的精英龙环"
L["PIN_FADE_ON_PING"] = "突显焦点"
L["PIN_FADE_ON_PING_TT"] = "淡化所有非追踪的任务,从而突显追踪任务"
L["PIN_RARITY_ICON"] = "稀有任务标示"
L["PIN_RARITY_ICON_TT"] = "稀有任务点下方显示稀有标示"
L["PIN_REWARD_TT"] = "使用主要奖励的材质"
L["PIN_RING_HIDE_TT"] = "任务点不镶边"
L["PIN_RING_QUALITY_TT"] = "按任务稀有度镶边染色"
L["PIN_RING_TT"] = "选择任务点的外观"
L["PIN_SCALE"] = "任务点缩放"
L["PIN_SCALE_TT"] = "更改任务点的大小"
L["PIN_SHOW_CONTINENT"] = "母地图层可见"
L["PIN_SHOW_CONTINENT_TT"] = "任务点在其所属版本大洲地图上标记"
L["PIN_TIME_ICON"] = "剩余时长标示"
L["PIN_TIME_ICON_TT"] = "添加基于时长染色的剩余时长标示"
L["PIN_VISIBILITY_ALL_TT"] = "所有任务点都会显示"
L["PIN_VISIBILITY_CONTINENT"] = "全域可见"
L["PIN_VISIBILITY_CONTINENT_TT"] = "哪些任务点会在其所属版本的大洲地图上标记"
L["PIN_VISIBILITY_NONE_TT"] = "不显示任何任务点"
L["PIN_VISIBILITY_TRACKED"] = "仅追踪的"
L["PIN_VISIBILITY_TRACKED_TT"] = "只显示追踪的任务点"
L["PIN_VISIBILITY_ZONE"] = "局域可见"
L["PIN_VISIBILITY_ZONE_TT"] = "哪些任务点会在区域地图上标记"
L["PLACE_MAP_PIN"] = "建立地图标记"
L["PREVIOUS_EXPANSIONS"] = "旧资料片"
L["PROFILES"] = "配置文件"
L["PROFILE_NAME"] = "配置文件名"
L["PROFILE_NAME_TT"] = "更改配置文件名"
L["QUEST_LIST"] = "任务列表"
L["REMOVE_PROFILE"] = "删除配置文件"
L["REMOVE_PROFILE_TT"] = "删除当前启用的配置文件"
L["RESET_PROFILE"] = "重置配置文件"
L["RESET_PROFILE_TT"] = "重置当前启用的配置文件,恢复为预设配置"
L["REWARD_COLORS_AMOUNT"] = "奖励数量染色"
L["REWARD_COLORS_RING"] = "奖励镶边染色"
L["REWARD_CONDUITS"] = "导灵器"
L["REWARD_NUM_DISPLAY"] = "奖励种数"
L["REWARD_NUM_DISPLAY_PIN"] = "奖励图标"
L["REWARD_NUM_DISPLAY_PIN_TT"] = "根据任务的奖励类型添加图标,最多不超过奖励种数"
L["REWARD_NUM_DISPLAY_TT"] = "显示任务奖励的种数"
L["SHORTCUT_DISLIKE"] = "<Shift+右键点击来标记>"
L["SHORTCUT_TRACK"] = "<Shift+右键点击来追踪>"
L["SHORTCUT_WAYPOINT"] = "<Ctrl+右键点击设置路径点>"
L["TIME_COLORS"] = "时长染色"
L["TIME_CRITICAL"] = "15分钟"
L["TIME_CRITICAL_TT"] = "时长低于15分钟"
L["TIME_LONG"] = "1-3天"
L["TIME_LONG_TT"] = "时长介于1到3天之间"
L["TIME_MEDIUM"] = "1天"
L["TIME_MEDIUM_TT"] = "时长介于1到24小时之间"
L["TIME_SHORT"] = "1小时"
L["TIME_SHORT_TT"] = "时长介于15到60分钟之间"
L["TIME_VERYLONG"] = "3天以上"
L["TIME_VERYLONG_TT"] = "时长超过3天。通常用于世界首领"
L["TOMTOM_PIN"] = "TomTom导航点"
L["UNINTERESTED"] = "忽略"
L["UNINTERESTED_TT"] = "在列表中显示已“忽略”的任务"
L["WHATS_NEW"] = "最近更新"
--End of not trusted translation section
L["IS_AZIAN_CLIENT"] = true
end

Expand Down Expand Up @@ -579,7 +665,7 @@ L["NEW_PROFILE_TT"] = "基於現有設置建立一個新設定檔。"
L["NO_FACTION"] = "無陣營"
L["NUMBERS_FIRST"] = "%g萬"
L["NUMBERS_SECOND"] = "%g億"
L["NUMBERS_THIRD"] = "%g"
L["NUMBERS_THIRD"] = "%g兆"
L["PIN_BIGGER"] = "地圖上顯示大型圖示"
L["PIN_BIGGER_TT"] = "增加地圖示大小以提高可見性"
L["PIN_BLIZZARD_TT"] = "模仿暴雪的任務點外觀。"
Expand Down Expand Up @@ -688,6 +774,7 @@ L["USE_TOMTOM_TT"] = "在此插件添加TomTom功能。"
L["WHATS_NEW"] = "最新消息"
L["WHATS_NEW_TT"] = "查看World Quest Tab更新說明。"
L["WQT_FULLSCREEN_BUTTON_TT"] = "左鍵點擊以切換世界任務列表。右鍵點擊並拖動以變更位置。"
L["IGNORES_FILTERS"] = "始終顯示類型"

L["IS_AZIAN_CLIENT"] = true
end
Expand Down
11 changes: 8 additions & 3 deletions MapPinProvider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ local function ShouldShowPin(questInfo, mapType, settingsZoneVisible, settingsPi
return false;
end
elseif (mapType >= Enum.UIMapType.Zone) then
-- Never show on continent
-- Never show on zone
if (settingsZoneVisible == _V["ENUM_PIN_ZONE"].none) then
return false;
end
Expand Down Expand Up @@ -122,7 +122,12 @@ function WQT_PinDataProvider:Init()
end, addonName);

-- Fix pings and fades when switching map
hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
-- hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
-- wipe(self.pingedQuests);
-- self:UpdateQuestPings();
-- end);
EventRegistry:RegisterCallback("MapCanvas.MapSet", function()
-- Now we do it modern way.
wipe(self.pingedQuests);
self:UpdateQuestPings();
end);
Expand Down Expand Up @@ -206,7 +211,7 @@ function WQT_PinDataProvider:PlacePins()
for k, questInfo in ipairs(WQT_WorldQuestFrame.dataProvider:GetIterativeList()) do
local officialShow = true;
if (wqp.focusedQuestID) then
officialShow = C_QuestLog.IsQuestCalling(wqp.focusedQuestID) and wqp:ShouldHighlightInfo(questInfo.questId);
officialShow = C_QuestLog.IsQuestCalling(wqp.focusedQuestID) and wqp:ShouldSupertrackHighlightInfo(questInfo.questId);
end

if (officialShow and ShouldShowPin(questInfo, mapInfo.mapType, settingsZoneVisible, settingsContinentVisible, settingsFilterPoI, isFlightMap)) then
Expand Down
6 changes: 3 additions & 3 deletions MapPinProvider.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/"
 <Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ../../FrameXML/UI.xsd">

Expand All @@ -12,8 +12,8 @@
<Layer level="BACKGROUND" textureSubLevel="3">
<Texture parentKey="CustomUnderlay" atlas="worldquest-questmarker-dragon" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" x="-5" y="4"/>
<Anchor point="BOTTOMRIGHT" x="5" y="-5"/>
<Anchor point="TOPLEFT" x="-12" y="11"/>
<Anchor point="BOTTOMRIGHT" x="10" y="-10"/>
</Anchors>
</Texture>
<Texture parentKey="Icon">
Expand Down
2 changes: 1 addition & 1 deletion Profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function WQT_Profiles:InitSettings()

-- Version checking
local settingVersion = WQT.db.global.versionCheck or"0";
local currentVersion = GetAddOnMetadata(addonName, "version");
local currentVersion = C_AddOns.GetAddOnMetadata(addonName, "version");
if (settingVersion < currentVersion) then
WQT.db.global.updateSeen = false;
WQT.db.global.versionCheck = currentVersion;
Expand Down
2 changes: 1 addition & 1 deletion Profiles.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/"
 <Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ../../FrameXML/UI.xsd">

Expand Down
Loading