Creating aura errors '/fstack' command
Before I start, if I am violating any rules of this forum, please let me know!
( Why is there no delete button on forum D: ) Anyways... I was creating a auras frame and just copy-pasted the example code provided inside aura.lua file to see how it looks like. Lua Code:
After that, I used '/fstack' command which passed me the following error. Lua Code:
I honestly can't even think of what is causing this error :(... Does anyone know what is going wrong with this? |
Ugh, that's an old bug in aura.lua, I forgot about it, cuz I never use default aura button constructor.
Default oUF aura buttons and few other frames have no names assigned, and it causes /fstack errors. For now just do not use default constructor. You'll have to create your own create button function, you can pretty much copy-paste existing one, and add names to all frames. And then override it this way: Lua Code:
|
Quote:
Creating a custom constructor worked :D!! EDIT: I just have been editing the constructor and this is how it looks like now. Lua Code:
The icon's width and height had successfully decreased by 2, but cd's size did not decrease which I don't get why... I've checked aura.lua file and there was no such function modifies cd's size... Could I get some advice on this as well? Thank you! |
Would it be possible to set number of buffs per each line?
So! After I've done some edit, aura element seems to be working pretty good and I'm really happy with current result :D
Thanks to lightspark! The one problem that I'm currently having is that the number of buffs actually exceeds the size of buffs frame. What I mean by is the following: Each buff size is set to 20x20 with 2 pixels spacing between two buffs while the buffs frame is set to the size of 100x100. So, the fifth buff will exceed by 8 pixels. Should I set the size of buffs frame by manually to prevent this? Or is there any options to set number of buffs per row? |
Quote:
Once again, to understand why you have this issue, please, read oUF code. That's how number of columns (auras per row) is calculated, it rounds the value, so in your case floor(100 / 22 + 0.5) = 5. |
Quote:
How could've I missed that... Thanks for letting me know :D!!! |
All times are GMT -6. The time now is 05:36 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI