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

[Behaviour] Minecraft-like (Awaiting modular structure) #47

Open
havi05 opened this issue Jan 22, 2021 · 5 comments
Open

[Behaviour] Minecraft-like (Awaiting modular structure) #47

havi05 opened this issue Jan 22, 2021 · 5 comments

Comments

@havi05
Copy link
Contributor

havi05 commented Jan 22, 2021

Hi,

Would it be possible that you switch the commands with tab? (like for example in Minecraft)

You have these commands:
sayhello
seeversion

So if you type S, a small HBoxContainer will show all commands with S, and if you type TAB, the command line will show "sayhello", and if you type TAB a second time, the command line will show "seeversion.

Otherwise the chat will be crowded with all commands. (If you use it also as chat)

Thanks,
Gamemap

@quentincaffeino
Copy link
Owner

Hello,

I can't say this would be supported out of the box. Currently console tries to mimic unix terminal that's why it behaves like that.

Right now I'm working on decoupling the console into smaller modules to allow people to add/replace/remove those modules without modifying the core of the console.

Right now I would suggest you go right away and modify console sources and add the features you want. Current autocomplete functionality is in godot/addons/quentincaffeino-console/src/ConsoleLine.gd on line 66. Please note that I'm unaware of how Godot acts when there's an update for an addon, so to prevent yourself from loosing your changes I suggest you to use git or etc.

After migration from monolith to module-based will be over we can include your autocomplete as a separate module for people to use.

Best)

@quentincaffeino quentincaffeino changed the title Autocomplete with Tab [Behaviour] Minecraft-like command autocompletion Jan 22, 2021
@havi05
Copy link
Contributor Author

havi05 commented Jan 22, 2021

Thank you

and good luck !

@havi05
Copy link
Contributor Author

havi05 commented Jan 24, 2021

I have two new ideas:

  1. Maybe you canalso change the opening to a variable (toggel or open with key close with enter) (If TextLine empty no print)
  2. Maybe add chatcompability (multiplayer) (type a special key (var commandkey = "/") for command otherwise chattext)
    (for current behaviour var commandkey = "")

What do you think about this?
Gamemap

@quentincaffeino
Copy link
Owner

quentincaffeino commented Jan 25, 2021

Hey, those are great ideas but only for a specific project. The purpose of this project is to allow people to create any type of console.
So as I said earlier, you can do that within your project)
Those features could be implemented but as a separate modules so that people that don't need them could disable em and vice versa, but rn this addon is implemented as a monolith so it is impossible to create and use separate modules without affecting the core of the addon. I'm working on splitting it but it is not essy)

@havi05
Copy link
Contributor Author

havi05 commented Jan 25, 2021

I also thought of separate modules for these ideas.

You build a really good addon.
Good luck
Gamemap

@quentincaffeino quentincaffeino modified the milestone: 3.1.0 Jan 25, 2021
@quentincaffeino quentincaffeino changed the title [Behaviour] Minecraft-like command autocompletion [Behaviour] Minecraft-like (Awaiting modular structure) Jan 25, 2021
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