Download
(86Kb)
Download
Updated: 08-05-22 10:23 AM
Pictures
File Info
Compatibility:
Eternity's End patch (9.2.5)
Updated:08-05-22 10:23 AM
Created:unknown
Downloads:207,404
Favorites:793
MD5:

SLDataText  Popular! (More than 5000 hits)

Version: 9.2.5
by: Taffu, snichols1122, suicidalkatt

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:

  • NEW!!! Guild: Displays current online Guild Member count, and an interactive tooltip that allows click functionality.
  • NEW!!! Friends: Displays current online Friend count, and an interactive tooltip that allows click functionality.
  • Armor: Displays current overall gear durability value as well as a tooltip that provides detailed durability information. This module also has an auto-repair feature.
  • Bag: Displays remaining & total bag space. Click interaction toggles your bags open & closed.
  • Clock: Displays selected Local or Realm time, with options for 12 & 24 hour format(s). Tooltip provides expanded time information, and click interaction toggles both the Time Manager & Calendar windows.
  • Coords: A simple map coordinate display.
  • Currency: Displays currency of your choosing based on your "discovered" currencies. Interactive tooltip provides full currency list and allows for display selection.
  • Exp: Displays experience point information, including percentage & rest percentage.
  • FPS: A simple framerate display.
  • Gold: Displays current overall Gold in long or short format, tooltip shows session-based values (Starting/Current/Earned).
  • Latency: A simple latency display.
  • Mail: A simple mail indicator inheriting the stock MinimapMailFrame tooltip.
  • Memory: Displays current UI memory usage, as well as provides click interaction for manual garbage collection and a detailed list of AddOn usage.
  • Reputation: Displays current tracked Reputation. Utilizes Blizzards built-in tracking on the Reputation pane, "XP Bar" watched Reputations will be displayed.
  • ZoneText: A simple ZoneText display with PvP-Type coloration.
Be sure to check the Other Files tab for additional modules, such as Guild, Friends, and StatLine!

Usage:
/sldt[*]Help
/sldt config[*]Toggle drag & drop/configuration mode
/sldt global[*]Open global configuration menu
/sldt <module>[*]Open module configuration menu

Note: In drag & drop/configuration mode, you can left click & drag to move modules, or right click modules to open their specific configuration menu. The Global Configuration Menu has global options such as font & sizes that carry over into the modules, as well as profile options and tooltip scaling for LibSLTip tooltips.

Special Thanks: I originally wrote this AddOn a long time ago, and have taken extended breaks from WoW at which time suicidalKatt & snichols1122 both made contributions to keep the AddOn up to date and functional so people could continue to use it. I just want to give them a big "Thanks" for doing so, their efforts are much appreciated!

V9.2.5 **snichols1122 update**
August 5th, 2022
-Toc Bump
-Fixed LibSLTip-1.0 Lua Error involving Friends and Currency Modules
V9.0.2
November 21st
-Toc Bump
V9.0.1.2
October 16th, 2020
-Community fixed Friends Module
-Adjusted the justification of each module to not overlap
-Updated Library Files
V9.0.1
October 15th, 2020
-Fixed Guild Module
-Disabled Friends module
-Community Fixed background issues
-Updated Toc
--Looking into friends module see whats broken about it
V8.3
May 17th, 2020
-Fixed Zone Module and moved it up
-Updated Toc
V8.2 - **snichols1122 update**
September 26th, 2019
-Disabled Friends Module until fixed
-Update Toc

V8.2 - **snichols1122 update**
June 25th 2019
-Update Toc
V8.1 - snichols1122 update
December 16th, 2018[*]Added Heart of Azeroth Module--made by lotac[*]Updated Blizzard Version in Toc
v8.0.2 -- *suicidalkatt update
  • Internal LibStub Library LibSLTip-1.0 updated to minor revision 13. Addressing issue with SmartAnchor and screen resolution function calls.
  • Mail module updated to address issue of "Mail! Mail!" text when mail count is missing.
  • Mail module updated to address issue with playsound calls when AH mail comes in.
  • Guild module no longer attempts to change tabs on a depreciated frame.
  • Friends module now closes the tooltip on button press. Additional changes are needed for character invites.

