/
## Title: TipTop |
## Author: Seerah |
## Notes: Tooltip enhancement |
## Version: 3.1.1 |
## Version: 3.1 |
## SavedVariables: TipTopDB |
## SavedVariablesPerCharacter: TipTopPCDB |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |
end |
if text == guild then |
GameTooltipTextLeft2:SetFormattedText("%s (%s)", text, rank) |
tt:Show() |
AdjustTooltipBG() |
end |
end |
end |
end |
local x1, x2, y1, y2 = unpack(CLASS_ICON_TCOORDS[class]) |
GameTooltipTextLeft1:SetFormattedText("|T%s:22:22:0:0:256:256:%d:%d:%d:%d|t %s", path, x1*256, x2*256, y1*256, y2*256, text) |
tt:Show() |
--AdjustTooltipBG() |
end |
end |
evfr:RegisterEvent("INSPECT_READY") |
tt:AddDoubleLine(specializationText, "...") --adds the Talents line with a placeholder for info |
end |
tt:Show() |
AdjustTooltipBG() |
end |
end |
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() |
AdjustTooltipBG() |
break |
end |
end |
local ttWidth |
local function MouseoverTargetUpdate() --do this stuff whenever the mouseover unit is changed |
if ttSBar:IsShown() then --interactable objects register as units |
if db.shortName then |
GameTooltipTextLeft1:SetText(UnitName("mouseover")) |
end |
Appendices() |
ColorBy() |
CalcHealth() |
RaidIconUpdate() |
TalentQuery() |
FadedTip() |
tt:Show() |
AdjustTooltipBG() |
if db.factionIcon then |
FactionIconUpdate() |
end |
--sets min size for aesthetics and for extended health text |
ttWidth = tt:GetWidth() |
if ttWidth < 175 and db.healthText and db.textformat == "100/100 (100%)" then |
tt:SetWidth(200) |
elseif ttWidth < 125 then |
tt:SetWidth(125) |
end |
if db.shortName then |
GameTooltipTextLeft1:SetText(UnitName("mouseover")) |
end |
Appendices() |
ColorBy() |
CalcHealth() |
RaidIconUpdate() |
TalentQuery() |
FadedTip() |
AdjustTooltipBG() |
if db.factionIcon then |
FactionIconUpdate() |
end |
--sets min size for aesthetics and for extended health text |
ttWidth = tt:GetWidth() |
if ttWidth < 175 and db.healthText and db.textformat == "100/100 (100%)" then |
tt:SetWidth(200) |
elseif ttWidth < 125 then |
tt:SetWidth(125) |
end |
end |
local function PlayerLogin() |
SetBorderColor(self, borderColor.r, borderColor.g, borderColor.b, borderColor.a) |
end |
end) |
--tt:HookScript("OnShow", AdjustTooltipBG) |
tt:HookScript("OnShow", function(self) --stupid world tips |
if self:IsOwned(UIParent) and not self:GetUnit() then |
tt:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha) |