Description of the Feature:
Code for Implementation:
It requires a bit of work, I created an issue at the Github Repo if you want more details
https://github.com/rpgtkoolmv/corescript/issues/119
Simply put though...
Basically, to add a command for the editor to graphically see all command related arguments the plugin dev would have to do this. Much like a parameter since MV 1.5
The plugin dev would simply do this to perform actions when the command is called.
Mockups:
Why is this feature good?
This feature is great because of the following:
Possible issues with this feature?
Issues that might arise from this feature:
At the moment, to add plugin commands to your event, you have to track through a large help file and or remember a large list of commands and their arguments. I am proposing a new, more user-friendly way of selecting a plugin command for the user. And for the developer to easily add plugin commands without aliasing the same method all the time.
Code for Implementation:
It requires a bit of work, I created an issue at the Github Repo if you want more details
https://github.com/rpgtkoolmv/corescript/issues/119
Simply put though...
Basically, to add a command for the editor to graphically see all command related arguments the plugin dev would have to do this. Much like a parameter since MV 1.5
Code:
@command Layers
@action add
@text Add Layer
@parent Layers
@type struct<LayerAdd>
@desc Add layer to the map.
PHP:
PluginManager.registerCommands('layer', {
add: function (data) {
const args = JSON.parse(data.args)
Layers.createConfig(data.mapId, args.id, {
x: args.x,
y: args.y,
z: args.z
})
},
refresh: function (data) { /* Do Stuff */ },
remove: function (data) { /* Do Stuff */ }
})
Why is this feature good?
This feature is great because of the following:
- Easily select a plugin command without traversing large list of plugins and their help files
- No need to remember all commands, arguments of all the plugins you use.
- No more aliasing the same function, over for all plugins used, improving compatibility and any conflicts.
- More control over all plugin commands
Possible issues with this feature?
Issues that might arise from this feature:
- Possible compatibility issues (though I covered as much as I could think of in the github issue)
- ????