• 0

    posted a message on Bartender4 - Official Topic
    Quote from ladyofdragons
    I know that you can use macro commands in custom conditionals. I'm wondering if it's possible to inherit properties from another frame.

    Basically, I want to setup a condition to show/hide based on the current shown/hidden status of my Archy Dig Sites frame. The intention is to put survey, mount, Archaeology and an insta-cast spell all one bar in the middle of my screen, but have it disappear when I'm not surveying (when I hide Archy).

    Is this something Bartender can do? I know it's possible in the UI because KGPanels can hook into a frame and become a child of it, so it inherits the same visibility status. If BT4 could do this I would be overjoyed! I love it and it hasn't let me down yet...

    Feedback/suggestions welcome!


    If you're already using kgPanels, why not have a kgPanel that hooks all three functions into one?
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Quote from dyaeblca
    I'd like to show/hide an addon that recycles frames (so they can only be accessed as variables), there is no normal frame name etc. Is it possible with kgpanels?


    What's the addon and what are the conditions under which it shows or hides its own frames?

    EDIT: Didn't notice how long my necro reached back. Sorry for that.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Quote from vbnm247
    Hi all. First of all apologies for asking for what is bound to be a simple script but it is a script I have not been able to find anywhere.

    All I am looking to do is use a script on 2 different panels. One of these panels is to only be visible when solo, the other is to only be visible when in a group with 1 other or more. I dont need either to resize, or anything complex, just to show or hide when required.

    No doubt this will be a simple script for those that can do it but I have looked and googled and have not found it. I have found scripts for a lot of other more complex uses but not for this.

    I am currently making my way through this large and informative thread. Currently on page 40, I will keep reading but I am afraid it will either not be ther due to it being simple or I might have missed it due to my noobness with scripting.

    So any advice or tips or scripts for these 2 panels would be very greatly appreciated!

    P.S Been using kgp for a while and want to say thanks for a great addon. I have had no problems with this but have never been any good with scripting! thanks again :)


    My thought would be to test for the existence of party1 which is always the first person in the group. Your OnUpdate (or OnEvent depending on how you set up your OnLoad calls) would be something like this:

    --For the panel you want to show in party
    if UnitExists("party1") ~= nil then
    self:Show()
    else
    self:Hide()
    end

    --For the panel you want to show when solo
    if UnitExists("party1") ~= nil then
    self:Hide()
    else
    self:Show()
    end


    Syntax might not be 100%, but I blame that on the copious amounts of afternoon scotch I've had and the fact that I'm drycoding without testing (mostly the scotch though).
    Posted in: General AddOns
  • To post a comment, please or register a new account.