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

Render dev console in any container #25

Open
cschram opened this issue May 8, 2024 · 0 comments
Open

Render dev console in any container #25

cschram opened this issue May 8, 2024 · 0 comments
Labels
A-UI This is related to the User Interface C-Enhancement New feature or request

Comments

@cschram
Copy link

cschram commented May 8, 2024

What problem does this solve or what need does it fill?

Some programs may want to integrate the dev console into another UI as part of a more complete debugging/development interface. Currently the is not possible with bevy_dev_console.

What solution would you like?

Provide a function that will render the dev console UI (what is currently contained only within the console window in ui::render_ui) inside any egui UI. This could look something like this:

pub fn ui_for_dev_console(
    log: &[(LogMessage, bool)],
    command: &mut String,
    // ... any other dependencies - `ConsoleConfig`, etc.
    ui: &mut egui::Ui,
) {
    // ...
}

What alternative(s) have you considered?

¯_(ツ)_/¯

Additional context

The manual UI functions that bevy_inspector_egui provides are a good example of how this would work.

@doonv doonv added C-Enhancement New feature or request A-UI This is related to the User Interface labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI This is related to the User Interface C-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants