Skip to content

set Branch to updated version#2

Merged
ConnorMolz merged 24 commits intoAdd-hybrid-info-overlayfrom
dev
Jan 5, 2026
Merged

set Branch to updated version#2
ConnorMolz merged 24 commits intoAdd-hybrid-info-overlayfrom
dev

Conversation

@ConnorMolz
Copy link
Owner

No description provided.

RiddleTime and others added 24 commits December 9, 2025 03:45
remove test data comments
add extra debugging to info panel
this should reset the controller to the user profile (like leds etc and release control over it)
merge releasenotes 2.5.3.0 it is
2.5.3.0
DSX
- Race Element now disconnects from DSX if there is no supported game running.

iRacing
- Lap Delta Bar HUD: Added 3 sources for delta calculation: Session Best, Last Lap and Optimal Lap. (By ConnorMolz)
name correction
add a base for a new hud that can collect data about acceleration
add working concept, use handbrake at slow speed to initiate
Copilot AI review requested due to automatic review settings January 5, 2026 08:02
@ConnorMolz ConnorMolz merged commit 3750f54 into Add-hybrid-info-overlay Jan 5, 2026
2 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates Race Element to version 2.5.3.0, adding a new DSX feature that disconnects from DSX when no supported game is running. The PR also includes a code style fix and a reordering of the contributors list.

  • Added version 2.5.3.0 release notes documenting the DSX disconnect feature
  • Added defensive null check for font field in InfoPanel.Draw method
  • Fixed readonly modifier placement in BroadcastConfig to follow C# conventions

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

File Description
Race_Element/Controls/Info/ReleaseNotes.cs Added version 2.5.3.0 entry with DSX disconnect feature notes
Race_Element.HUD/Overlay/OverlayUtil/InfoPanel.cs Added null check for _font field and imported LogWriter utility
Race_Element.Broadcast/BroadcastConfig.cs Corrected readonly modifier order to match C# style guidelines
README.md Moved ConnorMolz up in contributors list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +77 to +82
if (_font == null)
{
LogWriter.WriteToLog("InfoPanel font is null, cannot draw panel.");
return;
}

Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

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

The null check for _font is unnecessary because _font is a readonly field that is always initialized in the constructor (line 45). Since the field is readonly and cannot be reassigned after construction, and the constructor always assigns it via FontUtil.FontSegoeMono, this defensive check will never be true in normal operation. If FontUtil.FontSegoeMono can return null, the constructor itself should validate this rather than checking on every Draw call.

Suggested change
if (_font == null)
{
LogWriter.WriteToLog("InfoPanel font is null, cannot draw panel.");
return;
}

Copilot uses AI. Check for mistakes.
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.

4 participants