osc: Add parameters for Working Sets / OVR Toolkit's Profiles (#295)

* add `lowestBattery` parameter to match the casing of other parameters

* add the following parameters:
`isEditModeActive`, `ToggleEditMode`, `currentWorkingSet`, `CurrentProfile`, and `totalWorkingSets`

* treat fully transparent overlays as "not visible"

this fixes the `isWristVisible` parameter; it was always True even when not looking at it since the watch is usually always "active", which was the only condition before.
This commit is contained in:
Jay
2025-12-17 02:04:11 +11:00
committed by GitHub
parent c41c0b9b59
commit 6086dcf233
2 changed files with 61 additions and 14 deletions

View File

@@ -362,6 +362,14 @@ impl<T> OverlayWindowManager<T> {
self.edit_mode
}
pub const fn get_current_set(&self) -> Option<usize> {
self.current_set
}
pub const fn get_total_sets(&self) -> usize {
self.sets.len()
}
pub fn set_edit_mode(&mut self, enabled: bool, app: &mut AppState) -> anyhow::Result<()> {
let changed = enabled != self.edit_mode;
self.edit_mode = enabled;