HideOrderHallBar
Hides the Order Hall Command Bar
Resources can be tracked in the Currency / Tokens tab
MoveAnything (16.0.9) is updated for the OrderHallCommandBar
- If you want to fade it on mouseover there is DejaOHFader
- Bazooka, Titan Panel and ChocolateBar have options to hide it
For anyone who still needs this functionality for 8.0.1, Leatrix Plus will do it.
https://www.curseforge.com/wow/addons/leatrix-plus
/ltp
Frames: Hide order hall bar
Please update
cu cardo_
any chance we get an update for 8.0?
In reply to shhfiftyfive:
Broken in 7.3. The bar is back
Seems to have stopped working with 7.3
Seems like HideOrderHallBar breaks some functionality of C_Garrison and thus also breaks some addons that use the API such as OrderHallCommander.
For example: https://wow.curseforge.com/projects/orderhallcommander/issues/11
My guess would be that Blizzard coded some initialisation stuff when the OrderHallCommandBar is first shown. As the addon interrupts that process, some of the initialisation is not executed.
HideOrderHallBar disabled:
Dump: value=C_Garrison.GetClassSpecCategoryInfo(4)
[1]={
[1]={
limit=3,
description="Low-ranking among the elemental hierarchy, lesser elementals overwhelm their foes with sheer, unending numbers.",
name="Lesser Elementals",
count=3,
icon=1396645,
classSpec=97
},
[2]={
limit=1,
description="Proficient air shamans act as a living conduit for the elements, wrapping themselves in the fury of the tempest as they become an Air Ascendant.",
name="Ascendants",
count=1,
icon=1396660,
classSpec=139
},
[3]={
limit=2,
description="\"It proves difficult for your enemies to defeat you when you command the very ground on which they stand.\" - Geomancer Jakara",
name="Earthen Ring Geomancers",
count=2,
icon=1401884,
classSpec=98
}
}
HideOrderHallBar enabled:
Dump: value=C_Garrison.GetClassSpecCategoryInfo(4)
[1]={
}
You guessed right, it looks like C_Garrison requires calling RequestClassSpecCategoryInfo() first before GetClassSpecCategoryInfo() would properly return information
https://github.com/Gethe/wow-ui-source/blob/live/AddOns/Blizzard_OrderHallUI/Blizzard_OrderHallCommandBar.lua#L94
Maybe the author of OrderHallCommander could call that if GetClassSpecCategoryInfo() doesn't return anything, or if it detects HideOrderHallBar is loaded. Otherwise I'll have to add that in somewhere
Tickets were off since I didn't think there would be any problems with just hiding the bar :x
@Ketho,
I think it would be a good idea to call the method from your addon.
I guess simply adding the following line to the addon would suffice (right after b:Hide())
That way, other potential addons that use C_Garrison won't need to be aware of the existence of your addon.
I agree, try the latest alpha
https://www.wowace.com/projects/hideorderhallbar/files/2370758
But I'm not sure if it's a proper fix, re-registering the events for RefreshCategories
and RequestCategoryInfo would maybe do that. I'm interested in your feedback
https://github.com/Gethe/wow-ui-source/blob/live/AddOns/Blizzard_OrderHallUI/Blizzard_OrderHallCommandBar.lua#L72-L86
You are probably right to re-register some of the events, for completeness.
RefreshCategories() seems to be just about refreshing the icons on the OrderHallCommandBar and basically just for visualization. As your addon's goal is to hide it, I don't see a reason to call this method.
Calling RequestCategoryInfo() should indeed be done whenever the data itself changed, and that is when order hall talents change (introduction of a new follower type or added perks on existing ones). However, this happens very rarely and whilst added for completeness, it won't have any significant impact.
So basically these 2 events:
* GARRISON_TALENT_COMPLETE
* GARRISON_TALENT_UPDATE
Why the Blizzard code listens to UNIT_PHASE makes no sense to me unless it is meant as a replacement for PLAYER_ENTERING_WORLD. I don't see a reason to make that call, unless the data of C_Garrison is reset upon entering world (or even upon phasing). Not sure unless we can see the code of C_Garrison. If that's the case (but how can we be sure of that?) I would also listen to UNIT_PHASE.
The more I think about this, the more I feel that C_Garrison's codebase (and internal logic) is flawed and that we should take it up with Blizzard as a bug.
Seems good. Only thing I'd change is to register the UnitEvent instead of event.
see https://github.com/Gethe/wow-ui-source/blob/live/AddOns/Blizzard_OrderHallUI/Blizzard_OrderHallCommandBar.lua#L34
You forgot Murphy's law: If something can go wrong, it will do :D
Anyway, adding the initialization call to my OrderHallCommander is trivial but I discovered that sometimes C_Garrison.GetClassSpecCategoryInfo returns empty data even for me which never used your addon. I didnt investigate yet but I suppose TitanBar could have some relation with it.
Making things short, I changed the way I discover all troop types, reverting to a follower list scan. Less elegant but more consistent.
50 dkp minus blizz. best addon ever.
Would you consider including an option to also hide the order hall report button? Been trying to find a way to hide it for days, but no joy :(
I could probably upload a separate addon for the order hall report button; there are also alternatives like HGarri and Garrison Micro Button
MoveAnything doesn't seem to include the GarrisonLandingPageMinimapButton
Omg thank you for the links!
Thanks for the addon! :D
Where do I go to see all the stuff the bar lists?