mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-10 04:57:02 +00:00
debugger toggle
This commit is contained in:
parent
a08ea7a86b
commit
662dc2adbf
|
@ -56,6 +56,10 @@ impl LiveDebugger {
|
||||||
self.selected_event = -1;
|
self.selected_event = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !state.debugger {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
Window::new(im_str!("Debugger"))
|
Window::new(im_str!("Debugger"))
|
||||||
.resizable(false)
|
.resizable(false)
|
||||||
.collapsed(true, Condition::FirstUseEver)
|
.collapsed(true, Condition::FirstUseEver)
|
||||||
|
|
|
@ -209,6 +209,7 @@ impl SharedGameState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ScanCode::F10 => self.settings.debug_outlines = !self.settings.debug_outlines,
|
ScanCode::F10 => self.settings.debug_outlines = !self.settings.debug_outlines,
|
||||||
|
ScanCode::F12 => self.debugger = !self.debugger,
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue