fixed
parent
81be82d0c6
commit
bd90426dc6
13
src/debug.rs
13
src/debug.rs
|
@ -26,7 +26,7 @@ pub enum Callback
|
|||
MainMenu,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, PartialEq)]
|
||||
pub enum OpenWindows {
|
||||
ModelInfo,
|
||||
TestWind,
|
||||
|
@ -121,17 +121,18 @@ impl Debug {
|
|||
let mut id = 0;
|
||||
for (hashId, windowType) in &self.windows
|
||||
{
|
||||
if let _window = windowType {id = *hashId; println!("found a match!")};
|
||||
match windowType
|
||||
{
|
||||
window => id = *hashId,
|
||||
_ => ()
|
||||
if *windowType == window {
|
||||
id = *hashId;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
if id !=0
|
||||
{
|
||||
self.windows.remove(&id);
|
||||
self.free_ids.push(id);
|
||||
}
|
||||
}
|
||||
|
||||
fn displayTest(ui: &mut imgui::Ui, testI: &mut info::testI) -> Vec<dEvent>
|
||||
{
|
||||
|
|
|
@ -28,8 +28,6 @@ use sdl2::pixels::Color;
|
|||
use sdl2::keyboard::Keycode;
|
||||
use sdl2::event::Event;
|
||||
|
||||
use std::sync::mpsc::Receiver;
|
||||
use std::ptr;
|
||||
use std::mem;
|
||||
use std::os::raw::c_void;
|
||||
use std::path::Path;
|
||||
|
|
Loading…
Reference in New Issue