Add popup toggle to settings view

Introduce `show_popup` flag in SettingsState, toggle it with the Space
key, and
render a yellow test popup in the settings view when the flag is true.
This commit is contained in:
2026-03-14 20:35:03 +01:00
parent 3d0aa42d7d
commit acc6ba08f3
3 changed files with 30 additions and 2 deletions
+2
View File
@@ -39,6 +39,7 @@ pub struct SettingsState {
pub id: usize,
pub name: &'static str,
pub selected_setting: usize,
pub show_popup: bool,
}
impl GameStates {
@@ -67,6 +68,7 @@ impl GameStates {
id: 4,
name: "Settings",
selected_setting: 0,
show_popup: false,
},
}
}