mirror of
https://github.com/JanNeuendorf/SVC16.git
synced 2025-06-03 01:50:18 +00:00
Indicate paused state in window title
This commit is contained in:
parent
4d1d911a79
commit
c52aa24609
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "svc16"
|
||||
version = "0.4.1"
|
||||
version = "0.4.2"
|
||||
edition = "2021"
|
||||
authors = ["Jan Neuendorf"]
|
||||
description = "An emulator for a simple virtual computer"
|
||||
|
@ -62,6 +62,11 @@ fn main() -> Result<()> {
|
||||
}
|
||||
if input.key_pressed_logical(Key::Character("p")) {
|
||||
paused = !paused;
|
||||
if paused {
|
||||
window.set_title("SVC16 (paused)");
|
||||
} else {
|
||||
window.set_title("SVC16");
|
||||
}
|
||||
}
|
||||
if input.key_pressed_logical(Key::Character("r")) {
|
||||
engine = Engine::new(initial_state.clone());
|
||||
|
Loading…
x
Reference in New Issue
Block a user