This commit is contained in:
luckyturtledev 2024-07-06 19:40:25 +02:00
parent 194b12d665
commit 49d565e73b

View file

@ -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));
});
}