MV Cycle through Buffs and States in Battle Status Window?

Hey guys,

I'm developing a custom status window, and so far, everything looks pretty much the way I want it to. What I want to do now is change the way it shows the icons for buffs and states.
Right now, the window only shows a set number of buffs and states according to the window's height. I want the window to cycle through the buffs and states like a roulette.

Example:
pic1.pngpic2.png

(My custom window is based on Yanfly's Battle Engine and Buffs & States Core BTW)

Original thread: https://forums.rpgmakerweb.com/threads/cycle-through-buffs-and-states-in-battle-status-window.169330/