mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Resize right panel
This commit is contained in:
parent
7ed0b61676
commit
281145dacc
1 changed files with 3 additions and 3 deletions
|
|
@ -8765,8 +8765,8 @@ EditorNode::EditorNode() {
|
||||||
editor_dock_manager->add_dock(history_dock);
|
editor_dock_manager->add_dock(history_dock);
|
||||||
|
|
||||||
// Add some offsets to left_r and main hsplits to make LEFT_R and RIGHT_L docks wider than minsize.
|
// Add some offsets to left_r and main hsplits to make LEFT_R and RIGHT_L docks wider than minsize.
|
||||||
left_r_hsplit->set_split_offset(270 * EDSCALE);
|
left_r_hsplit->set_split_offset(280 * EDSCALE);
|
||||||
main_hsplit->set_split_offset(-360 * EDSCALE);
|
main_hsplit->set_split_offset(-280 * EDSCALE);
|
||||||
|
|
||||||
// Define corresponding default layout.
|
// Define corresponding default layout.
|
||||||
|
|
||||||
|
|
@ -8777,7 +8777,7 @@ EditorNode::EditorNode() {
|
||||||
default_layout->set_value(docks_section, "dock_4", "FileSystem,History");
|
default_layout->set_value(docks_section, "dock_4", "FileSystem,History");
|
||||||
default_layout->set_value(docks_section, "dock_5", "Inspector,Signals,Groups");
|
default_layout->set_value(docks_section, "dock_5", "Inspector,Signals,Groups");
|
||||||
|
|
||||||
int hsplits[] = { 0, 270, -270, 0 };
|
int hsplits[] = { 0, 280, -280, 0 };
|
||||||
DEV_ASSERT((int)std_size(hsplits) == editor_dock_manager->get_hsplit_count());
|
DEV_ASSERT((int)std_size(hsplits) == editor_dock_manager->get_hsplit_count());
|
||||||
for (int i = 0; i < editor_dock_manager->get_hsplit_count(); i++) {
|
for (int i = 0; i < editor_dock_manager->get_hsplit_count(); i++) {
|
||||||
default_layout->set_value(docks_section, "dock_hsplit_" + itos(i + 1), hsplits[i]);
|
default_layout->set_value(docks_section, "dock_hsplit_" + itos(i + 1), hsplits[i]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue