main.lua 673 B

123456789101112
  1. -- http://wowprogramming.com/utils/xmlbrowser/test/FrameXML/LFGList.lua
  2. local function hook_LFGListSearchEntry_Update(self)
  3. local resultID = self.resultID;
  4. local id, activityID, name, comment, voiceChat, iLvl, age, numBNetFriends, numCharFriends, numGuildMates, isDelisted = C_LFGList.GetSearchResultInfo(resultID);
  5. --local activityName = C_LFGList.GetActivityInfo(activityID);
  6. --self.ActivityName:SetText(string.format("%s (%s)", activityName, SecondsToTime(age, false, false, 1, false)))
  7. self.Name:SetText(string.format("%s (%s)", name, SecondsToTime(age, false, false, 1, false)))
  8. end
  9. hooksecurefunc("LFGListSearchEntry_Update", hook_LFGListSearchEntry_Update);