/trunk/TipTop
local server = GetRealmName() |
local target, tclass, tserver, targetLine, _, tree, pnts, spec, points, lasthp, lastmax, textformat |
local talents = {} |
local raidIcon = tt:CreateTexture(nil, "OVERLAY") |
--local raidIcon = tt:CreateTexture(nil, "OVERLAY") |
local raidIcon = ttSBar:CreateTexture(nil, "OVERLAY") |
local tooltips = { GameTooltip, |
ItemRefTooltip, |
ShoppingTooltip1, |
end |
local function RaidIconUpdate() |
if UnitExists("mouseover") then |
local icon = GetRaidTargetIndex("mouseover") |
if icon then |
SetRaidTargetIconTexture(raidIcon, icon) |
raidIcon:Show() |
else |
raidIcon:Hide() |
end |
local icon = GetRaidTargetIndex("mouseover") |
if icon then |
SetRaidTargetIconTexture(raidIcon, icon) |
raidIcon:Show() |
else |
raidIcon:Hide() |
end |
local function MouseoverTargetUpdate() |
RaidIconUpdate() |
BorderClassColor() |
Appendices() |
FadeTip() |
TalentQuery() |
SBarContainerUpdate() |
end |
local function TipShow() |
RaidIconUpdate() |
if tt:GetUnit() then |
Appendices() |
BorderClassColor() |
SBarContainerUpdate() |
elseif tt:GetItem() then |
hooksecurefunc("GameTooltip_SetDefaultAnchor", function (tooltip, parent) |
if db.onCursor then |
tt:SetOwner(UIParent, "ANCHOR_CURSOR") |
tt:SetOwner(parent, "ANCHOR_CURSOR") |
else |
tt:SetOwner(UIParent, "ANCHOR_NONE") |
tt:SetOwner(parent, "ANCHOR_NONE") |
tt:SetPoint(db.anchor, UIParent, db.anchor, db.offsetX, db.offsetY) |
end |
end) |
ShoppingTooltip1:SetScript("OnShow", function() ShoppingTipOne() ItemQualityBorder() end) |
ShoppingTooltip2:SetScript("OnShow", function() ShoppingTipTwo() ItemQualityBorder() end) |
ShoppingTooltip3:SetScript("OnShow", function() ShoppingTipThree() ItemQualityBorder() end) |
TipTop:UnregisterEvent("PLAYER_LOGIN") |
PlayerLogin = nil |
end |
TipTop:SetScript("OnEvent", PlayerLogin) |
## Name: TipTop |
## Author: Seerah |
## Notes: Tooltip enhancement |
## Version: 1.8.4 |
## Version: 1.8.5 |
## SavedVariables: TipTopDB |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |