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?
- Registered User
Member for 11 years, 4 months, and 16 days
Last active Fri, Oct, 4 2013 14:32:10
- 0 Followers
- 12 Total Posts
- 0 Thanks
Nov 5, 2008HelloPosted in: Lua Code Discussion
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...
...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 :)
Nov 2, 2008Thanks for the replies folks, my curiosity is now satisfied :)Posted in: General Chat
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 :)
Nov 2, 2008Hello,Posted in: General Chat
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 :)
Dec 18, 2006thank you for adding find weaknessPosted in: FuBar AddOns
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
Oct 9, 2006Posted in: Raid AddOnsQuote 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.
Oct 6, 2006Posted in: General ChatQuote from archmagi »
OOC + oUF[branches] (old)
In Combat + NUF (new)
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 :)
- To post a comment, please login or register a new account.