WoWInterface SVN TipTop

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 114 to Rev 115
    Reverse comparison

Rev 114 → Rev 115

trunk/TipTop/tiptop.lua
259,8 → 259,6
end
if text == guild then
GameTooltipTextLeft2:SetFormattedText("%s (%s)", text, rank)
tt:Show()
AdjustTooltipBG()
end
end
end
312,8 → 310,6
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
 
459,8 → 455,6
evfr:RegisterEvent("INSPECT_READY")
tt:AddDoubleLine(specializationText, "...") --adds the Talents line with a placeholder for info
end
tt:Show()
AdjustTooltipBG()
end
end
end
476,8 → 470,6
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
489,26 → 481,29
 
local ttWidth
local function MouseoverTargetUpdate() --do this stuff whenever the mouseover unit is changed
if db.shortName then
GameTooltipTextLeft1:SetText(UnitName("mouseover"))
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
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()
530,7 → 525,6
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)
trunk/TipTop/TipTop.toc
2,7 → 2,7
## Title: TipTop
## Author: Seerah
## Notes: Tooltip enhancement
## Version: 3.1
## Version: 3.1.1
## SavedVariables: TipTopDB
## SavedVariablesPerCharacter: TipTopPCDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets