doonv / bevy_dev_console

Source-inspired developer console plugin for the Bevy game engine.
Apache License 2.0
112 stars 10 forks source link

Add autocompletions for functions and variables #28

Closed doonv closed 1 month ago

doonv commented 3 months ago

Objective

Fixes #26

Solution

There's a new command (UpdateAutoComplete) that the UI calls when the command is changed or when the cursor moves (currently does it every frame). Then the UpdateAutoComplete command calls CommandParser::completion which then makes the current command parser return a list of CompletionSuggestions, which is then displayed to user.


Changelog