Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prefix requirement option to send commands #103

Open
scriptsengineer opened this issue Nov 29, 2022 · 2 comments
Open

Add prefix requirement option to send commands #103

scriptsengineer opened this issue Nov 29, 2022 · 2 comments

Comments

@scriptsengineer
Copy link

How it works?
Add option to put a prefix for the command to be done, for example if configured '/' as a prefix for the command, it is necessary to send /commands and not commands.

Why?
Some games, for example minecraft, use the console to send chat messages and call commands
image
Also a future suggestion of a default command, which is sent without typing the command name or prefix, example would be the /chat command in minecraft.

Note:

This would be an option that can be placed in the console inspector, and by default it would continue with no prefix required.

@quentincaffeino
Copy link
Owner

This was already discussed previously and I agreed that this is indeed what will be added but not in the core part of the console. I'm slowly but surely working to split current monolithic core into separate modules which can be modified and replaced to make console your own.

In the mean time I will advice to you to do the same thing and just change the source code to your needs. The easiest way I see is just to prepend / character to all commands in register function.

Best :)

@scriptsengineer
Copy link
Author

I'm working on a fork (https://github.com/expressobits/godot-console) with several enhancements (or not) that includes exactly this feature, it's still in WIP
My plan is for this to be optional, as are other similar features (How to print a typed command to the console, which is currently commented out)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants