diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 7957f14..6e54c59 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,14 +12,14 @@ pub mod grid; pub mod gui; pub mod map; pub mod math; -pub mod scaleable; pub mod svg; pub mod tool; pub mod transform; +pub mod transformable; use config::Config; use editor::Editor; -use gui::ToolSidebar; +use gui::{DimensionIndicator, ToolSidebar}; use raylib::prelude::*; use std::ffi::CString; use std::io; @@ -65,6 +65,7 @@ fn main() { )); let mut editor = Editor::new(&mut rl, &thread, config); + let mut dimension_indicator = DimensionIndicator::new(); let tool_sidebar = ToolSidebar::new(&mut rl, &thread); let mut transform = Transform::new(); @@ -90,6 +91,8 @@ fn main() { ); } + dimension_indicator.update(editor.map_mut(), &mut rl); + editor.update( &mut rl, &transform, @@ -105,6 +108,8 @@ fn main() { editor.draw_tools(&mut d, &transform); tool_sidebar.draw(screen_height as u16, &mut d, &mut editor); + + dimension_indicator.draw(&mut d, &transform); } } } |
