These changes allow players to matchmake for local wireless using a LDN server. The network implementation originates from Berry's public TCP RyuLDN fork. Logo and unrelated changes have been removed. Additionally displays LDN game status in the game selection window when RyuLDN is enabled. Functionality is only enabled while network mode is set to "RyuLDN" in the settings.
111 lines
5.5 KiB
XML
111 lines
5.5 KiB
XML
<UserControl
|
|
x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsNetworkView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
mc:Ignorable="d"
|
|
x:DataType="viewModels:SettingsViewModel">
|
|
<Design.DataContext>
|
|
<viewModels:SettingsViewModel />
|
|
</Design.DataContext>
|
|
<ScrollViewer
|
|
Name="NetworkPage"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<Border Classes="settings">
|
|
<StackPanel
|
|
Margin="10"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical"
|
|
Spacing="10">
|
|
<TextBlock Classes="h1" Text="{ext:Locale SettingsTabNetworkMultiplayer}" />
|
|
<StackPanel Margin="10,0,0,0" Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
Text="{ext:Locale MultiplayerMode}"
|
|
ToolTip.Tip="{ext:Locale MultiplayerModeTooltip}"
|
|
Width="200" />
|
|
<ComboBox SelectedIndex="{Binding MultiplayerModeIndex}"
|
|
ToolTip.Tip="{ext:Locale MultiplayerModeTooltip}"
|
|
HorizontalContentAlignment="Left"
|
|
Width="250">
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{ext:Locale MultiplayerModeDisabled}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{ext:Locale MultiplayerModeLdnRyu}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{ext:Locale MultiplayerModeLdnMitm}" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
<CheckBox Margin="10,0,0,0" IsChecked="{Binding DisableP2P}">
|
|
<TextBlock Text="{ext:Locale MultiplayerDisableP2P}"
|
|
ToolTip.Tip="{ext:Locale MultiplayerDisableP2PTooltip}" />
|
|
</CheckBox>
|
|
</StackPanel>
|
|
<StackPanel Margin="10,0,0,0" Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
Text="{ext:Locale LdnPassphrase}"
|
|
ToolTip.Tip="{ext:Locale LdnPassphraseTooltip}"
|
|
Width="200" />
|
|
<TextBox Name="LdnPassphrase"
|
|
Text="{Binding LdnPassphrase}"
|
|
Width="250"
|
|
MaxLength="16"
|
|
ToolTip.Tip="{ext:Locale LdnPassphraseInputTooltip}"
|
|
Watermark="{ext:Locale LdnPassphraseInputPublic}" />
|
|
<Button
|
|
Name="GenLdnPassButton"
|
|
Grid.Column="1"
|
|
MinWidth="90"
|
|
Margin="10,0,0,0"
|
|
ToolTip.Tip="{ext:Locale GenLdnPassTooltip}"
|
|
Click="GenLdnPassButton_OnClick">
|
|
<TextBlock HorizontalAlignment="Center"
|
|
Text="{ext:Locale GenLdnPass}" />
|
|
</Button>
|
|
<Button
|
|
Name="ClearLdnPassButton"
|
|
Grid.Column="1"
|
|
MinWidth="90"
|
|
Margin="10,0,0,0"
|
|
ToolTip.Tip="{ext:Locale ClearLdnPassTooltip}"
|
|
Click="ClearLdnPassButton_OnClick">
|
|
<TextBlock HorizontalAlignment="Center"
|
|
Text="{ext:Locale ClearLdnPass}" />
|
|
</Button>
|
|
</StackPanel>
|
|
<TextBlock Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Name="InvalidLdnPassphraseBlock"
|
|
FontStyle="Italic"
|
|
IsVisible="{Binding IsInvalidLdnPassphraseVisible}"
|
|
Focusable="False"
|
|
Text="{ext:Locale InvalidLdnPassphrase}" />
|
|
<Separator Height="1" />
|
|
<TextBlock Classes="h1" Text="{ext:Locale SettingsTabNetworkConnection}" />
|
|
<CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableInternetAccess}">
|
|
<TextBlock Text="{ext:Locale SettingsTabSystemEnableInternetAccess}"
|
|
ToolTip.Tip="{ext:Locale EnableInternetAccessTooltip}" />
|
|
</CheckBox>
|
|
<StackPanel Margin="10,0,0,0" Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
Text="{ext:Locale SettingsTabNetworkInterface}"
|
|
ToolTip.Tip="{ext:Locale NetworkInterfaceTooltip}"
|
|
Width="200" />
|
|
<ComboBox SelectedIndex="{Binding NetworkInterfaceIndex}"
|
|
ToolTip.Tip="{ext:Locale NetworkInterfaceTooltip}"
|
|
HorizontalContentAlignment="Left"
|
|
ItemsSource="{Binding NetworkInterfaceList}"
|
|
Width="250" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</UserControl>
|