load Hyperlink Hover

This commit is contained in:
Crum
2018-01-18 15:14:50 -06:00
parent 3314de89c5
commit c1828828df
+10 -10
View File
@@ -10,7 +10,7 @@ local time, difftime = time, difftime
local pairs, unpack, select, tostring, next, tonumber, type, assert = pairs, unpack, select, tostring, next, tonumber, type, assert local pairs, unpack, select, tostring, next, tonumber, type, assert = pairs, unpack, select, tostring, next, tonumber, type, assert
local tinsert, tremove, tsort, twipe, tconcat = table.insert, table.remove, table.sort, table.wipe, table.concat local tinsert, tremove, tsort, twipe, tconcat = table.insert, table.remove, table.sort, table.wipe, table.concat
local strmatch = strmatch local strmatch = strmatch
local gsub, find, gmatch, format, split = string.gsub, string.find, string.gmatch, string.format, string.split local gsub, find, match, gmatch, format, split = string.gsub, string.find, string.match, string.gmatch, string.format, string.split
local strlower, strsub, strlen, strupper = strlower, strsub, strlen, strupper local strlower, strsub, strlen, strupper = strlower, strsub, strlen, strupper
--WoW API / Variables --WoW API / Variables
local BetterDate = BetterDate local BetterDate = BetterDate
@@ -464,7 +464,7 @@ function CH:UpdateAnchors()
end end
end end
-- CH:PositionChat(true) CH:PositionChat(true)
end end
local function FindRightChatID() local function FindRightChatID()
@@ -512,7 +512,7 @@ function CH:UpdateChatTabs()
end end
function CH:PositionChat(override) function CH:PositionChat(override)
--if ((not override and self.initialMove) or (not override)) then return end if ((not override and self.initialMove) or (not override)) then return end
if not RightChatPanel or not LeftChatPanel then return end if not RightChatPanel or not LeftChatPanel then return end
RightChatPanel:SetWidth(E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth) RightChatPanel:SetWidth(E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth)
RightChatPanel:SetHeight(E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight) RightChatPanel:SetHeight(E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight)
@@ -694,22 +694,22 @@ end
local hyperLinkEntered local hyperLinkEntered
function CH:OnHyperlinkEnter() function CH:OnHyperlinkEnter()
--[[local linkToken = refString:match("^([^:]+)") local linkToken = match(arg1, "(%a+):(%d+)")
if hyperlinkTypes[linkToken] then if hyperlinkTypes[linkToken] then
ShowUIPanel(GameTooltip) ShowUIPanel(GameTooltip)
GameTooltip:SetOwner(frame, "ANCHOR_CURSOR") GameTooltip:SetOwner(this, "ANCHOR_CURSOR")
GameTooltip:SetHyperlink(refString) GameTooltip:SetHyperlink(arg1)
hyperLinkEntered = frame hyperLinkEntered = this
GameTooltip:Show() GameTooltip:Show()
end]] end
end end
function CH:OnHyperlinkLeave() function CH:OnHyperlinkLeave()
--[[local linkToken = refString:match("^([^:]+)") local linkToken = match(arg1, "(%a+):(%d+)")
if hyperlinkTypes[linkToken] then if hyperlinkTypes[linkToken] then
HideUIPanel(GameTooltip) HideUIPanel(GameTooltip)
hyperLinkEntered = nil hyperLinkEntered = nil
end]] end
end end
function CH:OnMessageScrollChanged(frame) function CH:OnMessageScrollChanged(frame)