Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions UI/Components/AutoSplitIntegrationComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

internal bool GameTimePausing { get; set; } = false;

internal bool StartMinimized { get; set; } = false;

internal AutoSplitIntegrationComponentSettings Settings { get; }

internal LiveSplitState State { get; private set; }
Expand Down Expand Up @@ -47,7 +49,7 @@
public float PaddingLeft => 0;
public float PaddingRight => 0;

public AutoSplitIntegrationComponent(LiveSplitState state)

Check warning on line 52 in UI/Components/AutoSplitIntegrationComponent.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'SettingsPath' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 52 in UI/Components/AutoSplitIntegrationComponent.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'AutoSplitPath' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 52 in UI/Components/AutoSplitIntegrationComponent.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'AutoSplit' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 52 in UI/Components/AutoSplitIntegrationComponent.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'SettingsPath' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 52 in UI/Components/AutoSplitIntegrationComponent.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'AutoSplitPath' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 52 in UI/Components/AutoSplitIntegrationComponent.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'AutoSplit' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
{
State = state;
Timer = new TimerModel()
Expand Down
106 changes: 68 additions & 38 deletions UI/Components/AutoSplitIntegrationComponentSettings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions UI/Components/AutoSplitIntegrationComponentSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ internal XmlNode GetSettings(XmlDocument document)
SettingsHelper.CreateSetting(document, settingsElement, "AutoSplitPath", component.AutoSplitPath);
SettingsHelper.CreateSetting(document, settingsElement, "SettingsPath", component.SettingsPath);
SettingsHelper.CreateSetting(document, settingsElement, "GameTimePausing", component.GameTimePausing);
SettingsHelper.CreateSetting(document, settingsElement, "StartMinimized", component.StartMinimized);

return settingsElement;
}
Expand All @@ -85,6 +86,7 @@ internal void SetSettings(XmlNode settings)
component.AutoSplitPath = textBoxAutoSplitPath.Text = SettingsHelper.ParseString(settings["AutoSplitPath"]);
component.SettingsPath = textBoxSettingsPath.Text = SettingsHelper.ParseString(settings["SettingsPath"]);
component.GameTimePausing = checkBoxGameTimePausing.Checked = SettingsHelper.ParseBool(settings["GameTimePausing"]);
component.StartMinimized = checkBoxStartMinimized.Checked = SettingsHelper.ParseBool(settings["StartMinimized"]);

if (component.AutoSplit != null)
{
Expand Down Expand Up @@ -140,6 +142,8 @@ private void ButtonSettingsPathBrowse_Click(object sender, EventArgs e)

private void CheckBoxGameTimePausing_CheckedChanged(object sender, EventArgs e) => component.GameTimePausing = checkBoxGameTimePausing.Checked;

private void CheckBoxStartMinimized_CheckedChanged(object sender, EventArgs e) => component.StartMinimized = checkBoxStartMinimized.Checked;

private void TextBoxAutoSplitPath_TextChanged(object sender, EventArgs e) => component.AutoSplitPath = textBoxAutoSplitPath.Text;

private void TextBoxSettingsPath_TextChanged(object sender, EventArgs e) => component.SettingsPath = textBoxSettingsPath.Text;
Expand Down
2 changes: 1 addition & 1 deletion UI/Components/AutoSplitProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

internal bool GameTimePausing { get; set; } = false;

public AutoSplitProcess(AutoSplitIntegrationComponent component)

Check warning on line 54 in UI/Components/AutoSplitProcess.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'MainProcess' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 54 in UI/Components/AutoSplitProcess.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'StartupProcess' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 54 in UI/Components/AutoSplitProcess.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'MainProcess' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 54 in UI/Components/AutoSplitProcess.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'StartupProcess' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
{
this.component = component;
settings = component.Settings;
Expand All @@ -65,7 +65,7 @@
StartInfo = new ProcessStartInfo()
{
FileName = component.AutoSplitPath,
Arguments = "--auto-controlled",
Arguments = component.StartMinimized ? "--auto-controlled --minimized" : "--auto-controlled",
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true,
Expand Down
7 changes: 5 additions & 2 deletions update.LiveSplit.AutoSplitIntegration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@
<update version="0.0.0">
<files />
<changelog>
<change>Added a "Start AutoSplit minimized" option (requires AutoSplit v2.4+).</change>
</changelog>
</update>
<update version="1.8.3">
<files>
<file path="download/v1.8.3/LiveSplit.AutoSplitIntegration.dll" localPath="Components/LiveSplit.AutoSplitIntegration.dll" status="changed" />
<file path="download/v1.8.3/LiveSplit.AutoSplitIntegration.pdb" localPath="Components/LiveSplit.AutoSplitIntegration.pdb" status="added" />
<file path="download/v1.8.3/LiveSplit.AutoSplitIntegration.dll"
localPath="Components/LiveSplit.AutoSplitIntegration.dll" status="changed" />
<file path="download/v1.8.3/LiveSplit.AutoSplitIntegration.pdb"
localPath="Components/LiveSplit.AutoSplitIntegration.pdb" status="added" />
</files>
<changelog>
<change>Rebuilt on .NET Framework 4.8.1.</change>
Expand Down
Loading