File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ path = "src/main.rs"
1111[dependencies ]
1212dreammaker = { path = " ../dreammaker" }
1313dmm-tools = { path = " ../dmm-tools" , features = [" gfx_core" ] }
14- imgui = " 0.12.0"
14+ imgui = { version = " 0.12.0" , features = [ " docking " ] }
1515imgui-sdl3 = " 0.5.0"
1616lodepng = " 3.10.7"
1717ndarray = " 0.15.6"
Original file line number Diff line number Diff line change @@ -438,6 +438,8 @@ impl EditorScene {
438438 }
439439
440440 fn run_ui ( & mut self , ui : & Ui , renderer : & mut ImRenderer ) -> bool {
441+ ui. dockspace_over_main_viewport ( ) ;
442+
441443 for tool in self . tools . iter_mut ( ) {
442444 tool. icon . prepare (
443445 self . environment . as_ref ( ) ,
Original file line number Diff line number Diff line change 11//! Platform support helpers.
2- use imgui:: { Context , FontConfig } ;
2+ use imgui:: { ConfigFlags , Context , FontConfig } ;
33use imgui_sdl3:: { platform:: Platform , renderer:: Renderer } ;
44use sdl3:: {
55 event:: { Event , WindowEvent } ,
@@ -39,6 +39,7 @@ pub fn run(title: &str) {
3939 imgui. style_mut ( ) . use_dark_colors ( ) ;
4040 imgui. set_ini_filename ( None ) ;
4141 imgui. set_log_filename ( None ) ;
42+ imgui. io_mut ( ) . config_flags |= ConfigFlags :: DOCKING_ENABLE ;
4243 imgui
4344 . fonts ( )
4445 . add_font ( & [ imgui:: FontSource :: DefaultFontData {
You can’t perform that action at this time.
0 commit comments