mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #112087 from KoBeWi/improved_docking
Improve editing EditorDock node
This commit is contained in:
commit
ada0e6032e
2 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ void EditorDock::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("set_default_slot", "slot"), &EditorDock::_set_default_slot_bind);
|
||||
ClassDB::bind_method(D_METHOD("get_default_slot"), &EditorDock::_get_default_slot_bind);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "default_slot"), "set_default_slot", "get_default_slot");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "default_slot", PROPERTY_HINT_ENUM, "None:-1,Left Side Upper-Left,Left Side Bottom-Left,Left Side Upper-Right,Left Side Bottom-Right,Right Side Upper-Left,Right Side Bottom-Left,Right Side Upper-Right,Right Side Bottom-Right,Bottom"), "set_default_slot", "get_default_slot");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_available_layouts", "layouts"), &EditorDock::set_available_layouts);
|
||||
ClassDB::bind_method(D_METHOD("get_available_layouts"), &EditorDock::get_available_layouts);
|
||||
|
|
|
|||
1
editor/icons/EditorDock.svg
Normal file
1
editor/icons/EditorDock.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#f0caa0" d="m 5.142578,2.9999997 c -0.6331428,0 -1.1425781,0.510027 -1.1425781,1.1425781 V 9.849609 c 0,0.632551 0.5094353,1.142578 1.1425781,1.142578 h 5.714844 C 11.490565,10.992187 12,10.48216 12,9.849609 V 4.1425778 C 12,3.5100267 11.490565,2.9999997 10.857422,2.9999997 Z m 0.8574219,1.9960937 h 4 v 4 h -4 z M 0.99999991,9 v 3 c 0,1.104569 0.89543049,2 1.99999999,2 H 13 c 1.104569,0 2,-0.895431 2,-2 V 9 h -2 v 3 H 2.9999999 V 9 Z"/></svg>
|
||||
|
After Width: | Height: | Size: 522 B |
Loading…
Add table
Add a link
Reference in a new issue