Quantcast
Download
(12 Kb)
Download
Updated: 11/18/21 10:09 PM
Pictures
File Info
Compatibility:
Deadlands (7.2.5)
Updated:11/18/21 10:09 PM
Created:11/18/21 10:09 PM
Monthly downloads:1,637
Total downloads:3,932
Favorites:1
MD5:
7.2.5
LibFilteredChatPanel
Version: 1.0.0
by: Kyzeragon [More]
LibFilteredChatPanel is a library mostly intended for addon authors. It provides a movable/resizable/toggleable chat panel to display whatever (potentially spammy) messages from addons. Useful if you're like me and enjoy having a verbose log of many in-game events from but don't want your actual chat box to fill up with spam or your HUD to fill up with a bunch of different boxes.

Each created filter can be toggled on and off by the user, similar to logging levels. Users can right click on the timestamp to duplicate the line to the text field for copying. Typing in the text field and hitting ENTER will send messages to the "Player" filter, perhaps for taking notes without bothering other people?

Library Usage
It is recommended to use this library as an optional dependency and still fall back to regular chat output if the library is not enabled.

Creating a filter:
Code:
-- name - a unique name for the filter, probably your addon name
-- icon - path of the icon to use as a button in the header of the panel
-- color - default color of the text
-- showIcon - whether to prefix each line of text with your icon
local myFilter = LibFilteredChatPanel:CreateFilter("MyAddonName", "/esoui/art/champion/champion_icon.dds", {0.5, 0.8, 0.8}, false)
Printing to the filter:
Code:
-- text - the message to print
myFilter:AddMessage("Hello world!")
The "System" filter by default does not print anything on its own, but you may find it useful to put some categories of output there instead of your own filter. For example, for my own debugging purposes, I hook into CENTER_SCREEN_ANNOUNCE.QueueMessage and output the text from there to my System filter.
Code:
local systemFilter = LibFilteredChatPanel:GetSystemFilter()
Depends on: LibAddonMenu-2.0

Possibly planned features:
- Left click to copy text only (currently right click copies formatting too)
- Parameter for icon scaling
Post A Reply Comment Options
Unread 11/19/21, 01:04 PM  
Kyzeragon
 
Kyzeragon's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 177
Uploads: 8
Originally Posted by Baertram
Thanks for the info. I was not saying your addon is not of use. Sorry if this sounded that way!
Just was curious what the difference is, without having to "read your code", as it looked "quite familiar" to me

A hint for the future: We (devs) hang out here often:
https://gitter.im/esoui/esoui/
If you plan new libs (and are not only doing it to learn lua but to provide addon development/debugging/filtering/other re-usable purposes) have a quick chat. You can login with different credentials, e.g. Github.
Often reduces duplicate work, reinventing the wheel, and provides new insights/ideas + collaborations.
Oh, no worries I didn't take it that way at all. Yeah I had taken a peek in gitter before but promptly forgot about it Maybe I'll remember to check there first next time heh
Report comment to moderator  
Reply With Quote
Unread 11/19/21, 11:16 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 3824
File comments: 4710
Uploads: 70
Thanks for the info. I was not saying your addon is not of use. Sorry if this sounded that way!
Just was curious what the difference is, without having to "read your code", as it looked "quite familiar" to me

A hint for the future: We (devs) hang out here often:
https://gitter.im/esoui/esoui/
If you plan new libs (and are not only doing it to learn lua but to provide addon development/debugging/filtering/other re-usable purposes) have a quick chat. You can login with different credentials, e.g. Github.
Often reduces duplicate work, reinventing the wheel, and provides new insights/ideas + collaborations.

Originally Posted by Kyzeragon
Originally Posted by Baertram
Interesting idea but sounds somehow like DebugLogViewer (based on LibDebugLogger) to me, which also provides "filters" (the loggers of the addons) and groups them into these filters + subfilters (info, debug, error, verbose).
Provides a search and include/exclude toggles for the loggers.
Also tracks d() messages.
Or is this different to your library here?

No system messages so far but therefor we got the chat's system chat option, which e.g. pChat (and othrs I think too) enable at the chat options, if you right click a tab.
Hmm yes, it does sound like DebugLogViewer... however I wasn't aware that addon existed lol. I took a look through it and seems my library is somewhere in between the log viewer and the quick log, i.e. has more options than and is more "intrusive" than the quick log, but has fewer options than and is less "intrusive" than the log viewer.

Ah well, I've already coded it and will continue to use it since it's tailored for my own purposes anyway, just figured I would share it. Maybe other authors will find a use for it, maybe they won't
Report comment to moderator  
Reply With Quote
Unread 11/18/21, 11:02 PM  
Kyzeragon
 
Kyzeragon's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 177
Uploads: 8
Originally Posted by Baertram
Interesting idea but sounds somehow like DebugLogViewer (based on LibDebugLogger) to me, which also provides "filters" (the loggers of the addons) and groups them into these filters + subfilters (info, debug, error, verbose).
Provides a search and include/exclude toggles for the loggers.
Also tracks d() messages.
Or is this different to your library here?

No system messages so far but therefor we got the chat's system chat option, which e.g. pChat (and othrs I think too) enable at the chat options, if you right click a tab.
Hmm yes, it does sound like DebugLogViewer... however I wasn't aware that addon existed lol. I took a look through it and seems my library is somewhere in between the log viewer and the quick log, i.e. has more options than and is more "intrusive" than the quick log, but has fewer options than and is less "intrusive" than the log viewer.

Ah well, I've already coded it and will continue to use it since it's tailored for my own purposes anyway, just figured I would share it. Maybe other authors will find a use for it, maybe they won't
Last edited by Kyzeragon : 11/18/21 at 11:05 PM.
Report comment to moderator  
Reply With Quote
Unread 11/18/21, 10:43 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 3824
File comments: 4710
Uploads: 70
Interesting idea but sounds somehow like DebugLogViewer (based on LibDebugLogger) to me, which also provides "filters" (the loggers of the addons) and groups them into these filters + subfilters (info, debug, error, verbose).
Provides a search and include/exclude toggles for the loggers.
Also tracks d() messages.
Or is this different to your library here?

No system messages so far but therefor we got the chat's system chat option, which e.g. pChat (and othrs I think too) enable at the chat options, if you right click a tab.
Last edited by Baertram : 11/18/21 at 10:46 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: