State Rows

Hello everyone, I've been trying to figure out a problem, I'm having with my states on a custom UI, which is that I need the states to move
into a new row, after 8 fill up the first like in the image, so it would be like 1 to 8 on the first row, then 9-17 on the second.

So this is where I come here for help, I'm not sure if this is possible through just changing the base scripts, or will need a new plugin, I do use 2 plugins that change the base states, which are.


If they change how this would be needed to be done, i'm unsure, so if anyone has some idea of how this could be done, I would greatly appreciate the help.

States.png

Original thread: https://forums.rpgmakerweb.com/threads/state-rows.119096/