generated from GarandPLG/rust-flake-template
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:
@@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user