Uneven Warlock Specs Bars
I'm using the oUF Warlock Spec Bars module for Burning Embers/Soul Shards/Demonic Fury. However I don't know if I'm doing something wrong, or I'm using a dodgy version of the module, but I cannot for the life of me get the individual embers/shards to be equal width, the last one always seems to a bit bigger than the others.
Lua Code:
|
Ah, I need to read. Answer comes right away
|
150 = segment + space + segment + space + segment + space + segment
150 = 4 * segment + 3 * space 4 * segment = 150 - 3 * space segment = (150 - 3 * space) / 4 You set space to 3 in your SetPoint call. So your solution should be 141/4 Sorry for multiple editing |
Thanks for taking the time to help, I tried the re-adjustment, but the last ember still appears longer.
I've pushed my code up to GitHub (https://github.com/tombell/oUF_Rippie) No matter what I try the segments always appear uneven :( |
That's why. This makes the last segment longer by the amount of spacing (3px in your case). If you subtract the spacing, then it will be off by 3px on the right side. Replace the segment width calculation with what I posted earlier.
|
That did the trick, thanks for the help!
|
All times are GMT -6. The time now is 02:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI