pub fn show_overlay(&mut self, ctx: &egui::CtxRef) {
        let available_rect = ctx.available_rect();
        let layer_id = egui::LayerId::background();
        let id = egui::Id::new("boneless_console");

        let clip_rect = ctx.input().screen_rect();
        let mut panel_ui = egui::Ui::new(ctx.clone(), layer_id, id, available_rect, clip_rect);

        let panel_rect = panel_ui.available_rect_before_wrap();
        let mut panel_ui = panel_ui.child_ui(panel_rect, egui::Layout::bottom_up(egui::Align::Min));

        // ctx.debug_painter()
        //     .debug_rect(panel_rect, Color32::RED, "panel_rect");

        panel_ui.expand_to_include_rect(panel_ui.max_rect()); // Expand frame to include it all
        self.show_widget(&mut panel_ui)

        // Only inform ctx about what we actually used, so we can shrink the native window to fit.
        // ctx.frame_state()
        //     .allocate_central_panel(inner_response.response.rect);
    }
/// Show the console as a whole-screen overlay, with no background - just text on whatever's
/// rendered behind it.
Show the console as a whole-screen overlay, with no background - just text on whatever's
rendered behind it.
Show the console as a whole - screen overlay with no background - just text on whatever ' s rendered behind it .
pub fn show_overlay(&mut self, ctx: &egui::CtxRef) {
        let available_rect = ctx.available_rect();
        let layer_id = egui::LayerId::background();
        let id = egui::Id::new("boneless_console");
        let clip_rect = ctx.input().screen_rect();
        let mut panel_ui = egui::Ui::new(ctx.clone(), layer_id, id, available_rect, clip_rect);
        let panel_rect = panel_ui.available_rect_before_wrap();
        let mut panel_ui = panel_ui.child_ui(panel_rect, egui::Layout::bottom_up(egui::Align::Min));
        // ctx.debug_painter()
        //     .debug_rect(panel_rect, Color32::RED, "panel_rect");
        panel_ui.expand_to_include_rect(panel_ui.max_rect()); // Expand frame to include it all
        self.show_widget(&mut panel_ui)
        // Only inform ctx about what we actually used, so we can shrink the native window to fit.
        // ctx.frame_state()
        //     .allocate_central_panel(inner_response.response.rect);
    }
pub fn show_overlay ( & mut self , ctx : & egui :: CtxRef ) { let available_rect = ctx . available_rect ( ) ; let layer_id = egui :: LayerId :: background ( ) ; let id = egui :: Id :: new ( " " ) ; let clip_rect = ctx . input ( ) . screen_rect ( ) ; let mut panel_ui = egui :: Ui :: new ( ctx . clone ( ) , layer_id , id , available_rect , clip_rect ) ; let panel_rect = panel_ui . available_rect_before_wrap ( ) ; let mut panel_ui = panel_ui . child_ui ( panel_rect , egui :: Layout :: bottom_up ( egui :: Align :: Min ) ) ; // ctx.debug_painter() //     .debug_rect(panel_rect, Color32::RED, "panel_rect"); panel_ui . expand_to_include_rect ( panel_ui . max_rect ( ) ) ; // Expand frame to include it all self . show_widget ( & mut panel_ui ) // Only inform ctx about what we actually used, so we can shrink the native window to fit. // ctx.frame_state() //     .allocate_central_panel(inner_response.response.rect); }
Show the console as a whole-screen overlay, with no background - just text on whatever's
rendered behind it.
Show the console as a whole - screen overlay with no background - just text on whatever ' s rendered behind it .
&mut self
ctx
&egui::CtxRef
&mut self
ctx
&egui::CtxRef