Do you find big DataBroker panels slightly too sturdy or would you fancy something small on the side as well? Introducing Candy for your candybar sized DataBroker modules.
Candy adds singular customizable displays for DataBroker modules.
- The bars are small and freely movable to wherever you need them, making highly customized layout simple for any interface.
- Visibility of the bars can be automatically toggled based on group status, instance status, modifier keys and custom callbacks.
- The DataBroker output text can also be modified with custom callbacks.
Custom callbacks
Custom callbacks are simple calls to Lua functions.
Text callback
Text callback function receives one parameter: text. It expects a new string (text or number allowed) as return that will be used for display.
Example:
Returns reverse text:
return string.reverse(text);
Visibility callback
Visibility callback function receives two parameters: text (with color information stripped) and icon. It expects a boolean or nil as return (true is visible).
Examples:
Toggles visibility based on if player has reached maximum level:
return UnitLevel("player") == GetMaxPlayerLevel();
Toggles visibility based on durability number displayed:
local durability = tonumber(strmatch(text, "(%d+)")) or 0; return durability <= 50;
Usage
To begin using Candy you need to create the bars. You can do that by opening the options menu by typing /candy or /cd.
Editing per-bar settings is only possible when bars are unlocked. When they are unlocked you can move bar with left mouse button and open options drop down menu with right mouse button. Global settings that apply to all bars at once can be changed from the main options window.
Any plans for the pre patch? For me at least is one of the MUST have addons:-)
In reply to Galthariel:
I don't think the addon needs an update (beyond version bump), probably works fine if you set it to load out of date addons.
In reply to Sonaza:
Hi Sonaza,
I use Broker_Everything with Candy. I use to Mouse Over any of the brokers such as Class Specs, Volume, Currency, etc. to show me what I want to see (e.g. Currency) or or want to do such as Class Specs which with the Mouse Over will give me the option to change my spec. Isn't working right now. Right click and left click is working as usual so I really don't know if the issue is with Candy or Broker_Everything. Another LDB that isn't working now with Candy is Outfitter and that one has nothing to do with Broker_Everything.
In reply to Galthariel:
Candy is literally only a display window that has no dependencies to things that usually change with expansions (because if they changed 100% of addons would need rewriting). It only uses the most basic frame and event APIs and any Broker data source addons that do not work with it are broken because they're broken, not because Candy is. Candy is just displaying some text and an icon and feeding back inputs.
In reply to Sonaza:
Got it and makes sense meaning the issue is indeed with Broker_Everything. Thanks a lot for your time in replying my question and of course for Candy. I do love it :-)
Loving the addon
would be useful to have a Candy button for Candy itself
Nice addon; two suggestions for configuration of the bars:
1. A way to set background and opacity of each bar - the data, for me, is hard to read with a fully transparent background.
2. A way to set width and height of each bar - this allows the creation of some padding between each data bar making them easier to read when they are attached together.
Thanks!
Been a while but I just updated the addon and added these features in :) Though only the width can be modified for now.
Thanks for classic version!
Great work! This addon shows real promise as the successor to the venerable (although still functional) Fortress. If you are looking for features to crib from or be inspired by, please look there.
https://www.wowace.com/projects/fortress
I think the custom lua option is my new favorite!
If anyone wants, here is how to validate true only if you are max level (so hide the bar until you hit max level). I use broker world quests and I really don't want to disable the addon nor remove the bar so I made it to only show if I hit max level
return UnitLevel("player") == GetMaxPlayerLevel();
which translates to return true if you character's level is equal to 110
I like this, but does it not work with other data brokers? I can only see built in brokers,
Candy should display all the DataBroker modules that have been registered with the LibDataBroker. It doesn't have any built in modules, you need to download separate Broker addons for data sources, like Broker Everything.
I don't have LibDataBroker installed. Didn't know I'd need it for this one. I'll DL it and see what happens, thanks.
Love it!
Would also love the option to control the opacity of the tooltip background. :)
You mean the tooltip when hovering a broker module? TipTac is a good addon for that.
If you mean colorizing the background of the broker modules itself, I've been thinking of adding that.
Oh does that mean offering alpha control based on combat situations or does it already do that and I just didn't notice? Would love to have something like a settings option slider for opacity then a toggle on the bars themselves to enable combat fading. I don't think per bar combat fading would be necessary but then again I like simple ;)
Yeah, it was an error with my tooltip addon which was causing the tooltip backgrounds to be transparent. Should have realized that. Sorry!
Love your addons and this is a great update to databroker displays. Simple and it works.