debugger toggle

This commit is contained in:
Alula 2021-04-19 21:13:18 +02:00
parent a08ea7a86b
commit 662dc2adbf
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,10 @@ impl LiveDebugger {
self.selected_event = -1;
}
if !state.debugger {
return Ok(());
}
Window::new(im_str!("Debugger"))
.resizable(false)
.collapsed(true, Condition::FirstUseEver)

View File

@ -209,6 +209,7 @@ impl SharedGameState {
}
}
ScanCode::F10 => self.settings.debug_outlines = !self.settings.debug_outlines,
ScanCode::F12 => self.debugger = !self.debugger,
_ => {}
}
}