• 0

    posted a message on Simple list box with AceConfig?
    Quote from Niightblade
    On the subject of using an optiontable, would I need to generate a new childGroup for each item? Or just feed in a table reference?


    To answer my own question, you can just feed the optiontable a single reference to your childGroup layout. This "magic childGroup" can find out it's name by doing something like:
    ...
    name = function(info, key) return info[#info] end,
    ...
    Posted in: Ace3
  • 0

    posted a message on Simple list box with AceConfig?
    It's got ticks on each item down the left side.

    It's still a dropdown though, not what I'm looking for :)

    Posted in: Ace3
  • 0

    posted a message on Simple list box with AceConfig?
    On the subject of using an optiontable, would I need to generate a new childGroup for each item? Or just feed in a table reference?
    Posted in: Ace3
  • 0

    posted a message on Simple list box with AceConfig?
    In future I will probably want to multi-select items in the list.
    Posted in: Ace3
  • 0

    posted a message on Simple list box with AceConfig?
    Quote from yssaril
    treegroup is your only real option with AceConfigDialog (why is your list changing frequently and why is this a problem for the treegroup?)


    From memory, when I tried a childGroup before it wouldn't update unless I fed it the whole options table again, which was horrible :)

    The list will be changing often as the user adds/removes items at will.

    Quote from OrionShock
    is this list box going to act as a menu or a set of options?


    It's a simple list of spells, so I guess that's most like a single-level menu. Options for the selected spell will appear to the right. At the moment they're just in a drop-down box.
    Posted in: Ace3
  • 0

    posted a message on Simple list box with AceConfig?
    Is it possible to make a simple list box with AceConfig? Like a dropdown that's always open?

    Example on the left-side of this image:




    I experimented briefly with a childGroup in tree format, but it didn't seem to be the right tool for the job since the list will be changed frequently.

    And before someone mentions it, no, I don't want to make a GUI from scratch :)
    Posted in: Ace3
  • 0

    posted a message on PitBull 4.0
    Hi all, ;D

    Here's a little example of how to show spec using TipTac & TipTacTalents:

    local spec, entry
    for _, entry in ipairs(TipTacTalents.cache) do
        if (entry.name==Name(unit)) then
            spec=entry.tree
        else
            spec=Class(unit)
        end
    end
    
    -- Standard Pitbull4 code from here on, using our "spec" var. --
    local dr,dg,db = DifficultyColor(unit)
    local form = DruidForm(unit)
    local classification = Classification(unit)
    if UnitIsPlayer(unit) or (not UnitIsFriend(unit,"player") and not IsPet(unit)) then
      local cr,cg,cb = ClassColor(unit)
      if form then
        return "%s%s|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r (%s) %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),cr,cg,cb,spec,form,SmartRace(unit) or ''
      else
        return "%s%s|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),cr,cg,cb,spec,SmartRace(unit) or ''
      end
    else
      if form then
        return "%s%s|cff%02x%02x%02x%s|r (%s) %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),form,SmartRace(unit) or ''
      else
        return "%s%s|cff%02x%02x%02x%s|r %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),SmartRace(unit) or ''
      end
    end
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Yeah I tried AND/OR with "Mine" + "Is unknown" but doesn't work :\
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Well that's weird, because I'm using "Is Unkown" in raids right now, and it shows all boss/event auras just fine, even if someone else is targetting the boss. That's why I was trying to get "Is Mine" working with it, since the combination of the two would fufill my needs perfectly :)
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from Niightblade
    Regarding: Debuffs: show mine and boss/encounter.

    I can get it to show my debuffs using the "Mine" filter, or boss/encounter debuffs using an "Caster -> Is Unkown" filter, but I can't seem to get them to play together. I tried OR and AND but the filters seem mutually exclusive somehow.

    (I notice the "Caster -> Is Unkown" filter requires a unit ID, but I'm assuming that it is ignored?)


    Shefki if you can help me with this I promise to go away and never bother you again :)
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Regarding: Debuffs: show mine and boss/encounter.

    I can get it to show my debuffs using the "Mine" filter, or boss/encounter debuffs using an "Caster -> Is Unkown" filter, but I can't seem to get them to play together. I tried OR and AND but the filters seem mutually exclusive somehow.

    (I notice the "Caster -> Is Unkown" filter requires a unit ID, but I'm assuming that it is ignored?)
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Ok, thanks for the replies :)

    Edit: Sorry but this filter system really confuses me :( Here's what I'm trying to do:

    If enemy: Buffs: show all. Debuffs: show mine and boss/encounter.
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Ok if you can't colour-code the select control, can you include icons? A little tick or cross maybe?

    Here's a different (better?) idea than color coding or icons: Move the white/black flag to a meta page, like an operator. So for example, a list of class buffs would just be "a list", and if you wanted to hide them all, you would do something like in a meta: "Filter: ClassBuffs Type: blacklist".

    Edit: This would allow you to blacklist all class/race buffs/debuffs but let boss abilites through (which is something I've wanted forever :)) without duplicating lists everywere.

    Edit: Regarding class-filters, do you need multiple spell id's to cover downranking? Specifically, locks often use Life Tap Rank 1.
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from Shefki
    You're going to have to white list them all individually. There's no way to just detect what is a trinket proc or not inside the game. Just like all the class filters were built by hand. The only difference is me and other people who have pointed out missing things made the class filters for you.


    Ok, so should I make a custom meta that just filters out class & race buffs?

    Edit: The advanced filter system is a bit on the confusing side. Perhaps filters could be coloured by type? i.e. Green for white-list, red for black-list etc.

    Edit: Where can I submit additions to the class filters? :)
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    I would like to filter out all buffs on me except trinket/gear procs. I tried using the "Default Buffs" filter but it's filtering out procs too. I really don't want to "white list" each proc individually.

    Also, is there a way of showing guild name?
    Posted in: Unit Frames
  • To post a comment, please or register a new account.