Thread Tools Display Modes
09-08-12, 02:53 PM   #1
Rochet2
A Defias Bandit
Join Date: Sep 2012
Posts: 3
Faux Scrollbox

Hello.
I am new to wow addons and I was trying to make a scrollable list and the amount of list items changes etc, but I am having serious problems with it.

My scrollbox buggs so that when I reload my UI, everything looks good, but if I scroll once (one notch), nothing happens.
When I scroll more, the list goes on.
If I scroll back to start, the list wont go to the start, but instead goes to random offset (0 is the start, can range from 1 to 9 instead)

So the menu items wont show up in order and jump around in the menu : /
Some times all the options also disappear when I delete some options and such.

Here is my code if someone wants to take a look
http://pastebin.com/8Gf9wB2N

EDIT: FauxScrollFrame_GetOffset seems to give odd offsets .. hmm, like 9 when it should be 0 and 0 when it should be 9

Last edited by Rochet2 : 09-09-12 at 02:39 AM.
  Reply With Quote
09-09-12, 07:23 AM   #2
Rochet2
A Defias Bandit
Join Date: Sep 2012
Posts: 3
Hmm, found a code made by Phanx.
Fixed it up and edited a bit for my needs. (the only lua scrollbox ive found so far)

It seems like it fixed the problem.

If anyone is looking for a nice lua scrollbox, check this:
http://pastebin.com/htUhBu00


Fixed, but not solved.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Faux Scrollbox


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