Support emulating low battery
This commit is contained in:
@@ -141,6 +141,8 @@ pub struct SimConfig {
|
||||
#[serde(default = "default_audio_enabled")]
|
||||
pub audio_enabled: bool,
|
||||
#[serde(default)]
|
||||
pub low_battery: bool,
|
||||
#[serde(default)]
|
||||
pub position: Option<Pos2>,
|
||||
}
|
||||
|
||||
@@ -154,6 +156,7 @@ impl SimConfig {
|
||||
colors: COLOR_PRESETS[0],
|
||||
dimensions: DisplayMode::Anaglyph.proportions() + Vec2::new(0.0, 22.0),
|
||||
audio_enabled: true,
|
||||
low_battery: false,
|
||||
position: None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user