• 0

    posted a message on Text color on a button
    Thanks, the color code in the text worked, I knew there must have been an easier way that I was missing :)

    Just for my own education, is it not possible to create a new fontobject without inheriting from an existing one?

    And if not, how do I stop the addon also recoloring everything else outside of it that uses the fontobject that I inherited from?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Text color on a button
    Hello

    I'm a noob at lua, i'm trying to get an old addon working under 3.0 and and getting quite confused with the new Button:GetNormalFontObject() and Button:SetNormalFontObject(font)

    The addon is a simple totemtimer, it just creates a button for each totem and places a timer on it - it's the timer i'm trying to color but I can't seem to get it to work, here's what I have so far (cutting the irrelevant stuff):

    local f = CreateFont("f")
    f:SetFont("Interface\\AddOns\\Blub\\fonts\\font.ttf", 12, "OUTLINE")
    
    tempFrame:SetNormalFontObject(f)
    tempFrame:SetFormattedText("%i",GetTotemTimeLeft(tempFrame.id))
    tempFrame:GetNormalFontObject():SetTextColor(0, 1.0, 0)
    


    ...which won't work - the timer appears, it just won't change color, and it tells me i'm trying to index a nil value in GetNormalFontObject

    It does work if I add this in...

    f:SetFontObject(GameFontNormal)
    


    ...to inherit settings from GameFontNormal... but for reasons that confuse me, it also recolors all aspects of the default Blizzard UI that use GameFontNormal

    Any help would be appreciated :)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Curious about CPU usage
    Thanks for the replies folks, my curiosity is now satisfied :)

    For now I'll try to see if I can do without the addon, as I said I didn't notice any real performance difference when not using the addon, but after seeing an actual number put on its CPU usage I feel the urge not to use it.. I tend to get really obsessive about numbers :)
    Posted in: General Chat
  • 0

    posted a message on Curious about CPU usage
    Hello,

    I recently returned to the game after a long break. I have a really old and creaky computer (almost 7 years old now) and was experiencing some framerate drop so I thought I'd download AddonManager and take a look at which addons might be putting excess strain on my old machine and try to cut it down a bit

    I was surprised to find that RedRange was at the top of the list (see: http://i37.tinypic.com/2upb606.jpg). I'm just curious at what this addon might be doing to have CPU usage that high - the thing I find strange is that it isn't spiky when in combat and changing targets a lot, it's constant from the moment of logging in, whether in a raid or AFK in a quiet corner with nothing nearby

    Anyway, I can't see any noticable difference between having it enabled or disabled, so I'm just looking to satisfy my curiosity :)

    thanks
    Posted in: General Chat
  • 0

    posted a message on FuBar_RogueTimerFu
    Find Weakness is indeed appearing now, but refreshing isn't working on its timer - could you apply the fix you made to SnD to it? :)
    Posted in: FuBar AddOns
  • 0

    posted a message on FuBar_RogueTimerFu
    r23376

    Find Weakness bar isn't appearing :f
    Posted in: FuBar AddOns
  • 0

    posted a message on FuBar_RogueTimerFu
    thanks, they both seem to be working fine now :)
    Posted in: FuBar AddOns
  • 0

    posted a message on FuBar_RogueTimerFu
    thank you for adding find weakness

    I am getting an error when using it;

    RulesBuff.lua:115: attempt to call method 'FW' (a nil value)

    Also, the SnD timer doesn't appear to be working correctly for me - I am getting the following buff durations;

    1CP: 4 sec
    2CP: 5 sec
    3CP: 7 sec
    4CP: 8 sec
    5CP: 9 sec

    I have 3/3 ISnD if this is relevant
    Posted in: FuBar AddOns
  • 0

    posted a message on FuBar_RogueTimerFu
    Looks great :)

    another request - could you add Find Weakness?

    edit: oops, must read ToDo

    Posted in: FuBar AddOns
  • 0

    posted a message on oRA2
    Quote from m0j0 »

    Quote from funkydude »

    heres a SS of the wierd overlap issue im getting, it also randomly sizes bars and fonts as it feels like


    also is there plans to make it a bit more customizable? like the MT frame?

    I am getting the same thing... mine is a little different in that most of the bars are not being drawn, just 1 or 2


    I'm getting the same thing with oCD and oRA2, so it would seem it is a candybar issue.
    Posted in: Raid AddOns
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Quote from archmagi »

    OOC + oUF[branches] (old)
    http://img225.imageshack.us/my.php?image=100406mf4.jpg

    In Combat + NUF (new)
    http://img183.imageshack.us/my.php?image=100506ac9.jpg


    What did you use to move your buffs to the bottom of the screen - and also the the background for them and the placement of the art in the bottom corners?

    Looks great :)
    Posted in: General Chat
  • To post a comment, please or register a new account.