/
--update for level increases from expansions |
local hugeLevel = 110 |
local hugeLevel = 140 |
--CREATE & ASSIGN FRAMES-- |
TipTop = CreateFrame("FRAME", nil, GameTooltip) |
local UnitIsConnected = _G.UnitIsConnected |
local UnitIsDead = _G.UnitIsDead |
local UnitIsDND = _G.UnitIsDND |
local UnitIsTapped = _G.UnitIsTapped |
local UnitIsTapDenied = _G.UnitIsTapDenied |
local UnitIsTappedByPlayer = _G.UnitIsTappedByPlayer |
local UnitIsFriend = _G.UnitIsFriend |
local UnitLevel = _G.UnitLevel |
local function FadedTip() --grays out tooltip if unit is tapped or dead |
local tapped = false |
if not UnitPlayerControlled("mouseover") then |
--if UnitIsTapped("mouseover") and not UnitIsTappedByPlayer("mouseover") then |
if UnitIsTapDenied("mouseover") then |
tapped = true |
end |
leftText = left:GetText() |
if leftText == specializationText then --finds the Talents line and updates with info |
_G[GameTooltip:GetName().."TextRight"..i]:SetText(select(2,GetSpecializationInfoByID(maxtree))) |
tt:Show() |
break |
end |
tt:Show() |
end |
end |
end |
--moves tooltip |
hooksecurefunc("GameTooltip_SetDefaultAnchor", function (tooltip, parent) |
if db.onCursor then |
tt:SetOwner(parent, "ANCHOR_CURSOR") |
tooltip:SetOwner(parent, "ANCHOR_CURSOR") |
else |
tt:SetOwner(parent, "ANCHOR_NONE") |
tt:ClearAllPoints() |
tt:SetPoint(db.anchor, UIParent, db.anchor, db.offsetX, db.offsetY) |
tooltip:SetOwner(parent, "ANCHOR_NONE") |
tooltip:ClearAllPoints() |
tooltip:SetPoint(db.anchor, UIParent, db.anchor, db.offsetX, db.offsetY) |
end |
end) |
## Interface: 70000 |
## Interface: 70100 |
## Title: TipTop |
## Author: Seerah |
## Notes: Tooltip enhancement |
## Version: 2.16.1 |
## Version: 2.16.2 |
## SavedVariables: TipTopDB |
## SavedVariablesPerCharacter: TipTopPCDB |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |