Well I am still working on it but I was able to make a temporary fix by checking if the button was anchored topleft then fixing the points to anchor topright.
I am looking for information on the frame vs font justification and looking for a better solution ie one that doesnt have to be done on every update.
- Registered User
Member for 15 years, 3 months, and 23 days
Last active Fri, Oct, 4 2013 14:29:42
- 0 Followers
- 39 Total Posts
- 0 Thanks
Feb 9, 2007Posted in: FuBar AddOnsQuote from Sent »
When you uncheck it, it goes to default frame which has that one quest in it. I just had to abandon those quests, turn it off, then get em again.
delete the config file when its not working correctly, that solved some of my problems
Feb 9, 2007Posted in: General AddOnsQuote from sylvanaar »
d is probably a negative number, the chatframes werent designed for aligning right or center, so itemlinks are in the wrong location the x position "d" in the code is incorrect. So i discard it and try to realign with the start of the line.
To do what you mention, you first have to understand what the blizzard code is doing to generate the erroneous x position, then correct for that. I
Thats what is happening when you get the frame width subtracting the string size and then subtracting the initial adjustment (and dividing in half if the string is centered).
That does not address the update issue with clearallpoints.
Feb 8, 2007more researchPosted in: General AddOns
function Prat_Justify:MoveLink(coeff, ...) for i=1,select("#", ...) do local o = select(i, ...) a,b,c,d,e = o:GetPoint() if b and b:GetObjectType() == "FontString" and o:GetObjectType() == "Button" then o:ClearAllPoints() p = (b:GetWidth()-b:GetStringWidth())/coeff+d/coeff o:SetPoint(a, b, c, p, e) DEFAULT_CHAT_FRAME:AddMessage(" ...Result: " .. (b:GetWidth()-b:GetStringWidth())/coeff+d/coeff .. " ...Window width: " .. b:GetWidth() .. " ...string width: " .. b:GetStringWidth() .. " ...d:" .. d .. " ...p: " .. p, 1, 1, 1); end end end
Ends up with a never ending accumulation
but if I put clearallpoints right after the setpoint it does it once. I am not sure what that function does since its not on wowwiki
Feb 8, 2007I am really new to lua so I am still trying to figure this out and coming up with strange results.Posted in: General AddOns
I added in a line to output what the calculation is and I get a never ending output of numbers.
function Prat_Justify:MoveLink(coeff, ...) for i=1,select("#", ...) do local o = select(i, ...) a,b,c,d,e = o:GetPoint() if b and b:GetObjectType() == "FontString" and o:GetObjectType() == "Button" then o:ClearAllPoints() o:SetPoint(a, b, c, ((b:GetWidth()-b:GetStringWidth())/coeff)+d/coeff, e) DEFAULT_CHAT_FRAME:AddMessage(" ... " .. ((b:GetWidth()-b:GetStringWidth())/coeff)+d/coeff .. " ... ", 1, 1, 1); end end end
very strange I would have thought it would have outputed once but it seems to repeat over and over does that mean it has to redraw the button all the time?
Feb 8, 2007Posted in: General AddOnsQuote from sylvanaar »
afaik those changes are in the current release. The algorithm does not correct for leading text before the link. So if you are using timestamps or your have some text on the line before the link it will be off.
Yeah, stupid me posted before looking at the code... after testing its not only time stamps, it looks like the calculation is off, but I am a lua nub and don't know how to fix it.
In the function Prat_Justify:MoveLink to fix the leading text dont you need to just add the current lead back into it?
b:GetWidth() gets the window width
b:GetStringWidth() get the width of the line being printed
coeff is 1 or 2 depending if centered
o:SetPoint(a, b, c, (b:GetWidth()-b:GetStringWidth())/coeff, e)
will always set the itemlink button at the start of the line.
cant you use the existing d variable to move it over the needed amount or?
o:SetPoint(a, b, c, ((b:GetWidth()-b:GetStringWidth())/coeff)+d/coeff, e)
I couldn't it to work but maybe there is something I am missing
Feb 8, 2007Posted in: FuBar AddOnsQuote from Sent »
How do I turn off that damn tracker? I want to punch someone in the face having the same questup twice on my screen
duh right click on the fubar mmenu for questfu and check/uncheck use own tracker.
Feb 7, 2007Can someone make this into a mod?Posted in: Addon Ideas
Feb 7, 2007Can someone tell me the benifit of breaking blizzards dependancy system is?Posted in: Addon Ideas
I have been looking for documentation for the end user on the wowace standards for installing mods but am fairly confused.
I see some !!!standalone packages, some packages with externals that get installed in the same directory without externals, some addons that don't work correctly without externals. Some that are packages... some addons that duplicate the functionality of others and then cause errors. I am lost.
I will gladly help where I can but am questioning the whole process atm because of the problems I am having just getting working packages.
I am not sure that the load on demand works since I couldnt get half the mods to work that way and MCP says that they cant load on demand
Feb 7, 2007I thought you used to be able to click a addon off and other addon's that depended on that addon would indicate dependancy was missing.Posted in: Addon Ideas
I seem to be having problems telling what addon needs what. Is this typical or is my wowace setup messed up?
- To post a comment, please login or register a new account.