1. #1

    Kgpanel - Change Quartz profile OnClick not working.

    Hey I have a button I created with a KgPanel that is meant to change Quartz3's (cast bar addon) Profile however it does not work.

    This is my script:
    if InCombatLockdown() then return end
    if pressed then
    if GetMouseButtonClicked() == "LeftButton" then
    ShadowUF.db:SetProfile("NewProfile")
    kgPanels:FetchFrame("2 Bar"):Hide()
    kgPanels:FetchFrame("1bar"):Show()
    kgPanels:FetchFrame("Retract"):Hide()
    Bartender4.Bar.barregistry["10"]:SetVisibilityOption("always",not Bartender4.Bar.barregistry["10"]:GetVisibilityOption("always"))
    Bartender4.Bar.barregistry["9"]:SetVisibilityOption("always",not Bartender4.Bar.barregistry["9"]:GetVisibilityOption("always"))
    kgPanels:FetchFrame("Expandbottom"):Show()
    ClassTimer.db:SetProfile("NewProfile")
    Quartz3.db:SetProfile("NewProfile")
    else
    end
    end

    The button does a number of things such as changing the profile of classtimer's and shadowed unit frames but fails to change Quartz for some unknown reason which is driving me mad. Can anyone help?

  2. #2
    Deleted
    "Quartz3" is not a global.

    Code:
    LibStub("AceAddon-3.0"):GetAddon("Quartz3").db:SetProfile("NewProfile")

  3. #3
    Oh of course, I should have known that by now lol. Thank you!

Posting Permissions

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