Skip to content

Commit a467473

Browse files
committed
Add parameters documentation button
* Add button next to the custom parameters text box that will open the user's preferred browser to the online steam documentation.
1 parent 4d58e81 commit a467473

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

SAM/SettingsWindow.xaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@
134134
<CheckBox x:Name="TcpCheckBox" Content="-tcp" HorizontalAlignment="Left" Margin="203,98,0,0" VerticalAlignment="Top" ToolTip="Forces connection to Steam backend to be via TCP."/>
135135
<CheckBox x:Name="TenFootCheckBox" Content="-tenfoot" HorizontalAlignment="Left" Margin="203,121,0,0" VerticalAlignment="Top" ToolTip="Start Steam in Big Picture Mode."/>
136136
<CheckBox x:Name="CustomParametersCheckBox" Content="" HorizontalAlignment="Left" Margin="12,150,0,0" VerticalAlignment="Top" Foreground="#FFD1D1D1" Checked="CustomParametersCheckBox_Checked" Unchecked="CustomParametersCheckBox_Unchecked" ToolTip="Toggle custom parameters"/>
137-
<TextBox x:Name="CustomParametersTextBox" HorizontalAlignment="Left" Height="19" Margin="34,146,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="294" IsEnabled="False"/>
137+
<TextBox x:Name="CustomParametersTextBox" HorizontalAlignment="Center" Height="19" Margin="33,146,35,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="266" IsEnabled="False"/>
138+
<Button x:Name="CustomParamsHelpButton" Content="?" Margin="0,146,8,13" Height="23" Width="25" HorizontalAlignment="Right" ToolTip="Online documentation" Click="CustomParamsHelpButton_Click"/>
138139
</Grid>
139140
</TabItem>
140141
</TabControl>

SAM/SettingsWindow.xaml.cs

+5
Original file line numberDiff line numberDiff line change
@@ -468,5 +468,10 @@ private void AutoReloadCheckBox_Unchecked(object sender, RoutedEventArgs e)
468468
{
469469
AutoReloadIntervalSpinBox.IsEnabled = false;
470470
}
471+
472+
private void CustomParamsHelpButton_Click(object sender, RoutedEventArgs e)
473+
{
474+
Process.Start("https://developer.valvesoftware.com/wiki/Command_Line_Options#Steam_.28Windows.29");
475+
}
471476
}
472477
}

0 commit comments

Comments
 (0)