1st version

This commit is contained in:
Sergio Álvarez 2015-07-05 14:57:59 +02:00
parent 196553d9d2
commit f025f3e3e7
3 changed files with 30 additions and 0 deletions

6
PremadeAge.toc Normal file
View File

@ -0,0 +1,6 @@
## Interface: 60200
## Title: PremadeAge
## Author: Gio
## Version: 1.0
main.lua

12
README.md Normal file
View File

@ -0,0 +1,12 @@
# PremadeAge
Display the age of a group in the LFG list.
![Image](http://i.imgur.com/h5aWpcv.png)
## Links
- [Curse](http://www.curse.com/addons/wow/premadeAge)
- [CurseForge](http://wow.curseforge.com/addons/premadeAge)
## TODO
- none

12
main.lua Normal file
View File

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