Use first tooltip line if controller tooltip line is empty
This commit is contained in:
parent
75e5ac867a
commit
f04395a63a
1 changed files with 8 additions and 2 deletions
|
|
@ -200,8 +200,14 @@ end
|
|||
pet_tooltip_frame:SetOwner(WorldFrame, "ANCHOR_NONE")
|
||||
pet_tooltip_frame:SetHyperlink(("unit:" .. petGUID) or "")
|
||||
|
||||
local line = _G['DetailsPetOwnerFinderTextLeft' .. (2 + cbMode)]
|
||||
lineText = line and line:GetText()
|
||||
local line = _G['DetailsPetOwnerFinderTextLeft' .. (2 + cbMode)]
|
||||
lineText = line and line:GetText()
|
||||
|
||||
if (not lineText or lineText == '') then
|
||||
line = _G['DetailsPetOwnerFinderTextLeft1']
|
||||
lineText = line and line:GetText()
|
||||
end
|
||||
end
|
||||
|
||||
if (lineText) then
|
||||
for i=1, #unitNameTitles do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue