Aardvark Cata
Hi all
I am the author of the Aardvark addon. I am trying to update my addon to work in Cata. It worked perfectly in Wrath and the code currently works in both Classic and Retail. I have 3 bug reports; Lua Code:
Lua Code:
Lua Code:
I can't understand why the code worked in Wrath without issue, (the same code currently works in Classic and Retail), yet can not find any changes that Cata made that could have broken my code. Here is my current code I am seeking help understanding what happened and how to fix it. |
SetJustifyV("CENTER") -> SetJustifyV("MIDDLE")
|
Hi AcidWeb
MIDDLE is not a valid anchor designation, only TOP, BOTTOM, LEFT, RIGHT and CENTER are valid. Even knowing this I did try it and still no go. |
It is (always has been) for SetJustifyV on a FontString. Until now (Cata atm.), the game just accepted "CENTER" without complaining. SetJustfyH still uses "CENTER".
|
Hi Fizzlemizz
So does it mean that "MIDDLE" is acceptable for SetJustifyV() for text only? I have tried bulk changing CENTER to MIDDLE without success. I have tried bulk changing SetJustifyV("CENTER") to SetJustifyV("MIDDLE") without success. I have manually gone through the code line by line and changed CENTER to MIDDLE only where it applies to text without success. This one is twisting my mind in knots. |
SetJustifyV is not for anchoring (SetPoint), it purely to set the vertical justification of the text inside a FontString (Think of the FontString as a container you anchor and the text inside as something separate that you control the look of based on the containers dimensions along with SetJustifyV/SetJustifyH).
For Cata (and presumably the other versions at some point) you can't use "CENTER" for SetJustifV, only "MIDDLE". Retail and Vanilla will sitll accept "CENTER" or "MIDDLE" for the time being but you may as well change those. If you have saved any FontStrings SetJustifyV settings in your SavedVariables as "CENTER" then they will also cause an error and the SV entries will need to be updated to "MIDDLE". Example: Lua Code:
|
Hii Fizzlemizz
Thanks for your detailed explanation; not only did I have :SetJustifyV("CENTER") I also had :SetJustifyH("BOTTOM"), so I was doubly screwed. I have gone through the code and now it is working properly. Thanks to you and AcidWeb for all of your help. |
All times are GMT -6. The time now is 05:37 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI