Lore archive · Warcraft Wiki, 2023 dump
UIOBJECT ScrollFrame
Last wiki revision 2022-05-26
ScrollFrame (inherits from ) may be customized to vertically or horizontally scroll other widgets.
The logic and textures to operate the ScrollFrame may be inherited from a template:
- UIPanelScrollFrameCodeTemplate - The logic for vertial scrolling without any textures.
- UIPanelScrollFrameTemplate - Adds vertical scroll bar textures beyond the right edge of the ScrollFrame.
- FauxScrollFrameTemplate - Adds vertical scroll bar textures but without logic to move the child frame.
- HybridScrollFrameTemplate - Reuses child widgets by passing them a new ID to display different list entries.
- Scroll frames are good for scrolling large portions of text, or a large EditBox.
- Faux and Hybrid scroll frames give the impression of scrolling a long list without the performance cost of making widgets for off-screen list elements.
- Multiple textures, positioned one to another, may start "fidgeting" when the ScrollFrame's ScrollChild containing them is resized/moved/scrolled. And "fidgeting" may mean quite serious distortions, with textures shifting up to 3-4 pixels in an unpredictable direction. Speculation here - apparently this happens because ScrollFrames are (seemingly) created by rendering all their content onto a texture in memory, and treating the ScrollFrame's ScrollChild as a mere Texture, taking its contents from the in-memory texture using SetTexCoord. Now when the 0-1 texture coordinates suffer from precision errors, everything starts to shake. Surprisingly, though, text does NOT suffer much. Bottom line - use ScrollFrames for large images or blocks of text, but not for a large number of multi-textured relatively-positioned controls.
Creates a ScrollFrame inside the Interface window (see Using the Interface Options Addons panel):
Source
https://warcraft.wiki.gg/wiki/UIOBJECT_ScrollFrame · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.