July 29th, 2018--*snichols1122 update
-Fixed Guild Tab lua errors where they removed tabs in the API
July 22nd, 2018--*snichols1122 update
-Fixed Mail Lua Error
July 19th, 2018--*snichols1122 update
-Fixed Elements Not hiding properly
July 18th, 2018--*snichols1122 update
-TOC Updated to Patch 8.0.1
-Ace3 Libs Updated
-Reworked Clock, Guild, and Reputation Module to quit Throwing up LUA Errors and work with the new API

July 5, 2018 - v7.3.5 *snichols1122 update*
-Fixed Armor element should operate fully functional now

October 17, 2014 - v6.0.01 -- * Suicidal Katt update *
-ToC Updated to 6.0.2 patch
-Ace3 Libs updated.
-Guild and Friends modules have now been included into the addon (localizations updated).
-Guild module and Friends modules have been drastically improved, welcome back class colors!


October 21, 2012 - v5.0.41 -- * Suicidal Katt update *
-Minor bugfix with Clock module.

October 20, 2012 - v5.0.4 -- * Suicidal Katt update *
-The 'am / pm' with custom time will now be correct with the realm time checkbox. Addressed the hour correct to not change '20' and '10' to '2' and '1' respectively.
-Fixed the upper limit for the 'exp' module.

October 15, 2012 - v5.0.3 -- * Suicidal Katt update *
-Updated Ace Library as well as LibSharedMedia.
-Huge rewrite for the clock module:
  • Added additional toggle for "Custom Time Format", previously the custom string was only used if realmTime was not used.
  • Added additional toggle for "Military Time" and added support for the db value 'format24'.
  • Fix: Custom Time formatting will use class colors if used and will lowercase the am/pm for any instance of %p throughout the string.
  • Fix: 'hourCorrect' will now work on any instance of %H or %I throughout the string.
  • Fix: Realm Time will now toggle between local and realm time for both custom strings and default formatting.
  • Added 'getLocalTime()' function to allow formatted text for local time.

September 2st, 2012 - v5.0.2
-Adjustment made to configuration slash command methods (thanks free_nme) to help locale issues

September 1st, 2012 - v5.0.1
-Changed max width of SLTip to 380px due to BattleTags being added to Friend module
-Update credit to WoWI user "IMulch" for fixes with Friend module and width update suggestion

August 30th, 2012 - v5.0.0
-Fixed issue with Clock module drag movement during configuration mode
-Version updated to latest WoW build

July 13th, 2012 - v.4.3.6
-Added additional cushion between double line tooltips for readability.
-Adjusted time formatting in clock tooltip for world PVP zones.
-Finalized and added Guild Fund use in armor repair.

May 26th, 2012 - v.4.3.5
-Fixed error with reputation tooltip when not tracking
-Mail module will show "Mail!" instead of 0/0 on icon mode counts with mail at login
-Exp module no longer shortens XP values at 1k, instead at 10k
-Fixed error with Exp module, rest xp no longer gives nil error when exhausted

May 2st, 2012 - v.4.3.4b
-Fixed error with "zhTW" localization file encoding

May 2st, 2012 - v.4.3.4a
-Updated "zhTW" localization

May 1st, 2012 - v.4.3.4
-Added "Reset Player Data" to Gold module
-Added new Reputation module
-Tweaked LibSLTip to ensure text line color works

April 10th, 2012 - v.4.3.3
-Updated Coords to increase update frequency
-Removed Coords interval option
-Updated LibSLTip, increased button highlight visibility, inherits game tooltip, added scale to options
-Updated Clock Module, added Tag style selection

April 1st, 2012 - v.4.3.2
-Added profile option for reseting current profile to default
-Added profile option to delete existing profiles

February 1st, 2012 - v.4.3.1
-Added "Tag/Text Display" feature to applicable modules
-Added deDE.lua locale file with starter translations (Thanks Noomcl)

January 29th, 2012 - v.4.3.0
-Added toggle for Mail module alert sound
-Added manual selection of Currency module display in it's config menu

January 28th, 2012 - v.4.2.9
-Bag module now has a "Text Line" option with tags for Total, Used, and Remaining space.
-Config Mode Tooltips now offset from the frames for better placement visualization.

January 23rd, 2012 - v.4.2.8a
-Bag issue with localization and options fixed (oops)
-Suffix & Prefix customization added to applicable modules

January 23rd, 2012 - v.4.2.8
-Localization finished
-ruRU and frFR localizations added (apologies for bad translations!)

