WoWInterface SVN TipTop

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 100 to Rev 101
    Reverse comparison

Rev 100 → Rev 101

trunk/TipTop/tiptop.lua
16,6 → 16,7
local player = UnitName("player")
local server = GetRealmName()
local _, db, BGPosition, color, font, classif, talentsGUID, factionIcon, factionTable
local specializationText = SPECIALIZATION..":"
local tooltips = { GameTooltip,
ItemRefTooltip,
ShoppingTooltip1,
421,26 → 422,27
local function TalentQuery() --send request for talent info
if CanInspect("mouseover") and db.showTalentText then
if UnitName("mouseover") ~= player and UnitLevel("mouseover") > 9 then
local talentline = nil
local talentline = false
for i=1, tt:NumLines() do
local left, leftText
left = _G["GameTooltipTextLeft"..i]
leftText = left:GetText()
if leftText == "Talents:" then
talentline = 1
if leftText == specializationText then
talentline = true
break
end
end
if not talentline then
--we'll leave this in until the default UI gets all the kinks out
if InspectFrame and InspectFrame:IsShown() then --to not step on default UI's toes
tt:AddDoubleLine("Talents:", "Inspect Frame is open", nil,nil,nil, 1,0,0)
tt:AddDoubleLine(specializationText, "Inspect Frame is open", nil,nil,nil, 1,0,0)
elseif Examiner and Examiner:IsShown() then --same thing with Examiner
tt:AddDoubleLine("Talents:", "Examiner frame is open", nil,nil,nil, 1,0,0)
tt:AddDoubleLine(specializationText, "Examiner frame is open", nil,nil,nil, 1,0,0)
else
talentsGUID = UnitGUID("mouseover")
NotifyInspect("mouseover")
TipTop:RegisterEvent("INSPECT_READY")
tt:AddDoubleLine("Specialization:", "...") --adds the Talents line with a placeholder for info
tt:AddDoubleLine(specializationText, "...") --adds the Talents line with a placeholder for info
end
tt:Show()
end
456,7 → 458,7
for i=1, tt:NumLines() do
left = _G[GameTooltip:GetName().."TextLeft"..i]
leftText = left:GetText()
if leftText == "Specialization:" then --finds the Talents line and updates with info
if leftText == specializationText then --finds the Talents line and updates with info
_G[GameTooltip:GetName().."TextRight"..i]:SetText(select(2,GetSpecializationInfoByID(maxtree)))
end
tt:Show()
trunk/TipTop/TipTop.toc
2,7 → 2,7
## Title: TipTop
## Author: Seerah
## Notes: Tooltip enhancement
## Version: 2.16
## Version: 2.16.1
## SavedVariables: TipTopDB
## SavedVariablesPerCharacter: TipTopPCDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets