Changes to handler and Shrines
FranekWoW [06-13-19 - 16:59]
Changes to handler and Shrines
diff --git a/Shrines.lua b/Shrines.lua
index b5d0bdf..2bb9292 100644
--- a/Shrines.lua
+++ b/Shrines.lua
@@ -1,15 +1,15 @@
local myname, ns = ...
local L = LibStub("AceLocale-3.0"):GetLocale(myname, true)
-ns.merge = merge
-ns.path = path
+-- ns.merge = merge
+-- ns.path = path
-local merge = function(t1, t2)
- if not t2 then return t1 end
- for k, v in pairs(t2) do
- t1[k] = v
- end
-end
+-- local merge = function(t1, t2)
+-- if not t2 then return t1 end
+-- for k, v in pairs(t2) do
+-- t1[k] = v
+-- end
+-- end
local path_meta = {__index = {
label = "Path to treasure",
@@ -23,14 +23,14 @@ local path = function(details)
end
-ns.map_spellids = {
- -- [862] = 0, -- Zuldazar
- -- [863] = 0, -- Nazmir
- -- [864] = 0, -- Vol'dun
- -- [895] = 0, -- Tiragarde Sound
- -- [896] = 0, -- Drustvar
- -- [942] = 0, -- Stormsong Valley
-}
+-- ns.map_spellids = {
+-- -- [862] = 0, -- Zuldazar
+-- -- [863] = 0, -- Nazmir
+-- -- [864] = 0, -- Vol'dun
+-- -- [895] = 0, -- Tiragarde Sound
+-- -- [896] = 0, -- Drustvar
+-- -- [942] = 0, -- Stormsong Valley
+-- }
ns.points = {
[862] = { -- Zuldazar
diff --git a/handler.lua b/handler.lua
index ddc8ac1..f29022d 100644
--- a/handler.lua
+++ b/handler.lua
@@ -16,7 +16,7 @@ local HandyNotes = HandyNotes
local ARTIFACT_LABEL = '|cffff8000' .. ARTIFACT_POWER .. '|r'
-local cache_tooltip = CreateFrame("GameTooltip", "HNBattleTreasuresTooltip")
+local cache_tooltip = CreateFrame("GameTooltip", "HNJewelcraftingNotes")
cache_tooltip:AddFontStrings(
cache_tooltip:CreateFontString("$parentTextLeft1", nil, "GameTooltipText"),
cache_tooltip:CreateFontString("$parentTextRight1", nil, "GameTooltipText")
@@ -29,7 +29,7 @@ local function mob_name(id)
cache_tooltip:SetOwner(WorldFrame, "ANCHOR_NONE")
cache_tooltip:SetHyperlink(("unit:Creature-0-0-0-0-%d"):format(id))
if cache_tooltip:IsShown() then
- name_cache[id] = HNBattleTreasuresTooltipTextLeft1:GetText()
+ name_cache[id] = HNJewelcraftingNotesTextLeft1:GetText()
end
end
return name_cache[id]