January 14th, 2012 - v.4.2.7
-Localization has been started
-Clock now reflects world PVP information
-Frame Strata now works properly (thanks jeffy162)
-Currency module now truncates the currency title on the display (not on the tooltip)
-Display pulse is now a global call to the core, all modules can now highlight pulse using the :Pulse(name, boolean) API.

January 8th, 2012 - v.4.2.6
-Turning off tooltips ensures frame click-through now.
-Calendar Invites Pulse has returned to the clock module.
-Clock now reflects the proper minutes for realm time.
-Exp module should update properly and more consistently now.
-Enabling/Disabling modules should no longer affect their menu visibility.
-Enabling/Disabling modules should have a larger impact on memory usage now.

January 3nd, 2012 - v.4.2.5
-Updated handling of frame anchors when using SLDT modules as the parent anchor.

January 2nd, 2012 - v.4.2.4
-Updates to primary LibSL library.
-Updates to core/element interaction.
-Fixed issue with clock options not showing properly in the menu.

December 31th, 2011 - v.4.2.3
-Updates to primary LibSL library.

December 30th, 2011 - v.4.2.2
-Updated how adding modules is handled internally.

December 24th, 2011 - v.4.2.1
-Tweaked ZoneText coloring method, black text 'should' be gone.
-Tweaked combat fade speed and functionality so text doesn't partially disappear sometimes.
-Changed method of realm time fetching, hopefully our minute zero's come home.
-Module frames can now be used as parent using "SLDT_<modulename>".

December 23th, 2011 - v.4.2.0
-4.2 is a Beta overhaul release of the upcoming 5.0 package for Mists of Pandera

December 18th, 2011 - v.4.1.1
-Should avoid errors with AceTimer calls with Guild List Module now

December 11th, 2011 - v.4.1.0
-Updated with SuicidalKatt's Cata Fan Update
-Re-versioned to 4.1.0

February 8th, 2011 - v.4.0.6
-Fixed error with Clock Wintergrasp tooltip timer
-Added Tol'Barad timer to Clock tooltip

October 21st, 2010 - v.4.0.5
-Fixed Currencies module not showing the tracked currency after relog
-Fixed Clock module ignoring disable

October 20th, 2010 - v4.0.4
-Currencies module can now track everything
-Fixed a bug if u had 0 honor

October 19th, 2010 - v4.0.3
-Changed Honor module into Currencies

October 19th, 2010 - v4.0.2
-Fixed Bnet friends not updating correctly
-Fixed Friend Refresh bug again (maybe)

October 17th, 2010 - v4.0.1
-Added Tracking module again
-Fixed Friend module not loading properly sometimes (hopefully)

October 15th, 2010 - v4.0.0
-Removed Tracking
-Disabled Arena till Cataclysm
-Updated for 4.0
-Fixed some bugs

September 14th, 2010 - v3.3.21
-Fixed Bnet friend invite

September 13th, 2010 - v3.3.2
-Fixed Friend Notes
-Added Officer Notes

September 6th, 2010 - v3.3.1
-Fixed SC2 Support (forgot some lines of code there :o)

September 5th, 2010 - v3.3.0
-Added RealID Support

May 31st, 2010 - v3.2.5
-Fixed GameTimeFrame option in Clock Module, removed Calender checks
-Fixed Mail Module, no longer shows weird notes & totals
-Added "Outline" option to global font options, enabling heavy outlines per request

March 29th, 2010 - v3.2.4
-Fixed "You are not in a guild." spam.
-Added single Marks of Honor turn in.

March 9th, 2010 - v3.2.3
-Fixed Coords bug
-Fixed Honor, not loading and updating Currencys properly
-Fixed Arena bug

March 7th, 2010 - v3.2.2
-Fixed Gold reset function
-Added Arena Module (Shows arena points gained from a team)

