View Single Post
04-25-24, 04:43 PM   #3
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 324
Thank you so much! This worked perfectly.

Could you also tell me how to do this in Wrath Classic?
I tried this:

Lua Code:
  1. local ScrollBar = AchievementFrameAchievementsContainer.scrollBar
  2. ScrollBar:RegisterCallback(ScrollBar.Event.OnScroll, function(_,scrollpercent)
  3.   print(scrollpercent)
  4. end)

But AchievementFrameAchievementsContainer.scrollBar does not seem to have Event.


In general: What did you do to see all the scripts of the scroll bar/box?
Could you recommend a resource where I could learn about the details of CallbackRegistries?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote