Skip to content

Overlays reset all button#44

Merged
mherbold merged 4 commits into
mainfrom
overlays-reset-all-button
Jun 15, 2026
Merged

Overlays reset all button#44
mherbold merged 4 commits into
mainfrom
overlays-reset-all-button

Conversation

@mherbold

Copy link
Copy Markdown
Owner

No description provided.

mherbold and others added 4 commits June 15, 2026 14:36
Replace the three per-overlay "Reset the overlay window position" buttons
with a single "Reset all overlay windows" button in the All Overlays
section. Clicking it resets all three overlay window positions to 0,0 and
all three overlay window scales to 100% in one action.

- Reset writes the position (0,0) and scale (100%) settings for all
  overlays and moves any currently-open windows immediately, so it works
  whether or not the windows are open.
- Simplify each overlay group's layout to a StackPanel now that the
  per-overlay scale knobs and reset buttons are gone.
- Add the ResetAllOverlayWindows localization string.
- Reduce overlay scale drag sensitivity (0.005 -> 0.0015) for finer
  control when scaling via the orange icon.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 15, 2026 23:21
@mherbold
mherbold merged commit cf28f8c into main Jun 15, 2026
1 of 2 checks passed
@mherbold
mherbold deleted the overlays-reset-all-button branch June 15, 2026 23:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Delta Monitor overlay window (lap time + delta vs last lap + delta vs class leader) and replaces the per-overlay reset buttons with a single “Reset all overlay windows” action, including persisted scale/position reset. To support leader/last-lap comparisons, it extends timing marker tracking to expose both current and previous lap start times per car.

Changes:

  • Introduce DeltaMonitorWindow (XAML + code-behind) and wire it into App lifecycle/ticking and the Overlays settings UI.
  • Add new Settings + localization keys for Delta Monitor, plus a “Reset all overlay windows” button that resets overlay scales/positions.
  • Extend TimingMarkers with TryGetLapStartTimes() (current + previous lap start) and add Drivers.DriverInfo.CarClassID for class-leader identification.

Reviewed changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated no comments.

Show a summary per file
File Description
MarvinsAIRARefactored/Windows/DeltaMonitorWindow.xaml.cs New overlay window logic: lap/delta computations, draggable/scalable behavior, persistence hooks
MarvinsAIRARefactored/Windows/DeltaMonitorWindow.xaml New overlay UI layout + bindings to Settings/localization
MarvinsAIRARefactored/Pages/OverlaysPage.xaml.cs Replace per-overlay reset handlers with a single “reset all overlays” handler; add Delta section support
MarvinsAIRARefactored/Pages/OverlaysPage.xaml Add “Reset all overlay windows” button; add Delta Monitor group; remove per-overlay reset buttons
MarvinsAIRARefactored/DataContext/Settings.cs Add Settings for Delta Monitor visibility/title/scale/position
MarvinsAIRARefactored/Components/TimingMarkers.cs Track previous lap start time and expose lap-start times for overlays
MarvinsAIRARefactored/Components/Simulator.cs Trigger Delta Monitor overlay visibility updates on connect/telemetry/disconnect paths
MarvinsAIRARefactored/Components/Drivers.cs Persist CarClassID in DriverInfo for class leader selection
MarvinsAIRARefactored/Classes/OverlayWindowScaler.cs Adjust scaling sensitivity for overlay drag-resize
MarvinsAIRARefactored/App.xaml.cs Add DeltaMonitor window instance management, visibility control, ticking, and shutdown handling
MarvinsAIRARefactored/Resources/Resources.resx Add Delta Monitor + reset-all localization keys; remove unused overlay/STT/wizard/subscription strings
MarvinsAIRARefactored/Resources/Resources.*.resx Add localized Delta Monitor + reset-all keys across languages; remove unused strings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants