1. #1

    Only show Panel when a Certain Bartender Profile is active?

    What I want to do is enable a KgPanel when a bartender Profile is active. This can only work for profiles as I'm using the same action bars. Its hard to explain but is this possible to do?

    ---------- Post added 2012-04-12 at 10:24 AM ----------

    I also want to be able to check if a bartender profile is active or not so I can do something similar to this:

    if pressed then
    if GetMouseButtonClicked() == "LeftButton" then
    if Bartender4.db("<profilename>") is active then
    Bartender4.db:SetProfile("<New Profile>")
    kgPanels:FetchFrame("<New Panel>"):Show()

    Hopefully that helps to explain what I want to do

  2. #2
    Deleted
    Code:
    if Bartender4.db:GetCurrentProfile() == "<profilename>" then

  3. #3
    Been trying to find that one part (GetCurrentProfile) for hours now. Thank you!

    ---------- Post added 2012-04-12 at 02:53 PM ----------

    Also I have another problem. The other day you helped me out with this: http://www.mmo-champion.com/threads/...ender-profiles

    I needed to use Quartz for a profile switch using this:
    Quartz3.db:SetProfile("2x9Cast")

    As I found out the LibStub name here:
    local Quartz3 = LibStub("AceAddon-3.0"):GetAddon("Quartz3")
    local L = LibStub("AceLocale-3.0"):GetLocale("Quartz3")
    local media = LibStub("LibSharedMedia-3.0")

    And this is the error message I got:
    Message: [string "IncreaseBar_OnClickDown"]:6: attempt to index global 'Quartz3' (a nil value)

    So it can not recognize it for some reason. I have no idea why though. Can you or anyone else help with this?

  4. #4
    Deleted
    Thats very odd that Quartz3 doesn't work. Maybe another addon is conflicting with it? Try disabling every addon except KgPanels and Quartz and see if that makes a difference.

  5. #5
    No that didn't work. Its not too much of a big deal but would of been a lot better if I could of got Quartz3 to work. Thank you anyway.

  6. #6
    Deleted
    It's a local - you can't use the variable itself outside its scope (Quartz.lua).

    However:
    Code:
    LibStub("AceAddon-3.0"):GetAddon("Quartz3").db:SetProfile("2x9Cast")
    should do the trick.

  7. #7
    Thank you once again Treeston, that worked perfectly. Now my UI is finally completed exactly how I wanted it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •