This PR takes the UI logic out of RenetServerVisualizer's show_window(&mut self, ctx: &egui::Context) into a new draw_ui(&mut self, ui: &mut egui::Ui), so that other modules can directly integrate the server visualization into their own windows or panels.
I've used this to integrate this as a new EditorWindow for bevy_editor_pls.
This PR takes the UI logic out of
RenetServerVisualizer
'sshow_window(&mut self, ctx: &egui::Context)
into a newdraw_ui(&mut self, ui: &mut egui::Ui)
, so that other modules can directly integrate the server visualization into their own windows or panels.I've used this to integrate this as a new EditorWindow for bevy_editor_pls.