UkoeHB / renet2

Server/Client network library for multiplayer games with authentication and connection management made with Rust. Forked from renet.
Apache License 2.0
18 stars 3 forks source link

Split UI code out of RenetServerVisualizer::show_window into ::draw_ui #9

Closed zhaop closed 5 months ago

zhaop commented 5 months ago

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.