WANT TO MOVE ACTOR COMMANDS LIST

Hopefully this is pretty straightforward. I'm using Yanfly's Battle Command List and have at least 6 custom commands during the battle menu. This means that, normally, you can only see 4 at a time and need to scroll up/down to see the others.

1628795365750.png


I'd like to see all 6 at once. I figured out how to change the number of rows the box shows but, that caused the rows to simply spill off-screen.

1628795459705.png


So I thought I'd just move the box up. I added this to Scene_Battle (under the "new"):

1628794965957.png


(the 100 was just to experiment)
and it "works" but...

1628795202657.png


It cuts off at the top??? Why does it do that? How can I change this so I can bring the box up?

I've moved this thread to Script Support. Thank you.

View attachment 198469

It cuts off at the top??? Why does it do that? How can I change this so I can bring the box up?
So do you see on line 224 where is says "@actor_command_window.viewport = @info_viewport"? Well the viewport is a mostly invisible object that defines the boundaries of where you can draw your graphics to the screen. So by moving the window up, it's getting cutoff by the viewport's boundaries. It's kind of hard to explain, so here's a picture:
1628862900495.png


So you'll need to move the viewport up AND make it taller to accommodate the larger Actor Command Window. But keep in mind that if another window or sprite is using the info_viewport, then you're going to end up moving them as well. Alternatively, you could make a new viewport just for the command window. Something like:
Spoiler
Ruby:
@actor_command_viewport = Viewport.new
@actor_command_viewport.y = 100 // Set these to whatever you need
@actor_command_viewport.height = 100 // Set these to whatever you need
@actor_command_window.viewport= @actor_command_viewport
But you'll likely want to add this new viewport creation and deletion to wherever the other viewports are created/deleted.
So do you see on line 224 where is says "@actor_command_window.viewport = @info_viewport"? Well the viewport is a mostly invisible object that defines the boundaries of where you can draw your graphics to the screen. So by moving the window up, it's getting cutoff by the viewport's boundaries. It's kind of hard to explain, so here's a picture:
View attachment 198532

So you'll need to move the viewport up AND make it taller to accommodate the larger Actor Command Window. But keep in mind that if another window or sprite is using the info_viewport, then you're going to end up moving them as well. Alternatively, you could make a new viewport just for the command window. Something like:
Spoiler
Ruby:
@actor_command_viewport = Viewport.new
@actor_command_viewport.y = 100 // Set these to whatever you need
@actor_command_viewport.height = 100 // Set these to whatever you need
@actor_command_window.viewport= @actor_command_viewport
But you'll likely want to add this new viewport creation and deletion to wherever the other viewports are created/deleted.
Oh shoot sorry for the late response, I had actually totally forgotten to check this and never got the email notif lol

This makes a lot of sense! I sort of thought it was something like this but I didn't really know how it worked. I'll try this out later then! Thank you very much!!!

Original thread: https://forums.rpgmakerweb.com/threads/want-to-move-actor-commands-list.139538/