Skip to content

Commit

Permalink
Fix: LFGListUtil_SetSearchEntryTooltip updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arnvid committed Mar 31, 2024
1 parent b83de5c commit 71a7f73
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Skin/Interface/FrameXML/LFGList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,15 @@ do --[[ FrameXML\LFGList.lua ]]
_G.GameTooltipTextLeft1:SetTextColor(classColor.r, classColor.g, classColor.b)
end
end
function Hook.LFGListUtil_SetSearchEntryTooltip(tooltip, resultID, autoAcceptOption)
function Hook.LFGListUtil_SetSearchEntryTooltip(tooltip, resultID)
_G.print("LFGListUtil_SetSearchEntryTooltip loaded.")
local searchResultInfo = _G.C_LFGList.GetSearchResultInfo(resultID)
local activityInfo = _G.C_LFGList.GetActivityInfoTable(searchResultInfo.activityID)
if activityInfo.displayType ~= _G.Enum.LFGListDisplayType.ClassEnumerate then return end

if searchResultInfo.isDelisted or not tooltip:IsShown() then

Check warning on line 135 in Skin/Interface/FrameXML/LFGList.lua

View workflow job for this annotation

GitHub Actions / tag

line contains trailing whitespace
_G.print("LFGListUtil_SetSearchEntryTooltip is isDelisted or not shown.")
return
end
local name = tooltip:GetName() .. "TextLeft"
local start
for i = 4, tooltip:NumLines() do
Expand All @@ -140,7 +144,6 @@ do --[[ FrameXML\LFGList.lua ]]
break
end
end

if start then
for i = 1, searchResultInfo.numMembers do
local _, classToken = _G.C_LFGList.GetSearchResultMemberInfo(resultID, i)
Expand Down Expand Up @@ -298,6 +301,8 @@ function private.FrameXML.LFGList()
ApplicationViewer.InfoBackground:Hide()
Skin.LFGListGroupDataDisplayTemplate(ApplicationViewer.DataDisplay)
Skin.UICheckButtonTemplate(ApplicationViewer.AutoAcceptButton) -- BlizzWTF: This doesn't use the template, but it should
-- /run C_LFGList.CanActiveEntryUseAutoAccept = function() return true end

Skin.InsetFrameTemplate(ApplicationViewer.Inset)
Skin.LFGListColumnHeaderTemplate(ApplicationViewer.NameColumnHeader)
Skin.LFGListColumnHeaderTemplate(ApplicationViewer.RoleColumnHeader)
Expand Down Expand Up @@ -351,6 +356,7 @@ function private.FrameXML.LFGList()
Skin.LFGListRequirementTemplate(EntryCreation.PVPRating)
Skin.LFGListRequirementTemplate(EntryCreation.MythicPlusRating)
Skin.LFGListRequirementTemplate(EntryCreation.VoiceChat)
Skin.LFGListOptionCheckButtonTemplate(EntryCreation.CrossFactionGroup)
Skin.LFGListOptionCheckButtonTemplate(EntryCreation.PrivateGroup)
Skin.LFGListMagicButtonTemplate(EntryCreation.ListGroupButton)
Skin.LFGListMagicButtonTemplate(EntryCreation.CancelButton)
Expand Down

0 comments on commit 71a7f73

Please sign in to comment.