mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
Merge pull request #12291 from vladimir-garnovski/patch-1
Correction for example C# code in 'A custom dock'
This commit is contained in:
@@ -390,10 +390,10 @@ The script could look like this:
|
||||
_dock.Title = "My Dock";
|
||||
|
||||
// Note that LeftUl means the left of the editor, upper-left dock.
|
||||
_dock.DefaultSlot = DockSlot.LeftUl;
|
||||
_dock.DefaultSlot = EditorDock.DockSlot.LeftUl;
|
||||
|
||||
// Allow the dock to be on the left or right of the editor, and to be made floating.
|
||||
_dock.AvailableLayouts = DockLayout.Horizontal | DockLayout.Floating;
|
||||
_dock.AvailableLayouts = EditorDock.DockLayout.Horizontal | EditorDock.DockLayout.Floating;
|
||||
|
||||
AddDock(_dock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user