March 6th, 2010 - v3.2.1
-Gold Module saves gold based on faction aswell.
-Added Honor Module (Shows Starting Honor, Honor gained in the session and calculates honor you could get by turning in your Marks of Honor/ Stone Keeper's Shard)

March 6th, 2010 - v3.2
-Fixed ZoneText bug
-Fixed Profile change messing up all setting
-Added automatic refresh to the Guildmod
-Added support for 50+ mails

June 28th, 2009 - v3.1.4
-Added Guild Bank funding option to AutoRepair feature on Durability module (Thanks to Dewer)
-Added German (deDE) locale reference for color in Guild & Friend List modules (Thanks to soddi)

June 15th, 2009 - v3.1.3
-Memory Module fixed

June 15th, 2009 - v3.1.2
-Modules that were no longer updating after In Combat hiding have remembered their jobs, should no longer be failing to update

May 25th, 2009 - v3.1.1
-Calendar Invitation Pulse added to Clock module
-Clock module tooltip enhanced to include Wintergrasp timer
-Clock module tooltip enhanced to include calendar Month, Day, and Year
-Bag module should now recognize & count Soul Shards even without a Soul Bag

May 19th, 2009 - v3.1.0
-Added Auto Repair feature to Durability module
-Enhanced combat hide/show feature to include a fade in and fade out (fancy!)

April 22nd, 2009 - v3.0.0
-Updated TOC
-Removed Calendar, Statline, and Exp modules
-Added feature to wipe Gold stats (see config menu)
-Fixed Locale issue that would cause an error on Login/Reloadui

December 4th, 2008 - v2.1.6
-Added Chinese locales (credit to Digmouse)
-Adjusted graphic background on Calendar modules "pulse" alert for pending invites
-Added Friends & Guild class locales (credit to Digmouse)

November 12th, 2008 - v2.1.5
-Memory/Usage issue taken care of
-Cleaned up some addition lose ends, stability is much better

November 8th, 2008 - v2.1.4
-Memory "trimming" added
-Mail no longer has two PLAYER_ENTERING_WORLD handlers, will work right now
-Tweaks to GuildList & FriendList modules for more accurate updates
-Secondary Text added to Memory module again
-Font selection for individual modules is now fixed and working properly

November 8th, 2008 - v2.1.3a
-Typo in Mail module causing error when closing a mailbox fixed

November 8th, 2008 - v2.1.3
-Module load order has been rebuilt to fix anchoring issues on login/reloadui
-Class color option for global color (toggle)
-Chinchilla issue should be fixed (DT: function wasn't valid, fixed this)

November 7th, 2008 - v2.1.2
-Modules with disable problems are fixed (ZoneText, Gold, etc.)
-Shift+Click on clock will toggle the calendar again
-GameTimeFrame is now associated to the Calendar module
-Clock module can "force hide" the GameTimeFrame when Calendar is disabled
-I took the studded belt out and taught Statline how to work properly ;-)

November 7th, 2008 - v2.1.1
-Rewrite back into some Ace Libs
-Shift+Click on name in FriendsList tooltip opens Friend Note window
-Global color adjustment (no forced class colors)
-Reworked the Memory module

October 28th, 2008 - v2.10
-Converted to AceLocale-3.0 Lib to handle translations

October 28th, 2008 - v2.09
-Slash commands no longer localized (attempt to fix menu issue)

October 27th, 2008 - v2.08
-Continuing fixes for SLDT_Locale.lua file and locale integration.

October 26th, 2008 - v2.07
-Added class locale tables to Guild & Friends modules to fix problem with locale
translations and the class colors not functioning correct.

October 25th, 2008 - v2.06
-Added locale tables, German is translated (thanks Mordog). AddOn should function, but require translation, on other Locales.

October 20th, 2008 - v2.05
-Clock will now "pulse" a glowing border when you have pending calendar invites
-Stability with enabling/disabling modules that effect Blizzard elements fixed
-deDE German table added to SLDT_Locale.lua, but not translated (coming soon)

October 19th, 2008 - v2.04
-Tooltips for FriendList and GuildList modules back to normal (without scale)
-Durability should update properly now
-I found the "0" in Server Time minutes wandering a dark alley, brought him home

October 18th, 2008 - v2.03
-Further attempt to fix Chinchilla Location Frame issue

October 18th, 2008 - v2.02
-Handles hiding Chinchilla "Location Frame" when ZoneText enabled
-Memory will force lightweight memory assessment when higher than 30mb
-GuildList & FriendList Tooltip scaling added

October 13th, 2008 - v2.00
-SLDT full release for 3.0/WotLK compatibility

July 14th, 2008 - v1.15
-Memory module will update on load now, instead of requiring a mouseover

June 2nd, 2008 - v1.14
-Removed dependency of Abacus library
-Attempt to fix Memory glitch by using gcinfo() instead of collectgarbage("count")

May 13th, 2008 - v1.13
-Updated Abacus to fix parsing for currency

April 11th, 2008 - v1.12
-Fixed problem with ZoneText not properly updating

April 11th, 2008 - v1.10 and v1.11
-Added ZoneText and Coords plugins
-Applied Digmouse's fixes for the zhCN and zhTW Colors.lua file

April 10th, 2008 - v1.02
-Additional locale information added for plugins
-Colors.lua table adjustments to support client information
-Core adjustments for new Colors.lua
-"Profiles" added - buggy and needs tweaking, but functioning
-Click functionality on Guild List fixed when columns are hidden
-Tooltip adjustments on Memory module to attempt to stem off lag problems

-Added localization for classes in the Color.lua file, and a localization check in the Friend & Guild List tooltip to avoid errors thrown when retrieving class colors for the tooltip lists.
Post A Reply Comment Options
Unread 08-29-16, 10:13 PM  
Furydeath
A Kobold Labourer

Forum posts: 1
File comments: 7
Uploads: 0
RiP awesome mod
Report comment to moderator  
Reply With Quote
Unread 08-18-16, 11:12 AM  
Darkalex90
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Any chance to see this addon updated for Legion? I really loved it
Report comment to moderator  
Reply With Quote
Unread 05-26-16, 11:29 AM  
skmzarn
A Defias Bandit

Forum posts: 3
File comments: 24
Uploads: 0
Update: Does anyone know how to change the code so the Friends module tooltip will only create an extra line for player's notes if there is actually a note given for that specific player? Now it says: "Note: " for players that have no note given. Thanks!

Originally Posted by skmzarn
Originally Posted by Wipeowt
Originally Posted by skmzarn
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.

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.
It works! That's all I care about. Thank you very much!
Report comment to moderator  
Reply With Quote
Unread 04-09-16, 01:10 PM  
skmzarn
A Defias Bandit

Forum posts: 3
File comments: 24
Uploads: 0
Originally Posted by Wipeowt
Originally Posted by skmzarn
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.

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.
It works! That's all I care about. Thank you very much!
Report comment to moderator  
Reply With Quote
Unread 04-05-16, 12:52 PM  
Wipeowt
A Murloc Raider

Forum posts: 4
File comments: 10
Uploads: 0
Originally Posted by skmzarn
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.

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.
Report comment to moderator  
Reply With Quote
Unread 04-05-16, 11:16 AM  
skmzarn
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"
Report comment to moderator  
Reply With Quote
Unread 04-05-16, 09:17 AM  
Wipeowt
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.
Report comment to moderator  
Reply With Quote
Unread 03-26-16, 06:54 PM  
Cholea
A Kobold Labourer
 
Cholea's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 1
Uploads: 1
Guild an Friendoption dosen't work pls help.
Report comment to moderator  
Reply With Quote
Unread 03-25-16, 05:52 PM  
minstrel
A Kobold Labourer

Forum posts: 0
File comments: 36
Uploads: 0
Re: 6.2.4 fix

Originally Posted by diet_coke_dude
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
Hmm, doing that (there was one instance each of BNGetFriendToonInfo and BNGetNumFriendToons, but not BNGetToonInfo) made the module re-appear with the right number, but it still doesn't show the list on mouseover. Is the mouseover behavior working for you?
Report comment to moderator  
Reply With Quote
Unread 03-24-16, 11:27 AM  
diet_coke_dude
A Kobold Labourer
 
diet_coke_dude's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
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
Report comment to moderator  
Reply With Quote
Unread 02-08-16, 03:09 PM  
Mightyconan
A Kobold Labourer
 
Mightyconan's Avatar

Forum posts: 0
File comments: 50
Uploads: 0
Re: Currency module

Originally Posted by Reima
Hi, I just downloaded this update and for the currency module, I am unable to select any currency for display. I have attached a screenshot. Appreciate if you could assist me on this.

This is the same problem I'm getting as mentioned below.
Report comment to moderator  
Reply With Quote
Unread 02-08-16, 02:34 PM  
Mightyconan
A Kobold Labourer
 
Mightyconan's Avatar

Forum posts: 0
File comments: 50
Uploads: 0
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.
Report comment to moderator  
Reply With Quote
Unread 10-27-15, 11:54 PM  
KubiCzek
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
Report comment to moderator  
Reply With Quote
Unread 10-03-15, 07:26 PM  
Mirrikh
A Flamescale Wyrmkin
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 111
File comments: 74
Uploads: 3
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",
Report comment to moderator  
Reply With Quote
Unread 07-16-15, 03:37 PM  
Abbadon9
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.