added notes, improved other features and removed most bugs
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
pub struct EditorScene {
|
||||
rect: egui::Rect,
|
||||
}
|
||||
|
||||
impl EditorScene {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
rect: egui::Rect::ZERO,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn ui(&mut self, ctx: &egui::Context) {
|
||||
egui::CentralPanel::default()
|
||||
.frame(egui::Frame::NONE)
|
||||
.show(ctx, |ui| {
|
||||
egui::Scene::default()
|
||||
.zoom_range(0.1..=10.0)
|
||||
.show(ui, &mut self.rect, |ui| {
|
||||
egui::Resize::default().auto_sized().show(ui, |ui| {
|
||||
ui.group(|ui| {
|
||||
ui.label("Scene");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user