A way to hide default plugin command arguments?

Hello! I made a plugin with a command that has a lot of options:
RPGMZ_2023-10-22_18_31_54.png

(Not really something I can easily split into multiple commands, aside maybe from colour-picking but that's not ideal.)

That stretches the event script quite a bit, unfortunately. I'd also like to avoid packing the arguments into structures, since I do want to keep them easily-readable and entering them is easier if they're all in a list. Normally, only about three of these would be actually used at the same time.

Is there a way to configure these right in the plugin so that either ones with default value or at least empty ones aren't printed in the command list? I can clean this up fairly easily by editing the JSON files, but I'd like to avoid the dev having to playtest and reload their project.
Just for comparison, the collapsed command after cleanup looks like this:
RPGMZ_2023-10-22_22_47_51.png


Is there any way to do this seamlessly?
so far I know, there isn't a way for that, like MV struct or parent,
that is also open on start, but I didn't saw a plugin that has that
many options though.

it might become a feature if to many want it and/or is possible to
open/close it like that.
I don't understand what your criteria are for which options would be displayed. How would the user of your plugin reenable the other options? Or know what they are if they're not in the list? Where would the values come from?

My only suggestion would be to have two versions of the plugin command. Have an OnTouchBasic with your three normal options, and an OnTouchAdvanced with the full list.
I don't understand what your criteria are for which options would be displayed. How would the user of your plugin reenable the other options? Or know what they are if they're not in the list? Where would the values come from?
The GUI, when adding or editing the command, still shows all parameters as normal. I'm only concerned about the additional code-657-commands that the editor inserts after the "Plugin Command" command.

These are completely ignored by the runtime and editor, except for listing them as in the screenshot. The actual (full set of) arguments are stored in the initial "Plugin Command" line with "code": 357, but not displayed in the listing.

The editor can know which value is the default since it has access to the @-annotations in the plugin script. It would be nice if I could put something like @collapseDefaults true/@listDefaults false there, or singular on each parameter.

My only suggestion would be to have two versions of the plugin command. Have an OnTouchBasic with your three normal options, and an OnTouchAdvanced with the full list.
Hm... That's a good idea. A alpha test is on by default and enough in many cases, so I think I'll make a version with just the initial three plus the "Distance" ones.
Another option is to merge multiple params into a single @type struct<name> param. That may be what ShadowDragon was getting at. E.g. you could add an "Advanced Settings" struct param. In case it helps, there's an example in this announcement (structs work the same in MZ):

It would be nice if I could put something like @collapseDefaults true/@listDefaults false there, or singular on each parameter.
If anything, I think hiding the default param values would be a user display preference, not a plugin setting. It might fit as a new toggle under Tools -> Options, but I don't believe anything like that exists at the moment.
@caethyril so far I understand his post is that he want to close the
plugin commands like the structs I mentioned, like this here:
minimise.png


which is a struct in the plugin, but not in the MZ editor.
if he can close it, you have a bit more view on the editor when setting
text, scripts, variables etc, and press the + to open it again.

that is what the OP wanted.
but I dont know how structs works for MZ plugin commands though.

if it has alot of options, a struct with settings would be more ideal and call
the ID with the plugin command to simplify it which maybe an easier way.
@caethyril so far I understand his post is that he want to close the
plugin commands like the structs I mentioned, like this here:
View attachment 281143

which is a struct in the plugin, but not in the MZ editor.
if he can close it, you have a bit more view on the editor when setting
text, scripts, variables etc, and press the + to open it again.

that is what I et the OP wanted.
but I dont know how structs works for MZ plugin commands though.

if it has alot of options, a struct with settings would be more ideal and call
the ID with the plugin command to simplify it which maybe an easier way.
I think that screenshot is only showing parenting, which I'm already doing:
RPGMZ_2023-10-23_21_10_34 cropped.png

(This window is pretty much perfect for this plugin, I do want them expanded there.)

If I were to use structs (assuming they're the same as in MV), then instead of folding out like that, a new modal window would open to edit the struct's properties separately.
(It would also make parsing a little more annoying, but oh well.)

Structs should be collapsed into a single command 657 each in the listing, but unfortunately it's not all that nicely readable with the JSON wrapper then.

For now I've implemented @ATT_Turan's suggestion and will most likely release the plugin like this:
1698088779415.png

Short enough, though for good measure this is affected by the defaults-cleanup option as well.

I might make a plugin that does that for any plugins' MZ commands if I can read the defaults reliably in the same way that RM does. It seems that RM (or at least MV) sometimes picks up a later line as (part of?) the default value and I haven't really looked into the rules there.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-hide-default-plugin-command-arguments.162278/