MZ Left/Right Scrollable Window_Selectable? (Solved I made a plugin for this)

Spoiler: My original posted question
How to make Window_Selectable able to scroll left/right not just up/down?

So I believe I did this a while back in RMMV but now I'm having a hard time to remember the process...

... I remember I'll need to add in the sprites for the left/right arrows since for whatever reason that were neglected from being added by default. I've done that fairly easily.. attached is the script that adds the arrow sprites.

Question now is how would I go about making the Window_Selectable scroll the Selectable Items left & right like it does for Up & Down?

For example say I have just 1 row with 8 columns but only want 3 columns displayed on screen, when the player moves the cursor to the 4th item, the selectable items should then "scroll" to the left by 1 (items 2 through 4 would be displayed)

Hope my question makes sense.

Thanks in advance for all the help. 🙂


Edit/Update:
Solved ☺️

It's all done now 😉 Works exactly as it should.
This was quite the process though honestly. Had to alias quite a few functions and add a bunch of new code... but I did manage to get it all working now and have made a plugin for this.
It's now available on my itch.io page found here:

Plugin Video Demo:
Spoiler: Video Demo
Window_HorzCommand has this functionality. It inherits a bunch of stuff from Window_Command, which inherits from Window_Selectable. I'd say if you're looking to get a horizontally scrolling selectable window, that's a good place to start looking.
Window_HorzCommand has this functionality. It inherits a bunch of stuff from Window_Command, which inherits from Window_Selectable. I'd say if you're looking to get a horizontally scrolling selectable window, that's a good place to start looking.
I think I'll do what I can to implement it all the way down to the base class...

Window_HorzCommand doesn't really add much difference honestly...
Spoiler: Window_HorzCommand Code
1651829821834.png
all that really does is center text align and default maxCols to 4
for whatever reason lol

that doesn't really seem to add much difference for what I'm asking

Thanks for the reply though 🙂
Oh, no, you're right.

I recalled that I was messing with the battle layout in my own project, and made the actor command window a horizontal command window. I thought it could scroll horizontally, but I just checked and it doesn't do that after all. It does scroll vertically though, which seems like a sort of weird thing for it to do, in retrospect.
Oh, no, you're right.

I recalled that I was messing with the battle layout in my own project, and made the actor command window a horizontal command window. I thought it could scroll horizontally, but I just checked and it doesn't do that after all. It does scroll vertically though, which seems like a sort of weird thing for it to do, in retrospect.
Yep exactly... that's exactly right, very weird indeed.

it's very odd that right/left scrolling was just neglected by the default..
and instead when you scroll right it just goes down lol

..the default didn't even bother to add the arrow sprites for left/right even.. like wtf? lol.. very odd

Update/Edit:
It's all done now 😉
Works exactly as it should.
This was quite the process though honestly. Had to alias quite a few functions and add a bunch of new code... but I did manage to get it all working now and have made a plugin for this.

It's now available on my itch.io page found here:

Spoiler: Video Demo


@mods:
Solved it and created a plugin to remedy this issue in question...
This thread can now be closed ☺️

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/left-right-scrollable-window_selectable-solved-i-made-a-plugin-for-this.147356/