Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-26-13, 10:55 AM   #1
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
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:
  1. for i = 0, _G[frame]:GetMaxLines() do
  2.     if _G[frame]:AtTop() then break end
  3.     _G[frame]:ScrollUp()
  4. end

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().
  Reply With Quote
 

WoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » ChatFrame#:ScrollToTop() Alternative


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off