• 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from andreasg »

    Hey! I just added a new option today. You can now control the width of the frames, instead of just the scale.

    The width option allows you to set the absolute width of the frame in points/pixels whatever it is. This only works for the ABF theme at the moment though, as the system requires the theme to be 100points wide, and ABF is the only theme I've modified. So feel free to modify the other themes to 100point width and commit them.


    Yay !!!

    Thanks much Andreasg !!!
    Posted in: Unit Frames
  • 0

    posted a message on Server Status
    Thanks Cladhaire and the Ace Team for their hard work.

    /bow
    /salute
    Posted in: General Chat
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from Delsphynx »

    Quote from Docta »

    can someone tell me which part of .lua code, I need to change to change the color of the frame's background?  right now its transperant black color but I changed my unit frame color to black so its hard to see. I want to change the background to a white color.


    Hey Docta,

    If you go to the matts-hosting link, go to branches, then to the agUF section, and in that there will be a folder for Delsphynx.  It's a branch I did that has the border stuff in it.  It's a few revision older though, so if you use any of the stuff that has been fixed since then that stuff won't be in it, but you are more than welcome to test it (and give me feedback etc.) 

    The only thing I haven't dug in to yet is why setting the background frame opacity to 1 doesn't result in a completely black background - there is still some transparency.  I haven't just had a chance to dig in to why that is yet (and if anyone wants to enlighten me, even better :) )


    Its due to using "Interface\\Tooltips\\UI-Tooltip-Background" as the background texture since it originally is semi transparent so no matter how opaque you set it, it will still be semi transparent.

    To make it completely opaque there's 2 thing you need to change:

    1. Got to line 43 and 48 of ag_Defaults.lua and change the a = 0.5 to a = 1 to set the alpha to full opaque.

    2. Got to line 494 of ag_UnitClass.lua and replace "Interface\\Tooltips\\UI-Tooltip-Background" to "Interface\\CharacterFrame\\UI-Party-Background"

    Save all changes and do a reload UI. Your background should be opaque now ;p

    If you need to change the background from black to white, change:

    	PartyFrameColors = {
    		r = 0,
    		g = 0,
    		b = 0,
    		a = 1},
    	TargetFrameColors = {
    		r = 0,
    		g = 0,
    		b = 0,
    		a = 1},


    to

    	PartyFrameColors = {
    		r = 1,
    		g = 1,
    		b = 1,
    		a = 1},
    	TargetFrameColors = {
    		r = 1,
    		g = 1,
    		b = 1,
    		a = 1},
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from Tanque »

    Quote from Tanque »

    I noticed a bug with the PvP icon. It doesn't go away even after your flag cooks off.

    Also, the focus bar in the pet windows is colored yellow like a rogue's energy bar instead of the orange color of focus.


    Does anyone else notice these bugs or do I have an older build? I'm currently using r11954


    Not sure about the pvp icon display but for the pet focus color you can change that by typing /aguf config and under bar color change it to your liking.
    Posted in: Unit Frames
  • 0

    posted a message on Detox
    Quote from mahiro »

    im using detox for a while now there are 2 things i noticed (you may already be aware of them)
    -when the livelist is locked i cant click on the debuffs to dispell:/
    -when there are a lot of debuffs in the livelist and i klick a lot on the debuffs, sometimes the livelist gets bound to the mousecursor and i have to /reloadui to get rid of it.
    mfg mahiro




    For question 1, its a limitation in the function used to display the livelist.

    For 2, yeah i get that too if i spam the list lol. You can't click on anything when this happens and as mentioned only a reloadui works to clear it. I've since tried to use the keybind more lol.
    Posted in: General AddOns
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from Ayanne »

    @ Grimnir: This is EXACTLY how I want my frames to perform! Where do I add that string of code to get   that to work?


    Look for the first occurrance of "self.UnitInformation = {" then insert the following code after it:

        ["smartpercentmana"] = function (u)
            if UnitIsDeadOrGhost(u) or (not UnitIsConnected(u)) then
                return ""
            else
                if UnitPowerType(u) == 0 then
                    mp = floor((UnitMana(u)/UnitManaMax(u))*100).."%"
                    return mp
                else
                    mp = UnitMana(u).."/"..UnitManaMax(u)
                    return mp
                end
            end
        end,
        ["smartmana"] = function (u)
            if UnitPowerType(u) == 0 then
                 mp = UnitMana(u).."/"..UnitManaMax(u)
                 return mp
            else
                 return ""
            end
        end,


    Then on your frame Status Text select custom and insert [smartmana]     [smartpercmana] into the editbox. You might need to change your frame/statusbar width and health/mana text width to be longer inside the layout folder of that layout lua file.
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    @grimnir

    Glad it all worked out for ya. If there's any abnormalies, you might want to add a "local mp" before the "if UnitPowerType(u) == 0 then" part for both tags seeing as i didn't declare them O_o
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    @grimnir

    Ok from you latest post, you will need 2 modified mana display tag (1 which i posted earlier for the % part). Now for the curmana/maxmana and percentmana for mana user else currage/maxrage part do the below:

    ["smartmana"] = function (u)
        if not UnitPowerType(u) == 0 then
           return ""
        else
           mp = floor((UnitMana(u)/UnitManaMax(u))*100).."%"
           return mp
        end
      end,


    So in your case you need to use [smartmana] [smartpercmana] (the one i posted earlier) instead of the current tags you are using.
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from Mimesis »

    is there a [raidgroupnumber] format tag? i couldn't see one in the lua, can we get one please?


    There isn't an official one yet but you can see how to set it up from this post. Basically copy the code into the ag_Unitframe.lua and use the [raidgroup] tag.

    http://www.wowace.com/forums/index.php/topic,1715.1020.html (near to the bottom part)
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from grimnir »

    Thanks, not quite what I'm looking for though, basicly I have for my custom text for mana:
    [curmana]/[maxmana] [percentmana]%
    So it looks like this:


    This is what I want for the top frame that has mana, but it looks strange on the bottom frame with rage, or a rogue with energy. What I want to do basicly is have it so that it would be if the unit has mana use:
    [curmana]/[maxmana] [percentmana]%
    if the unit does not use mana only use:
    [curmana]/[maxmana]
    So it would be like an if unit has mana use this custom text layout, if it doesn't use mana, use this other custom text layout.


    What i did was created a custom tag called [smartpercmana], you insert the code i posted inside the ag_Unitframes.lua file and then use [smartpercmana] instead of [percentmana]%. It should do what u asked for.
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from grimnir »

    My question is does anyone a way that I can keep it show % and cur/max for mana, but detect when the unit is a warrior, rogue, or pet with energy and just show the ##/100 and not the %?
    Perhaps someone has a bit of code I can add in to do this or something, any help is appreciated.


    Try the below code and see if its what u needed. This is meant for the second percentage part.

      ["smartpercmana"] = function (u)
        if UnitIsDeadOrGhost(u) or (not UnitIsConnected(u)) then
          return ""
        else
          if not UnitPowerType(u) == 0 then
            mp = UnitMana(u).."/"..UnitManaMax(u)
            return mp
          else
            mp = floor((UnitMana(u)/UnitManaMax(u))*100).."%"
            return mp
          end
        end
      end,
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from andreasg »

    Quote from maximoz »

    Quote from andreasg »

    Whenever a text break into two lines, it is a bug. It isn't supposed to do that. I don't know exactly how to fix it though...


    I think you are looking for this:

    frame:SetNonSpaceWrap("True")


    I think I already have that stuff on (look in the XML file)


    Hmmm maybe i miss something but the only nonspacewrap settings found in the xml file are set the false ?
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from andreasg »

    Whenever a text break into two lines, it is a bug. It isn't supposed to do that. I don't know exactly how to fix it though...


    I think you are looking for this:

    frame:SetNonSpaceWrap("True")
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from Cahir »

    Quote from Larona »

    isnt that implemented?


    alt-left the frame -> Status Text -> Health Text -> Style -> Custom
    alt-left the frame -> Status Text -> Health Text -> Custom:
    enter: [missinghp] [curhp]/[maxhp] ([percenthp])


    Mh yea, but then [percenthp] is below [curhp]/[maxhp] on the unitframe. I want them side by side =/


    You need to increase the width of the healthtext to be more in the layout folder of that particular layout you are using.
    Posted in: Unit Frames
  • 0

    posted a message on ag_UnitFrames (Release 7/19/2006) alpha version
    Quote from Micmac »

    Fixed. I was using the raid group code someone posted here and while it did show the raid group # correctly, my target would bug out as mentioned above. Would love to have the ability to see my raid group # as well as target if possible. I use perfect raid sorted by class so its a pain to go to my raid panel everytime I wanna see what group someone is in.


    Well didn't realise some would want to display raidgroup numbers on their target frames ;p

    Anyway try the below and see if it helps:

      ["raidgroup"] = function (u)
        if (GetNumRaidMembers() == 0) then
          return ""
        else
          if UnitInRaid(u) then
            for i=1, MAX_RAID_MEMBERS do
              if (i <= GetNumRaidMembers()) then
                local name, rank, subgroup = GetRaidRosterInfo(i)
                -- Set the player's group number indicator
                if (name == UnitName(u)) then
                  return "("..subgroup..")"
                end
              end
            end
          else
            return ""
          end
        end
      end,


    Basically added a check to make sure the target is in the raid ;p
    Posted in: Unit Frames
  • To post a comment, please or register a new account.