ChocolateBar Broker Display
ChocolateBar will create a bar on top or bottom of your screen where other addons called broker plugins can display stuff like your fps.
Main Features
- Easy setup, install & go!
- Multiple bars - top or bottom as many as you want.
- Left, right and center alignment.
- Support for icon colors and coordinates like used by TomTom.
- Easy config, simply drag a plugin and drop points will show. The idea is to easily disable a plugin or toggle its text. See pics.
- Load-on-demand options, and small memory footprint.
- More Chocolate - a broker plugin to show a bar that will autohide again. Great for launchers or other plugins you don't need visible all the time:)
Options for:
- Show bars on mouse over only.
- Hide bars in combat.
- Hide bars during a pet battle.
- Set a fixed width for any plugin.
- Change textures, font, colors and a lot more...
Where to get plugins?
Search for broker on CurseForge
Updated list by tekkub on Github (last update April 2021)
Usage
Right click the bar or type "/chocolatebar" to open the options menu.
How you can help
Create a pull request on Github.
You can help with the localization.
You miss a feature or found a bug? I look forward to your feedback on Github.
In reply to miarenn:
That fixed it. Thanks.
I posted this in the "issues" tab but wanted to list it here also.
I have the problem that the bottom action bar moves down "back to it's original location" during combat and after taking a flight master.
I have a top and bottom ChocolateBar.
The bottom action bar moves "back up" after leaving combat or when the flight is finished.
I have the same issue with Bazooka and Titan Panel, so I'm not sure there is anything to be done.
I like ChocholateBar over Titan panel for several reasons including: Titan Panel is thowing a lua error if I have a hunter or warlock pet out when I take a flight path. ChocholateBar does not have that problem.
Another question: How can I make the fonts bigger? I tried using the "Fonts and Textures" but I don's see any change in the size.
thanks.
Thanks, Miarenn. :)
If the message "ChocolateBar debug: ChocolateBar ChocolateBar:IsRetail() true" on logon bugs anyone else, you can comment out the line below, in two places (lines 78 and 80) by placing double dashes ("--") in front of the lines. Like this:
-- ChocolateBar:Debug("ChocolateBar:IsRetail()", ChocolateBar:IsRetail())
In reply to Selthi:
You do use a bottom bar right?
In reply to Selthi:
i also have this issue and have updated Issue 95 with my report and steps to replicate the issue
Does anyone know of a fix for Drag and Drop not working? I see others have the same issue. Any time you try and move a plugin, the entire bar disappears and only fixes after reloading, but the plugins don't move.
In reply to cursesj:
In version 3.6.13 it's still working. I rolled back and won't update anytime soon.
CUrrently on Classic BC, drag and drop is broken. Its very inconsistent, maybe one in ten times i can make it work, but usually when you grab a module, it does the color highlighting for each section, but the module does not move, and then when you release the entire bar disappears until you reload UI. no obvious error is thrown for bugsack to catch. When I try and get a screenshot it just captures it missing already.
Ran into a cpl LUA errors i thought Id drop off for the creator.
Basically if i try n move anything on the bars all the bars disappear
6x ChocolateBar\Chocolate.lua:325: Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: NamePlate1PlaterUnitFrame:GetPoint().
[string "=[C]"]: in function `GetPoint'
[string "@ChocolateBar\Chocolate.lua"]:325: in function <ChocolateBar\Chocolate.lua:307>
Locals:
(*temporary) = NamePlate1PlaterUnitFrame {
UpdateUnitFrame = <function> defined @Details\Libs\DF\panel.lua:9179
UnitFrameEvents = <table> {
}
Plater = true
ActorType = "friendlyplayer"
InExecuteRange = false
namePlateThreatOffTankIsTanking = false
OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:239
namePlateUnitReaction = 5
castBar = NamePlate1PlaterUnitFrameCastBar {
}
GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:477
IsProtected = <function> defined @Plater\Plater.lua:9790
SetUnit = <function> defined @Details\Libs\DF\panel.lua:8956
namePlateUnitGUID = "Player-4373-01C90016"
Top3DFrame = NamePlate13DFrame {
}
CustomIndicators = <table> {
}
namePlateUnitNameLower = "stimmyme"
TargetTextures4Sides = <table> {
}
targetOverlay = <unnamed> {
}
CanCheckAggro = false
ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:369
PlaterRaidTargetFrame = <unnamed> {
}
ScriptGetContainer = <function> defined @Plater\Plater.lua:9543
PlayerCannotAttack = true
SetAlphaTo = <function> defined @Plater\Plater.lua:7667
ActorNameSpecial = <unnamed> {
}
UNIT_EXITED_VEHICLE = <function> defined @Details\Libs\DF\panel.lua:9214
UNIT_CONNECTION = <function> defined @Details\Libs\DF\panel.lua:9224
aggroGlowUpper = <unnamed> {
}
OnHideWidget = <function> defined @Plater\Plater.lua:9714
UpdateHealthColor = <function> defined @Details\Libs\DF\panel.lua:9039
0 = <userdata>
OnTick = <function> defined @Details\Libs\DF\panel.lua:8929
isNamePlate = true
unit = "nameplate1"
HasHideHookRegistered = true
UnregisterEvents = <function> defined @Details\Libs\DF\panel.lua:8917
SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:301
QuestInfo = <table> {
}
HasBackdropInfo = <function> defined @SharedXML\Backdrop.lua:365
WidgetType = "unitFrame"
IsTarget = false
unitName = <unnamed> {
}
isPlayer = true
GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:275
RegisterEvents = <function> defined @Details\Libs\DF\panel.lua:8891
TargetNeonDown = <unnamed> {
}
powerBar = NamePlate1PlaterUnitFramePowerBar {
}
IsUnitNameplate = true
ExtraIconFrame = NamePlate1PlaterUnitFrameExtraIconRow {
}
ScriptRunInitialization = <function> defined @Plater\Plater.lua:9668
RefreshID = 6
namePlateUnitToken = "nameplate1"
ScriptRunOnShow = <function> defined @Plater\Plater.lua:9634
UpdateAllWidgets = <function> defined @Details\Libs\DF\panel.lua:9155
namePlateUnitName = "Stimmyme"
ScriptRunNoAttach = <function> defined @Plater\Plater.lua:9702
displayedUnit = "nameplate1"
InCombat = false
TargetNeonUp = <unnamed> {
}
IsUnitEvent = <table> {
}
IsUIParent = true
namePlateThreatPercent = 0
PlateFrame = NamePlate1 {
}
PLAYER_ENTERING_WORLD = <function> defined @Details\Libs\DF\panel.lua:9189
CheckVehiclePossession = <function> defined @Details\Libs\DF\panel.lua:9005
namePlateIsQuestObjective = false
namePlateInRange = true
HighlightFrame = NamePlate1PlaterUnitFrameHealthBarHighlightOverlay {
}
AuraCache = <table> {
}
blizzardPlateFrameID = "table: 00000123AFD99E70"
ScriptHotReload = <function> defined @Plater\Plater.lua:9595
ScriptRunOnUpdate = <function> defined @Plater\Plater.lua:9614
GetBackdrop = <function> defined @SharedXML\Backdrop.lua:434
castBar2 = NamePlate1PlaterUnitFrameCastBar2 {
}
ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:381
PARTY_MEMBER_ENABLE = <function> defined @Details\Libs\DF\panel.lua:9229
healthBar = NamePlate1PlaterUnitFrameHealthBar {
}
FocusIndicator = <unnamed> {
}
BossModIconFrame = NamePlate1PlaterUnitFrameHealthBarBossModIconRow {
}
BodyFlashFrame = <unnamed>
-----------------------------------------------------------------------
6x ChocolateBar\DragAndDrop.lua:86: attempt to index upvalue 'focus' (a nil value)
[string "@ChocolateBar\DragAndDrop.lua"]:86: in function `Stop'
[string "@ChocolateBar\Chocolate.lua"]:347: in function <ChocolateBar\Chocolate.lua:341>
Locals:
self = <table> {
Start = <function> defined @ChocolateBar\DragAndDrop.lua:67
UnregisterFrame = <function> defined @ChocolateBar\DragAndDrop.lua:63
Stop = <function> defined @ChocolateBar\DragAndDrop.lua:79
RegisterFrame = <function> defined @ChocolateBar\DragAndDrop.lua:54
}
frame = ChocolateBartender4 {
BottomLeftCorner = <unnamed> {
}
OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:239
GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:477
SetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:509
icon = <unnamed> {
}
obj = <table> {
}
text = <unnamed> {
}
SetBackdrop = <function> defined @SharedXML\Backdrop.lua:416
ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:369
GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:496
GetBackdrop = <function> defined @SharedXML\Backdrop.lua:434
bar = ChocolateBar1 {
}
SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:353
highlight = <function> defined @ChocolateBar\Chocolate.lua:355
Update = <function> defined @ChocolateBar\Chocolate.lua:300
isMoving = false
settings = <table> {
}
OnBackdropSizeChanged = <function> defined @SharedXML\Backdrop.lua:269
HasBackdropInfo = <function> defined @SharedXML\Backdrop.lua:365
Center = <unnamed> {
}
RightEdge = <unnamed> {
}
GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:275
labelText = ""
0 = <userdata>
TopEdge = <unnamed> {
}
BottomEdge = <unnamed> {
}
name = "Bartender4"
BottomRightCorner = <unnamed> {
}
TopRightCorner = <unnamed> {
}
TopLeftCorner = <unnamed> {
}
SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:301
backdropInfo = <table> {
}
SetupPieceVisuals = <function> defined @SharedXML\Backdrop.lua:333
SetBackdropColor = <function> defined @SharedXML\Backdrop.lua:486
LeftEdge = <unnamed> {
}
ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:381
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "OnUpdate"
(*temporary) = nil
(*temporary) = <userdata>
(*temporary) = nil
(*temporary) = ChocolateBar3 {
0 = <userdata>
UpdateBar = <function> defined @ChocolateBar\Bar.lua:428
GetFocus = <function> defined @ChocolateBar\Bar.lua:421
OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:239
GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:477
autohide = false
Drop = <function> defined @ChocolateBar\Bar.lua:394
UpdateColors = <function> defined @ChocolateBar\Bar.lua:121
SetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:509
UpdateStrata = <function> defined @ChocolateBar\Bar.lua:76
New = <function> defined @ChocolateBar\Bar.lua:28
EatChocolatePiece = <function> defined @ChocolateBar\Bar.lua:184
tempHide = false
chocoMostRight = ChocolateGuild {
}
chocolist = <table> {
}
ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:381
SetBackdrop = <function> defined @SharedXML\Backdrop.lua:416
ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:369
LoseFocus = <function> defined @ChocolateBar\Bar.lua:417
GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:496
GetBackdrop = <function> defined @SharedXML\Backdrop.lua:434
listCenter = <table> {
}
chocoMostLeft = ChocolateGold {
}
UpdateDragChocolate = <function> defined @ChocolateBar\Bar.lua:346
SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:353
Center = <unnamed> {
}
RightEdge = <unnamed> {
}
UpdateScale = <function> defined @ChocolateBar\Bar.lua:105
LeftEdge = <unnamed> {
}
Drag = <function> defined @Interface
While this works with TBC, add-on applications are unable to locate it. Would you please be so kind as to release a "TBC" version, so applications / people could find this wonderful add-on?
Hello. What do I need to change to stop getting debug messages about "IsRetail" on login? The retail client, of course. :)
In reply to Fringetastic:
I found them in Jostle.lua. Commented out lines 78 and 80 (by putting 2 dashes at the beginning of the lines).
If you move the bar to the bottom of your screen and lock it a little bit of the bar disappears. From what I could see it won't happen in any other circumstances. If you place the bottom edge of your bar on the top edge of something like your minimap or chat window the little part doesn't disappear
Any update for TBC?
In reply to Daeveren:
mostly works well for me but i have yet to figure out how to change the height of the bars to account for the larger font i need to use. what i think should logically change the height (bar size) only increase the font to not fit into the bar.
if anyone can help - thanks in advance
amey0
How do I get rid of this addon showing /played every time I login?
Getting error UnitInVehicle on line 135 in Jostle.lua every time I leave combat. Classic
Same there