Stopping actor movement during while Window_Command is visible

Hello all,

I have a plugin script that displays a Window_Command via a plugin command.

My question is how do I turn off actor movement while the Window_Command is displayed? By "actor movement", I'm referring to mouse clicks and arrow keys. I want those inputs to navigate the command window instead of move the actor. But by default both are happening.

Obviously the built-in "Show Choices" version of the Window_Command does this, but I'm having a hard time finding the properties to set on the scene/window to make it happen with my own Window_Command.

Thanks for any help!
Occupant
Ah, of course I found the answer right after posting this question.

The issue seems to be surrounding the "Game_Message" state variable. Showing a custom window doesn't configure the $gameMessage at all, which is responsible for reporting an "is busy" status to the actor .canMove() check.

This makes it a little tricky when you want to drastically change the behavior of the choice list. I'm not sure if it would be easier to override the canMove check to include an "is busy" query to my own window, or if it would be easier to try and make the built-in game message choices behave the way I want.

I'm leaning toward the former, but am open to suggestions!

Original thread: https://forums.rpgmakerweb.com/threads/stopping-actor-movement-during-while-window_command-is-visible.91894/