Setting Cursor Rect To Match Draw Item Locations

Say I have duplicate slots. Is there a way to make them show horizontally rather than vertically? While everything else shows vertically?

EX: 

Weapon

Armor

Ring       Ring        Ring
Gem       Gem

I am using Tsukihime's Core Slots, Custom Equip Slots, Dynamic Equip Slots, Equippable Limits

I have no clue how to go about this. What I have so far goes horizontal, but it just lists them horizontal instead of vertical.

EX:

Weapon       Armor       Ring         Ring        Ring        Gem, etc

I have a feeling it has something to do with the draw_item method, but also something to do with the item_rect or cursor_directions for the window.

EDIT: So I have separated them into 2 different windows. One for armors and one for weapons, the problem now is I don't know how to stop it from looking in @actor.equips and in @actor.weapons/armors. Where is the window getting this information from?

EDIT: I managed to avoid that all by setting a max and drawing each one out manually. Now I have a new problem. They are drawing properly, but now the cursors are not going where they are supposed to be. It is still moving in a horizontal line.

EDIT: I've got it working! 😀 But alas another problem. The cursors only move left and right, but I have 2 rows. I need to be able to move freely through the rows and columns. I know this has to do with the cursor_directions, but not sure what the calculation should be 🙁 .

EDIT: Took me all day, but I did it! This is solved... I hope.

Original thread: https://forums.rpgmakerweb.com/threads/setting-cursor-rect-to-match-draw-item-locations.29086/