This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Bartender profile switching macro
Post Reply
Return to board index
Post by
Mugzly
I'm using bartender and quartz in my UI. however, i have different profiles for normal walking around and raids.
Is there a way to change profiles for each addon in one macro?
Post by
Wanderingfox
Yes, there is, but it's going to be completely dependent on the addon. That means you're going to have to open up the code, find the function that sets what profile is being used (as well as the function that updates the addon with the new profile if applicable) and then fire those functions manually from your macro inside of /run scripts.
Post by
Mugzly
ty wanderingfox. sounds a bit above my skill level when it comes to coding though.
anyone know the functions that bartender and quartz use to set profiles and update them?
Post by
Wanderingfox
Looking at Quartz (sorry, don't use bartender), it would be something like:
/run Quartz:SetProfile("TheExactNameOfTheProfileYouWantToChangeTo")
/run Quartz:ApplySettings()
NOTE:
That is a
PURE
guess just from quickly looking over the source code. I'm also assuming a few things (mainly that aceDB-2.0 functions similarly to aceDB-3.0). Also, that call to ApplySettings may or may not be needed (didn't really look into whether Quartz is watching for profile changes made from outside the addon or not).
Like I said above, this is
completely
dry-coded, so don't blame me if it tanks your profiles. I'm just trying to illustrate the kind of thing you'd have to do.
It's also probably worth noting that it might actually be something like Quartz.db:SetProfile("string") rather than Quartz:SetProfile("string"). Like I said I just glanced around the code quickly.
Post by
ncwowkin
This question was asked a whole four years ago... but if anyone runs across it, as I did...
For Bartender, it's
/bt profiles choose PROFILE
where PROFILE is the name of the profile you want to switch to.
Post by
235245
This post was from a user who has deleted their account.
Post by
finnishboy
I´m new to Bartender4. I need marco for showing the bar 2 only when i have fishing pole equipped.
The bar has my fishing hat and the skil cast lure.
Can someone help me? pls
Post by
quthar
/bt > Bar 2 > Visibility
Check "Use Custom Condition" and paste this into the text box:
show; hide
In the future please make a new thread instead of bumping one from 10 years ago.
Post by
Xururuca
bartender profile chose macro overrides anything you changed from the orjinal one. I suggest you guys use this for safer profile copy.
/bt profiles copyfrom Name - Realm
Post by
margathon
yeah do this if you want to destroy the profile you're currently on, great idea
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.