Help on ScrollFrame with LUA
View Single Post
02-12-13, 09:00 AM
A Pyroguard Emberseer
Join Date: Jul 2008
Try this example
It does not make use of templates yet but it shows how to handle the ScrollChild.
Of course...using FauxTemplate is handling the ScrollChild quite differently I think.
Got exactly what I was looking for.
Code will be coming soon.
I'm using a ScrollFrame with this template: "UIPanelScrollFrameTemplate" with a twist.
To bad I wanted a ScrollBar with this template: "UIPanelScrollBarTrimTemplate". The UIPanelScrollFrameTemplate only uses UIPanelScrollBarTemplate. So I just looked up the SetTexCoord for the scrollbar border and added it manually.
Ok here is the code that does it:
Thanks to templates there is actually veeery few code to write.
| Simple is beautiful.
Roth UI FAQ
"I wonder what the non-pathetic people are doing tonight?"
- Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 02-12-13 at
View Public Profile
Send a private message to zork
Visit zork's homepage!
Find More Posts by zork