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

Make bottom_panel and other docks interchangeable #3886

Closed
rossunger opened this issue Jan 29, 2022 · 2 comments
Closed

Make bottom_panel and other docks interchangeable #3886

rossunger opened this issue Jan 29, 2022 · 2 comments

Comments

@rossunger
Copy link

Describe the project you are working on

I'm working on an editor plugin that uses the bottom_panel, and I often print to the output for debugging purposes

Describe the problem or limitation you are having in your project

I'm constantly having to switch between output and the control that I've added to the bottom panel especailly when troubleshoot GUI controls. ... like, several times every minute....

Describe the feature / enhancement and how it helps to overcome the problem or limitation

It would be nice to be able to move the Output dock (and other other bottom panels) to a different docking position...e.g. I would put the output dock in the same place as the fileSystem...

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

the same way we can currently drag the docks to other doc locations.

If this enhancement will not be used often, can it be worked around with a few lines of script?

I guess a custom solution is to make my own output panel / dock, and attach it how I want it

Is there a reason why this should be core and not an add-on in the asset library?

It would be more consistent with the rest of the editor

@WhalesState
Copy link

WhalesState commented Jan 29, 2022

you can run godot with console window.

if you are on windows it should be visible by default when you run godot, if it's not then check your editor settings, search "console" and you will find a property called "hide console window", disable it.

if you are on linux then you will need to run godot from terminal, open the terminal in the folder where the godot.64 exists and write this ./godot.64 to run it, if it has a version then you can rename it to godot.64 to easily run it, also you can create a desktop entry for godot and you add this line Terminal=true.

now you can have a new window that shows you your output, you can use another program to make the console window always on top then you resize it and you keep it always visible while you debug, if you are on linux then you will find this option built-in, right click your window title panel and set it to always on top.

another way is to create a new control that is a label, and you add it to one of the docks, and you use it to change the label text to whatever you print, so it will be always visible, you don't need another plugin for that, you can create it in the same plugin and after you finish your debugging then you can remove it's code.

another way is to make your plugin a main screen plugin and you set it's visible function to return false, so it will be visible over your existing visible main screen, and after you finish you return it back to the bottom dock.

@YuriSizov
Copy link
Contributor

Duplicate of #1508

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

3 participants