diff --git a/src/ui.rs b/src/ui.rs index 3bed45f..e426004 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1,5 +1,8 @@ +use comfy::egui::Pos2; +use comfy::egui::Rect; use comfy::EngineContext; use comfy::egui; +use comfy::GREEN; use comfy::RED; use crate::State; @@ -8,6 +11,7 @@ pub fn draw(state: &State, engine: &EngineContext) { .anchor(egui::Align2::RIGHT_BOTTOM, egui::vec2(0.0, 0.0)) .show(egui(), |ui| { let painter = ui.painter(); + painter.rect(Rect{min: Pos2::new(0.0, 0.0), max: Pos2::new(32.0, 32.0)}, 0.0, RED, (4.0, GREEN)); }); } \ No newline at end of file