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

Extract BottomPanel from EditorNode #87760

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Jan 30, 2024

Extracts all functionality related to the bottom panel from EditorNode.
No functionality should change.

Details

  • Added editor/gui/editor_bottom_panel.h/cpp
  • Removed bottom_hb, since it was never used anywhere.
  • Added bool p_visible param to make_item_visible() (make_bottom_panel_item_visible()) since EditorNode needed it.
  • Added save_layout_to_config() and load_layout_from_config().
  • Renamed variables and methods to be more clear.
  • It needs set_process(true) as part of Fix broken bottom panel switching #72420, this can be removed in the future when a better fix is made for it.

@@ -38,6 +38,7 @@
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/editor_bottom_panel.h"
Copy link
Member

@KoBeWi KoBeWi Feb 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth checking whether editor_node.h can be removed (in all files).

EDIT:
Nevermind, the bottom panel would have to be singleton itself to do that.

editor/editor_node.cpp Outdated Show resolved Hide resolved
@kitbdev
Copy link
Contributor Author

kitbdev commented Feb 20, 2024

Rebased after #86378 and changed to use set_pressed_no_signal().

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 23, 2024
@akien-mga akien-mga merged commit 4582ee1 into godotengine:master Feb 23, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@kitbdev kitbdev deleted the extract-bottom-dock branch February 23, 2024 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants