ChatFrame#:ScrollToTop() Alternative
Something that has been irritating me lately is Blizzard's ChatFrame#:ScrollTopTop() function. It situates the highest scroll index of text against the bottom of the chat frame. This isn't even achievable through normal scrolling up, as the chat stops scrolling when the highest index is situated at the top of the chat frame. I wrote this script to try to get around that.
Lua Code:
This really satiates some sort of pseudo obsessive-compulsiveness, and doesn't really enhance anything drastically. I searched high and low for something similar and didn't find anything. The script should fit in neatly wherever there is a call to ChatFrame#:ScrollToTop(). |
You could simplify that:
Code:
repeat |
=O Suppp Phanxxxxxxxxxx.
Looks great! Thank you for the input. I was unaware that LUA had a repeat-until function. |
You could also just do
Lua Code:
The difference is a repeat loop will always execute at least once. |
Works great, Semlar.
Thanks a lot for the input you two, I didn't even think to use a repeat-until or while-end function in this situation. |
All times are GMT -6. The time now is 11:37 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI