Go to Page... |
Compatibility: | Eternity's End patch (9.2.5) |
Updated: | 08-05-22 10:23 AM |
Created: | unknown |
Downloads: | 208,143 |
Favorites: | 791 |
MD5: |
Simple Light Data Text v9.0.2
SLDataText is a lightweight addon based on text based modules, which can be moved & customized independently or globally. It includes LibSharedMedia support for expanded font selection, and various degrees of mouse click interaction on various module frames. It also supports user-created plug-ins to expand on the module selection beyond what is included in this package. Plug-ins can be as vast or as tiny as desired. Included is are custom libraries (LibSL-1.0 and LibSLTip-1.0) that are used for module configuration menu management and interactive tooltips.
Each module can be positioned independently via dragging and placement can be fined tuned via the configuration menu. Fine tuning includes manual frame anchoring, text justification, X/Y value tweaking, and frame strata value.
Each module has an independent configuration menu, and the AddOn has a global menu to handle unified font types & sizes. The following modules are contained in this package:
Comment Options |
08-29-16, 10:13 PM | |
A Kobold Labourer
Forum posts: 1
File comments: 7
Uploads: 0
|
RiP awesome mod
|
|
Furydeath |
View Public Profile |
Send a private message to Furydeath |
Find More Posts by Furydeath |
Add Furydeath to Your Buddy List |
08-18-16, 11:12 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 7
Uploads: 0
|
Any chance to see this addon updated for Legion? I really loved it
|
|
Darkalex90 |
View Public Profile |
Send a private message to Darkalex90 |
Find More Posts by Darkalex90 |
Add Darkalex90 to Your Buddy List |
skmzarn |
View Public Profile |
Send a private message to skmzarn |
Find More Posts by skmzarn |
Add skmzarn to Your Buddy List |
04-09-16, 01:10 PM | |||
A Defias Bandit
Forum posts: 3
File comments: 24
Uploads: 0
|
|
||
|
skmzarn |
View Public Profile |
Send a private message to skmzarn |
Find More Posts by skmzarn |
Add skmzarn to Your Buddy List |
04-05-16, 12:52 PM | ||
A Murloc Raider
Forum posts: 4
File comments: 10
Uploads: 0
|
I've updated the code in my post below so it may hopefully work for you now. It works fine for me, but as I say, it is just a hack around. |
|
|
Wipeowt |
View Public Profile |
Send a private message to Wipeowt |
Find More Posts by Wipeowt |
Add Wipeowt to Your Buddy List |
04-05-16, 11:16 AM | |
A Defias Bandit
Forum posts: 3
File comments: 24
Uploads: 0
|
You will see the amount of friends now, but you cannot interact, then you'll get an error.
That code doesn't help the fact that you cannot get the mouseover tooltips showing. If I try, I get this error: Code:
2x SLDataText\Elements\friends-Friends.lua:61: bad argument #5 to 'format' (string expected, got nil) [C]: in function `format' SLDataText\Elements\friends-Friends.lua:61: in function <SLDataText\Elements\friends.lua:11> Locals: (*temporary) = "|cffecd672%s|r | |cffecd672%s|r (|cff%s%s|r)" (*temporary) = "|Kf29|k000000|k" (*temporary) = "Hello#1234" --I censored the battletag that was here (*temporary) = "ffffff" (*temporary) = nil (*temporary) = "string expected, got nil" |
|
skmzarn |
View Public Profile |
Send a private message to skmzarn |
Find More Posts by skmzarn |
Add skmzarn to Your Buddy List |
04-05-16, 09:17 AM | |
A Murloc Raider
Forum posts: 4
File comments: 10
Uploads: 0
|
Replace all the code in "World of Warcraft\Interface\AddOns\SLDataText\Elements\Friends.lua" with the following. Bit of a hack that should fix things for now....
Code:
--[[ SLDataText Module: Friends ]] --[[ Author: Taffu (Update by Dream) RevDate: 05/04/2016 Version: 1.0.5 ]] local addon, ns = ... local SLDT, MODNAME, SLT, L = SLDataText, "Friends", LibStub("LibSLTip-1.0"), ns.L if ( SLDT ) then SLDT.Friends = CreateFrame("Frame") end local db, frame, text, tool, tip local friendList, BNetList, friendsOn = {}, {}, 0 local function SetupToolTip() tool:SetScript("OnEnter", function(this) tip = SLT:GetTooltip("SLDT_Friends", true) SLT:AddHeader("SLDT_Friends", L["Friend List"], string.format("%s: %i", L["Friends Online"], friendsOn)) for k, v in pairs(friendList) do local name, lvl, class, area, status, note = v[1], v[2], v[3], v[4], v[5], v[6] --NOTE: Editing this out until Blizz lets classFileName become available @ Friend API level if ( class and class == "Death Knight" ) then class = "DEATHKNIGHT" else class = string.upper(class) end local cCol = string.format("%02X%02X%02X", RAID_CLASS_COLORS[class].r*255, RAID_CLASS_COLORS[class].g*255, RAID_CLASS_COLORS[class].b*255) local lineL = string.format("%s |cff%s%s|r %s", lvl, cCol, name, status or "") --local lineL = string.format("%s %s %s", lvl, name, status or "") local lineR = string.format("%s", area or "") local buttonFunc = function(self, button) if ( IsAltKeyDown() ) then InviteUnit(name) else SetItemRef("player:"..name, "|Hplayer:"..name.."|h["..name.."|h", "LeftButton") end end SLT:AddDoubleLine("SLDT_Friends", lineL, lineR, nil, nil, true, buttonFunc) if ( note and db.showNote ) then local noteLine = string.format(" - %s: %s", L["Note"], note) SLT:AddLine("SLDT_Friends", noteLine, nil) end end if ( select("#", BNetList) >= 1 and select("#", friendList) >= 1 ) then SLT:AddLine("SLDT_Friends", L["BNet Friends"]) SLT:AddSpacer("SLDT_Friends") end if ( BNetList and select("#", BNetList) >= 1 ) then for k, v in pairs(BNetList) do local BNid, BNname, battleTag, toonclass, toonname, client, status, broadcast, note = v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9] if ( toonclass and toonclass == "Death Knight" ) then toonclass = "DEATHKNIGHT" else toonclass = string.upper(toonclass) end local cCol if toonclass == "" then cCol = "ffffff" else cCol = string.format("%02X%02X%02X", RAID_CLASS_COLORS[toonclass].r*255, RAID_CLASS_COLORS[toonclass].g*255, RAID_CLASS_COLORS[toonclass].b*255) end if toonname == nil then toonname = "App" end local lineL = string.format("|cffecd672%s|r | |cffecd672%s|r (|cff%s%s|r)", BNname, battleTag, cCol, toonname) local lineR = string.format("%s%s", status or "", client or "") local buttonFunc = function(self, button) if ( IsAltKeyDown() ) then if ( client == "WoW" ) then InviteUnit(toonname) end else local nameLine = string.format("%s : %s", BNname, BNid) SetItemRef("BNplayer:"..nameLine, "|Hplayer:"..nameLine.."|h["..nameLine.."|h", "LeftButton") end end SLT:AddDoubleLine("SLDT_Friends", lineL, lineR, nil, nil, true, buttonFunc) if ( note and db.showNote ) then local noteLine = string.format(" - Note: %s", note) SLT:AddLine("SLDT_Friends", noteLine, nil) end end end SLT:AddFooter("SLDT_Friends", L["ClickDesc"], nil) SLT:AddFooter("SLDT_Friends", L["AltClickDesc"], nil) if ( friendsOn > 0 and not InCombatLockdown() ) then SLT:ShowTooltip("SLDT_Friends", frame) end end) tool:SetScript("OnLeave", function(this) SLT:ClearTooltip("SLDT_Friends") end) tool:SetScript("OnMouseDown", function(this, button) ToggleFriendsFrame(1) end) end function SLDT.Friends:Enable() if ( db.enabled ) then self:RegisterEvent("FRIENDLIST_UPDATE") self:RegisterEvent("BN_FRIEND_ACCOUNT_ONLINE") self:RegisterEvent("BN_FRIEND_ACCOUNT_OFFLINE") self:SetScript("OnEvent", function() self:Refresh() end) end self:Refresh() end function SLDT.Friends:Disable() if ( not db.enabled ) then self:UnregisterEvent("FRIENDLIST_UPDATE") self:UnregisterEvent("BN_FRIEND_ACCOUNT_ONLINE") self:UnregisterEvent("BN_FRIEND_ACCOUNT_OFFLINE") end self:Refresh() end function SLDT.Friends:Refresh() if ( db.enabled or SLDataText.db.profile.configMode ) then if ( not self.firstRun ) then self.firstRun = true; SLDT:UpdateBaseText(self, db) end friendList, BNetList, friendsOn = {}, {}, 0 for i = 1, GetNumFriends() do local name, lvl, class, area, online, status, note = GetFriendInfo(i) if ( online ) then friendsOn = friendsOn + 1 friendList = friendList or {} table.insert(friendList, { name, lvl, class, area, status, note }) end end for j = 1, BNGetNumFriends() do local BNid, BNname, battleTag, _, toonname, toonid, client, online, lastonline, isafk, isdnd, broadcast, note = BNGetFriendInfo(j) if ( online ) then local _, _, _, _, _, _, race, toonclass, unknown, zoneName, level, gameText, broadcastText, broadcastTime = BNGetFriendGameAccountInfo(j, BNGetNumFriendGameAccounts(j)) friendsOn = friendsOn + 1 if (not battleTag) then battleTag = "[noTag]" end friendList = friendList or {} local status = "" if ( isafk ) then status = L["(AFK)"] end; if ( isdnd ) then status = L["(DND)"] end table.insert(BNetList, { BNid, BNname, battleTag, toonclass, toonname, client, status, broadcast, note }) end end local txstr = string.format("|T%s:0|t ", "Interface\\Icons\\Inv_cask_04") text:SetFormattedText("%s|cff%s%s:|r %s", db.showIcon and txstr or "", SLDT.db.profile.cCol and SLDT.classColor or "ffffff", L["Friends"], friendsOn) SLDT:UpdateBaseFrame(self, db) else if ( frame:IsShown() and not SLDataText.db.profile.configMode ) then frame:Hide() end end end SLDT.Friends.optsTbl = { [1] = { [1] = "toggle", [2] = L["Enabled"], [3] = "enabled" }, [2] = { [1] = "toggle", [2] = L["Global Font"], [3] = "gfont" }, [3] = { [1] = "toggle", [2] = L["Outline"], [3] = "outline" }, [4] = { [1] = "toggle", [2] = L["Force Shown"], [3] = "forceShow" }, [5] = { [1] = "toggle", [2] = L["Tooltip On"], [3] = "tooltipOn" }, [6] = { [1] = "toggle", [2] = L["Show Icon"], [3] = "showIcon" }, [7] = { [1] = "toggle", [2] = L["Show Note"], [3] = "showNote" }, [8] = { [1] = "range", [2] = L["Font Size"], [3] = "fontSize", [4] = 6, [5] = 40, [6] = 1 }, [9] = { [1] = "select", [2] = L["Font"], [3] = "font", [4] = SLDT.fontTbl }, [10] = { [1] = "select", [2] = L["Justify"], [3] = "aP", [4] = SLDT.justTbl }, [11] = { [1] = "text", [2] = L["Parent"], [3] = "anch" }, [12] = { [1] = "select", [2] = L["Anchor"], [3] = "aF", [4] = SLDT.anchTbl }, [13] = { [1] = "text", [2] = L["X Offset"], [3] = "xOff" }, [14] = { [1] = "text", [2] = L["Y Offset"], [3] = "yOff" }, [15] = { [1] = "select", [2] = L["Frame Strata"], [3] = "strata", [4] = SLDT.stratTbl }, } local function OnInit() SLDT.Friends.db = SLDT.db:RegisterNamespace(MODNAME) SLDT.Friends.db:RegisterDefaults({ profile = { name = "Friends", enabled = true, showNote = false, aP = "CENTER", anch = "UIParent", aF = "CENTER", xOff = 0, yOff = -72, strata = "LOW", gfont = false, fontSize = 12, font = "Arial Narrow", outline = false, tooltipOn = true, forceShow = false, showIcon = true, }, }) db = SLDT.Friends.db.profile SLDT:AddModule(MODNAME, db) frame, text, tool = SLDT:SetupBaseFrame(SLDT.Friends) SetupToolTip() SLDT.Friends:UnregisterEvent("PLAYER_ENTERING_WORLD") SLDT.Friends:Enable() end if ( IsAddOnLoaded("SLDataText") ) then SLDT.Friends:RegisterEvent("PLAYER_ENTERING_WORLD") SLDT.Friends:SetScript("OnEvent", OnInit) end
Last edited by Wipeowt : 04-05-16 at 12:51 PM.
|
|
Wipeowt |
View Public Profile |
Send a private message to Wipeowt |
Find More Posts by Wipeowt |
Add Wipeowt to Your Buddy List |
03-26-16, 06:54 PM | |
|
Guild an Friendoption dosen't work pls help.
|
|
Cholea |
View Public Profile |
Send a private message to Cholea |
Find More Posts by Cholea |
Add Cholea to Your Buddy List |
03-25-16, 05:52 PM | ||
A Kobold Labourer
Forum posts: 0
File comments: 37
Uploads: 0
|
Re: 6.2.4 fix
|
|
|
minstrel |
View Public Profile |
Send a private message to minstrel |
Find More Posts by minstrel |
Add minstrel to Your Buddy List |
03-24-16, 11:27 AM | |
|
6.2.4 fix
i still use this awesome addon and 6.2.4 broke the friends module.
I'm not a coder at all I simply made this change and it seemed to work (I don't know if there are any other side effects) Go To ...AddOns\SLDataText\Elements Open Friends.lua with a Text Editor and Replace: Code:
BNGetToonInfo -> BNGetGameAccountInfo BNGetFriendToonInfo -> BNGetFriendGameAccountInfo BNGetNumFriendToons -> BNGetNumFriendGameAccounts |
|
diet_coke_dude |
View Public Profile |
Send a private message to diet_coke_dude |
Find More Posts by diet_coke_dude |
Add diet_coke_dude to Your Buddy List |
02-08-16, 03:09 PM | ||
|
Re: Currency module
|
|
|
Mightyconan |
View Public Profile |
Send a private message to Mightyconan |
Visit Mightyconan's homepage! |
Find More Posts by Mightyconan |
Add Mightyconan to Your Buddy List |
02-08-16, 02:34 PM | |
|
Re: Currency module
Hiya, fantastic addon, but for reasons I can't figure out, my currency addon doesn't work right (even after flushing the savedvariables). 90% of the time it doesn't show the tooltip when i mouseover, therefore i can't change the currency displayed. If i go into config mode, to manually change it with the drop-down box, it simply offers the currency option of "None". On random occasion it will work on an alt but its not consistent.
|
|
Mightyconan |
View Public Profile |
Send a private message to Mightyconan |
Visit Mightyconan's homepage! |
Find More Posts by Mightyconan |
Add Mightyconan to Your Buddy List |
10-27-15, 11:54 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 4
Uploads: 0
|
Hello. Modul "Currency" not working when im not in a guild. Some hints please ? Love this addon really long time
|
|
KubiCzek |
View Public Profile |
Send a private message to KubiCzek |
Visit KubiCzek's homepage! |
Find More Posts by KubiCzek |
Add KubiCzek to Your Buddy List |
10-03-15, 07:26 PM | |
|
For all those who are trying to change the global font, but are having no luck, this is how I did it.
Go into the WTF file and find the profile you want to change the text for. Then add in this bit of code: Code:
["gFont"] = "font name", |
|
Mirrikh |
View Public Profile |
Send a private message to Mirrikh |
Visit Mirrikh's homepage! |
Find More Posts by Mirrikh |
Add Mirrikh to Your Buddy List |
07-16-15, 03:37 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Guild List Fix
Hi Folks,
As of 7-16-2015 my guild list portion of this add-on was broken, it would not show up at all (the SLDT Guild text) and I was experiencing a delay in game when trying to bring up the guild list through the regular wow menu. Here is how to get it working again. Find this file: World of Warcraft\Interface\AddOns\SLDataText_Guild\SLDataText_Guild.lua Open it to edit it. Search for this ", GetGuildLevel()" and remove it. [must remove the comma as well] [This function has been removed by wow, see: http://wowprogramming.com/docs/api/GetGuildLevel] Save the file. Reload your UI. Fixed. EDIT: Here is how you can remove the () that shows up after your guild's name when you mouse over. EDIT Open the file as above. Look for this: "SLT:AddHeader("SLDT_Guild", string.format("%s (%s)", guildName or L["No Guild"], guildLevel or ""), guildMotto)" Remove the highlighted (red) portion above. Save the file. Reload the UI. Gone. I love this add-on and this was driving me crazy. I hope this helps someone. PS: I know this leaves some unnecessary code in the .lua file by not removing the other instances of the guildLevel reference but I don't code lua and just wanted it to work again.
Last edited by Abbadon9 : 07-16-15 at 03:55 PM.
|
|
Abbadon9 |
View Public Profile |
Send a private message to Abbadon9 |
Visit Abbadon9's homepage! |
Find More Posts by Abbadon9 |
Add Abbadon9 to Your Buddy List |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.