godot-console icon indicating copy to clipboard operation
godot-console copied to clipboard

[Behaviour] Minecraft-like (Awaiting modular structure)

Open havi05 opened this issue 4 years ago • 5 comments
trafficstars

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

havi05 avatar Jan 22 '21 15:01 havi05

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 avatar Jan 22 '21 15:01 quentincaffeino

Thank you

and good luck !

havi05 avatar Jan 22 '21 16:01 havi05

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

havi05 avatar Jan 24 '21 23:01 havi05

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)

quentincaffeino avatar Jan 25 '21 00:01 quentincaffeino

I also thought of separate modules for these ideas.

You build a really good addon. Good luck Gamemap

havi05 avatar Jan 25 '21 08:01 havi05