CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on [ag_unitframes] buff/debuff timer text huge
    /threadnecromancy

    I figured out that the numbers over the buffs are not actually from ag_UnitFrames, but from CoolDownCount. I tried changing the opacity, but that did not work. Changing the Font size does work, but it makes it small for everything, not just the buffs. :/

    I just wanted to clarify that it isn't a fault of ag_UF, it's CoolDownCount which is the problem.
    Posted in: Unit Frames
  • 0

    posted a message on AG UnitFrames custom layouts
    @exviza I also was interested in getting the code for those Unit Frames. It turns out a very messy version of it was posted earlier in this thread, but I cleaned it up and slightly modified it. However, I don't know how to get the texture for the bars, nor do I have the background art (I think it might be in Discord Art, but I'm not sure if Raen strayed from the original Discord bars that those are fashioned after or not).

    Anyway, here's my simplified code for the bars. I also changed it so that only the HealthBar is linked to the Portrait. Everything works properly EXCEPT the Portrait will not show properly if the ManaBar is hidden. I'm not sure why this is, because nothing is relative to the ManaBar, except the ManaText, which is self explanatory. Anyway, if someone looks through the code and can figure out why the Portrait doesn't show if the ManaBar is disabled, I'd be very grateful!

    I also renamed this to DiscordOld, so if you copy this and are unfamiliar with writing LUA files, the file name will have to be named DiscordOld.lua and you will have to add DiscordOld to the end of the aUF_Layouts .toc file.

    EDIT: Here's a link to a screenshot I took of the current look of the Unit Frames with the Steel bar texture. Each Unit Frame is labeled. http://img135.imageshack.us/my.php?image=wowscrnshot090508124952hm9.jpg

    EDIT 2: I found out what was causing the problem and fixed it. I have updated the code here as well. The problem in the code was that under ManaBar_BG Visibility, the Portrait and the ClassText were listed there for some reason. I deleted that and fixed up some other features (XPBar_BG is now linked to the ManaBar_BG, then the HealthBar_BG so it will reposition itself properly depending on what is enabled or not). I have not tested this with Pets yet, but there is no Pet Specific code so it should function normally for that. Will update again once I test this on my Hunter.

    EDIT 3: The Pet UnitFrame works properly, just like all the other frames. Happiness displays on the HealthBar properly. Fixed one more bug where the UnitFrame's frame was not sizing properly when removing/adding bars. I have tweaked the settings so the frame only resizes with the inclusion of the XPBar, but this means there will be excess Frame beneath the HealthBar if either the ManaBar and XPBar when the Portrait is disabled... I tried several solutions and this one seemed the best (feel free to customize it to your liking, though!).

    I think this is suitably tested for being added to the Layouts, if you'd like to, Mulesh. Give it a try and tell me what you think. :)

    local L = AceLibrary("AceLocale-2.2"):new("ag_UnitFrames")
    
    aUF.Layouts.DiscordOld = {
      Name = "DiscordOld",
      Tip = "DiscordOld Tip",
      ResizeBars = false,
      BackgroundBarColor = false,
      AlphaBar = true,
      RaidColorName = false,
      PetClassName = true,
      ComboGFX = true,
      HappinessBar = true,
      Portrait = true,
      Border = "Hidden",
    
      Auras = {
       Left = {
         Point = "RIGHT",
         RelativePoint = "LEFT",
         x = 0,
         y = 0,
         GrowDirection = "left",
         Scale = 0.80,
         Alpha = 1,
       },
       Right = {
         Point = "LEFT",
         RelativePoint = "RIGHT",
         x = 0,
         y = 0,
         GrowDirection = "right",
         Scale = 0.80,
         Alpha = 1,
       },
       Above = {
         Point = "BOTTOMLEFT",
         RelativePoint = "TOPLEFT",
         x = 3,
         y = -0,
         GrowDirection = "right",
         Scale = "auto",
         AdjustAuto = 7,
         Alpha = 1,
       },
       Below = {
         Point = "TOPLEFT",
         RelativePoint = "BOTTOMLEFT",
         x = 3,
         y = 0,
         GrowDirection = "right",
         Scale = "auto",
         AdjustAuto = 7,
         Alpha = 1,
       },
       Inside = {
         Point = "TOPRIGHT",
         RelativePoint = "TOPRIGHT",
         x = -6,
         y = -6,
         GrowDirection = "left",
         Scale = 0.7,
         Alpha = 0.75,
       }
      },
      ThemeData = {
       all = {
         FrameHeight = 42,
         FrameWidth = 165,
    
         HitIndicator = {
          RelativeTo = "frame",
          Point = "CENTER",
          RelativePoint = "CENTER",
          x = 1,
          y = 1,
         },
         Combo1 = {
          RelativeTo = "frame",
          Point = "BOTTOMRIGHT",
          RelativePoint = "BOTTOMRIGHT",
          x = 1,
          y = -1,
          Height = 10,
          HeightAdd = 0,
          Width = 10,
         },
    
         HealthBar_BG =  {
          RelativeTo = "Portrait",
          Point = "TOPLEFT",
          RelativePoint = "TOPRIGHT",
          x = 1.5,
          y = -10,
    
          RelativeTo2 = "frame",
          Point2 = "TOPLEFT",
          RelativePoint2 = "TOPLEFT",
          x2 = 5,
          y2 = -15,
    
          Visibility = {"HealthBar_BG","HealthBar","BarHealthText","HealthText",},
          Height = 14,
          Width2 = 90,
          Width = 58,
          WidthFactor = 1,
         },
    
         ManaBar_BG = {
          RelativeTo = "HealthBar_BG",
          Point = "TOPLEFT",
          RelativePoint = "BOTTOMLEFT",
          x = 0,
          y = -2,
    
          Visibility = {"ManaBar_BG","ManaBar","BarManaText","ManaText"},
          Height = 5,
          Width = 90,
          WidthP = 58,
          WidthFactor = 0.96,
         },
    
         XPBar_BG = {
    		RelativeTo = "Portrait",
    		Point = "TOPLEFT",
    		RelativePoint = "BOTTOMLEFT",
    		x = 0,
    		y = -3,
    
    		RelativeTo2 = "ManaBar",
    		Point2 = "TOPLEFT",
    		RelativePoint2 = "BOTTOMLEFT",
    		x2 = 0,
    		y2 = -3,
    
    		RelativeTo3 = "HealthBar",
    		Point3 = "TOPLEFT",
    		RelativePoint3 = "BOTTOMLEFT",
    		x3 = 0,
    		y3 = -3,
    
          Visibility = {"XPBar_BG","XPBar"},
    		HeightAdd = 8,
          Width = 90,
          Height = 5,
    		WidthP = 90,
          WidthFactor = 0.96,
         },
    
         CastBar_BG = {
          Hidden = false,
    
          RelativeTo = "HealthBar_BG",
          Point = "BOTTOMLEFT",
          RelativePoint = "TOPLEFT",
          x = 0,
          y = 2,
    
          Visibility = {"CastBar_BG","CastBar","CastText","BarCastText"},
          Width = 90,
          WidthP = 58,
          Height = 10,
    
          WidthFactor = 0.96,
         },
    
         NameLabel = {
          Type = "string",
          Font = "Interface\\AddOns\\aUF_Layouts\\Fonts\\yabf.ttf",
          FontSize = 8,
          Point = "BOTTOMLEFT",
          RelativeTo = "HealthBar_BG",
          RelativePoint = "TOPLEFT",
          x = 3,
          y = 7,
    
    		Width = 40,
         },
    
         ClassText = {
          Type = "string",
          Font = "Interface\\AddOns\\aUF_Layouts\\Fonts\\yabf.ttf", 
          FontSize = 8,
          Justify = "RIGHT",
          Point = "BOTTOMRIGHT",
          RelativeTo = "HealthBar_BG",
          RelativePoint = "TOPRIGHT",
          x = -3,
          y = 7,
    
    		EndRelativeTo = "NameLabel",
    		EndPoint = "LEFT",
    		EndRelativePoint = "RIGHT",
    		Endx = 0,
    		Endy = 0,
         },
    
         HealthText = {
          Type = "string",
          Font = L["Interface\\AddOns\\ag_UnitFrames\\fonts\\barframes.ttf"],
          FontSize = 8,
          Point = "LEFT",
          RelativeTo = "HealthBar_BG",
          RelativePoint = "LEFT",
          x=2,
          y=0,
          Justify = "LEFT",
          Height = 1,
          Width = 0,
    --      WidthP = 22.5,
    --      WidthFactor = 0.55,
         },
    
         ManaText = {
          Type = "string",
          Font = L["Interface\\AddOns\\ag_UnitFrames\\fonts\\barframes.ttf"],
          FontSize = 7,
          Point = "LEFT",
          RelativeTo = "ManaBar_BG",
          RelativePoint = "LEFT",
          x= 2,
          y= -1,
          Justify = "LEFT",
          Height = 1,
          Width = 0,
    --      WidthP = 22.5,
    --      WidthFactor = 0.55,
         },
    
         CastText = {
          Hidden = true,
          RelativeTo = "CastBar_BG",
          Point = "RIGHT",
          RelativePoint = "RIGHT",
          x = -0.5,
          y = 0.5,
    
          Width = 60,
          Height = 1,
    
          Font = L["Interface\\AddOns\\ag_UnitFrames\\fonts\\barframes.ttf"],
          FontSize = 0.1,
         },
    
         BarCastText = {
    		Hidden = true,
          RelativeTo = "CastBar_BG",
          Point = "CENTER",
          RelativePoint = "CENTER",
          x = 0.5,
          y = 0.5,
    
          Width = 60,
          Height = 1,
    
          Font = "Interface\\AddOns\\aUF_Layouts\\Fonts\\yabf.ttf", 
          FontSize = 8,
          Justify = "LEFT",
    
          EndPoint = "RIGHT",
          EndRelativeTo = "CastText",
          EndRelativePoint = "LEFT",
          Endx=0,
          Endy=0,
         },
    
         PVPIcon = {
          Point = "TOPRIGHT",
          RelativePoint = "TOPRIGHT",
          x = 14,
          y= 2,
         },
    
         InCombatIcon = {
          Point = "BOTTOMLEFT",
          RelativePoint = "BOTTOMLEFT",
          x = -4,
          y= -3,
         },
    
         RaidTargetIcon = {
          Point = "RIGHT",
          RelativePoint = "TOP",
          x = 0,
          y = -3,
         },
    
         LeaderIcon = {
          Point = "TOPLEFT",
          RelativePoint = "TOPLEFT",
          x = -2,
          y= 2,
         },
    
         MasterIcon = {
          Point = "TOPLEFT",
          RelativePoint = "TOPLEFT",
          x = -5,
          y= 2,
         },
    
         Portrait = {
    		Point = "TOPLEFT",
    		RelativePoint = "TOPLEFT",
    		x = 5,
    		y = -5,
    
          Visibility = {"Portrait","PortraitModel"},
          Height = 31,
          Width = 31,
         },
       },
    
       target = {
         Portrait = {
    		Point = "TOPRIGHT",
    		RelativePoint = "TOPRIGHT",
    		x = -5,
    		y = -5,
    
          Height = 31,
          Width = 31,
          Visibility = {"Portrait","PortraitModel"},
         },
    
         HealthBar_BG =  {
          RelativeTo = "Portrait",
          Point = "TOPRIGHT",
          RelativePoint = "TOPLEFT",
          x = -1.5,
          y = -10,
    
          RelativeTo2 = "frame",
          Point2 = "TOPRIGHT",
          RelativePoint2 = "TOPRIGHT",
          x2 = -5,
          y2 = -17,
    
          Visibility = {"HealthBar_BG","HealthBar","BarHealthText","HealthText",},
          Height = 14,
          Width2 = 90,
          Width = 58,
          WidthFactor = 1,
         },
    
         ManaBar_BG = {
          RelativeTo = "HealthBar_BG",
          Point = "TOPRIGHT",
          RelativePoint = "BOTTOMRIGHT",
          x = 0,
          y = -2,
    
          Visibility = {"ManaBar_BG","ManaBar","BarManaText","ManaText"},
          Height = 5,
          Width = 90,
          WidthP = 58,
          WidthFactor = 0.96,
         },
    
         CastBar_BG = {
          Hidden = false,
    
          RelativeTo = "HealthBar_BG",
          Point = "BOTTOMRIGHT",
          RelativePoint = "TOPRIGHT",
          x = 0,
          y = 2,
    
          Visibility = {"CastBar_BG","CastBar","CastText","BarCastText" },
          Width = 90,
          WidthP = 58,
          Height = 10,
          WidthFactor = 0.96,
         },
    
         HealthText = {
          Type = "string",
          Font = L["Interface\\AddOns\\ag_UnitFrames\\fonts\\barframes.ttf"],
          FontSize = 8,
          Point = "RIGHT",
          RelativeTo = "HealthBar",
          RelativePoint = "RIGHT",
          x = -2,
          y = 0,
          Justify = "RIGHT",
          Height = 1,
          Width = 0,
    --      WidthP = 22.5,
    --      WidthFactor = 0.55,
         },
    
         ManaText = {
          Type = "string",
          Font = L["Interface\\AddOns\\ag_UnitFrames\\fonts\\barframes.ttf"],
          FontSize = 7,
          Point = "RIGHT",
          RelativeTo = "ManaBar",
          RelativePoint = "RIGHT",
          x= -2,
          y= -1,
          Justify = "RIGHT",
          Height = 1,
          Width = 0,
    --      WidthP = 22.5,
    --      WidthFactor = 0.55,
         },
       },
      }
    }
    Posted in: Unit Frames
  • 0

    posted a message on [ag_unitframes] buff/debuff timer text huge
    I have the same problem. When looking to see whether my debuffs are wearing off of a target in a party/raid, it's difficult to tell which debuffs are mine because the numbers cover the entire icon.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.