-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add editor setting to keep bottom panel state on play and stop game #9513
Comments
I like it but imo that entire settings section is starting to look like a riddle that users need so solve, especially if you add a setting that overrides two existing ones, and also the name of the option doesn't reflect that it affects what happens on stop (only the tooltip says it) What if instead of those 3 settings we do:
The default behavior is preserved with Then we'll close both this proposal and #8507, because honestly my main issue was that the debugger is always getting opened no matter what and there's no way to prevent it |
My main concern about what you suggest is breaking the compatibility with the existing options. I agree the this third option is not ideal and if we were starting from scratch your suggestion would be the best choice. With this third option, I think it's doing exactly what you want: The debugger is not open on start and it opens we there are errors at runtime. And this third option was super easy to code! I'm new in Godot, maybe somebody else with more experience then me can confirm that backward compatibility is not that important or maybe there is a way not convert old settings in new ones? |
We should be able to migrate existing editor settings by having a magic getter ( |
Thanks for the answer, I'll look into it! |
Describe the project you are working on
A 3D air combat game
Describe the problem or limitation you are having in your project
I want to keep the current bottom panels as it is when I start and exit my game.
Each time I start my game from the editor, the Output Panel opens even if the bottom panels are closed. When I'm editing GDScript I like to collapse the bottom panels to have more space, but when I start/close the game and go back to the editor, the Output Panel is now opened.
There is already an option to Open the Output panel instead of the Debugger and an option to close it when exiting the game.
![image](https://private-user-images.githubusercontent.com/81109165/322216706-cee83d8b-84da-41ad-8991-e065bc5786e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY3MDYtY2VlODNkOGItODRkYS00MWFkLTg5OTEtZTA2NWJjNTc4NmUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5NzkxNTczZmEzMWIwOGFiNGU2NGNjY2ZjM2FmNzA4NjA0N2Q5YzA1Y2JlMWZmM2I5N2JmNGUzN2QyNWZjMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4sx63GLFXeyNXb9D5sDeYBl_rth7M2lYmAlby-yQDSI)
The problem with the current options is that I cannot just tell the editor to do nothing on start. If I use the option "Always close Output on Stop" I lose the current bottom panel when I exit the game.
My suggest is similar to #8507 but there is often errors thrown by the engine that are not important (especially when working in dev build).
Example of workflow #1:
Editing script...
![image](https://private-user-images.githubusercontent.com/81109165/322216814-11deb163-1348-4cce-bf11-a1eaf36d4668.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY4MTQtMTFkZWIxNjMtMTM0OC00Y2NlLWJmMTEtYTFlYWYzNmQ0NjY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI2NDlkOWQxMjJjNWMxN2U3ZjJjYjI5YzY2NzFlY2QzNDA4NGQyNDg1ZWYyNTYxNmYwNjQyMWIxZmE0Zjk1YWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.fQdzhlOiJ8quqVz4AOSOVXDkTNkUSAoHblEIVfuDwQY)
Play... We can see the Output panel in the way...
![image](https://private-user-images.githubusercontent.com/81109165/322216857-c839b222-e27c-4271-b17f-b72b04b9774f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY4NTctYzgzOWIyMjItZTI3Yy00MjcxLWIxN2YtYjcyYjA0Yjk3NzRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwYjBkOTkwNGQ2Yzc3Zjk2Zjg4YThjMGRhZGM2NTY1ZjIxMjZkM2IyOTNhNWVhY2EyZmIyYjMyZWIyZTZkMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.yZMgk2Lt37S-c1THmPrcYEqrw9VfVPtbMgx8dTaH6cg)
Exit game, when I come back in the Editor... The bottom panel is in the way...
![image](https://private-user-images.githubusercontent.com/81109165/322216892-b159c66e-24c7-4e9a-bd07-eeecf30017e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY4OTItYjE1OWM2NmUtMjRjNy00ZTlhLWJkMDctZWVlY2YzMDAxN2UyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3NjgwODU3OWYyZjYwYTBkYmI4OTVkYjYyMjdmYThkZjM5ZjI3NWY3NjU3NjViODk5NmI2ODlhOWZmM2EwODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-xpxIYHp-wun1CPCv25FdszyGV8jM_quE3DoXNDxP6E)
Example of workflow #2:
Editing Animation...
![image](https://private-user-images.githubusercontent.com/81109165/322216952-4d06b19f-4770-4e33-974d-00bb0bffe04b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY5NTItNGQwNmIxOWYtNDc3MC00ZTMzLTk3NGQtMDBiYjBiZmZlMDRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyZTBhZWQ4NWE2MWE5NzdmYTlkMGQzMzVhY2Y2NTBkNzc2YTNjYmViMWE3NzJjZDc2ZTI0MGNkMmMxZDhhYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vhYFdZlurso4OVV3QoR_8gQZN4PlBCjMlrhumyko9CY)
Play... The animation panel is gone...
![image](https://private-user-images.githubusercontent.com/81109165/322216975-c4b97743-95a7-4ca0-b8e4-f98984971d47.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY5NzUtYzRiOTc3NDMtOTVhNy00Y2EwLWI4ZTQtZjk4OTg0OTcxZDQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBhZGRkNzI4Yjg5OWMzOWU0OTk0ODg5MDQ3ZDJlZjM1MGI2N2E1Y2UxY2IzY2Q0ODAyZjYzM2UxMWVhNDk1MTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Eajvbotp_hqwMTwWyUve8qIiRrmPa92GVOhv0uiCKYg)
Exit game... I must click Animation again to go back editing the animation...
![image](https://private-user-images.githubusercontent.com/81109165/322217018-62792616-d999-40ff-848b-c21eb6e5add8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTcwMTgtNjI3OTI2MTYtZDk5OS00MGZmLTg0OGItYzIxZWI2ZTVhZGQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI2OWE4NWIwNTRhYTcyZDE5MGM4ZWVjNGM4MmEzZWNjODMzY2JkNzhjMTY3NjZkZDNkYjNiOWNjYWViYWFjYTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2I9N7dZKdC2z0aM8mStUvkHTvdbRqbuqNtHoolJ-C4I)
Describe the feature / enhancement and how it helps to overcome the problem or limitation
The problem is backward compatibility with the current options. Currently, if the "Always Output on Play" option is Off, the debugger opens on start.
![image](https://private-user-images.githubusercontent.com/81109165/322218082-7881c592-0f9c-4d41-ac5d-f06d67c038f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTgwODItNzg4MWM1OTItMGY5Yy00ZDQxLWFjNWQtZjA2ZDY3YzAzOGY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3MmMyMzBhN2E5YWM1YzBhYjFmOWFmYTg0OTVhZGIzODY5NWZlZmZjYzJiYzZiMjYxNGU3ZTZhMmU4NDA4MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.45vItfYh-_dYiMNQpay2uEiFduMqiUcFXUDX1VrxLfA)
I suggest adding the option "Keep current bottom panel on play" with the default value false:
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If this new option is On, the editor will not open or collapse bottom panels when starting or stopping a game.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't think it's possible.
Is there a reason why this should be core and not an add-on in the asset library?
I'm not sure it can be done with a plugin because it's builtin in the editor code:
![image](https://private-user-images.githubusercontent.com/81109165/322216509-39336290-6b22-455c-8c0c-2b5bda797cb0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDc3NDYsIm5iZiI6MTczOTMwNzQ0NiwicGF0aCI6Ii84MTEwOTE2NS8zMjIyMTY1MDktMzkzMzYyOTAtNmIyMi00NTVjLThjMGMtMmI1YmRhNzk3Y2IwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmYmZmNDlmNDIxNDg0OGYyMTg5MDIyOTExZTZkOGIxYjZjNmU3NzY5YjZkZTgyOGFmZDlkNjI0NGQ0Y2E5ODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ab1SRvAzciOefoDMd0ucgCKpKE2Ue4GXl0uSaGvmvFk)
The text was updated successfully, but these errors were encountered: