|
45 | 45 | </StackPanel> |
46 | 46 | <StackPanel Width="86" Margin="0,0,0,-0.4"/> |
47 | 47 | <StackPanel Width="208" Margin="0,0,0,-0.4"> |
48 | | - <ComboBox x:Name="LoginServerModeDropdown" Margin="0,5" VerticalAlignment="Top" ItemsSource="{Binding Source={StaticResource enumLoginServerMode}}" SelectedItem="{Binding LoginServer.LoginServer, Mode=TwoWay}" Height="23" SelectionChanged="LoginServerModeDropdown_SelectionChanged" /> |
49 | | - <TextBox x:Name="CustomLoginServerTextBox" Height="23" TextWrapping="Wrap" Text="{Binding LoginServer.CustomLoginServerHost, Mode=TwoWay}" VerticalAlignment="Top" IsEnabled="{Binding LoginServer.IsCustom, Mode=OneWay}"/> |
| 48 | + <ComboBox x:Name="LoginServerModeDropdown" Margin="0,5" VerticalAlignment="Top" ItemsSource="{Binding Source={StaticResource enumLoginServerMode}}" SelectedItem="{Binding LauncherConfig.LoginServer.LoginServer, Mode=TwoWay}" Height="23" SelectionChanged="LoginServerModeDropdown_SelectionChanged" /> |
| 49 | + <TextBox x:Name="CustomLoginServerTextBox" Height="23" TextWrapping="Wrap" Text="{Binding LauncherConfig.LoginServer.CustomLoginServerHost, Mode=TwoWay}" VerticalAlignment="Top" IsEnabled="{Binding LauncherConfig.LoginServer.IsCustom, Mode=OneWay}"/> |
50 | 50 | </StackPanel> |
51 | 51 | </StackPanel> |
52 | 52 | </GroupBox> |
53 | 53 | <GroupBox Header="Game Path" Height="58" Margin="10,10,10,0" VerticalAlignment="Top" RenderTransformOrigin="0.494,0.765"> |
54 | 54 | <StackPanel Orientation="Horizontal"> |
55 | | - <TextBox x:Name="GamePathTextBox" Width="346" Margin="0,3,5,5.4" Height="22" Text="{Binding GamePath, Mode=TwoWay}" MaxLines="1"/> |
| 55 | + <TextBox x:Name="GamePathTextBox" Width="346" Margin="0,3,5,5.4" Height="22" Text="{Binding LauncherConfig.GamePath, Mode=TwoWay}" MaxLines="1"/> |
56 | 56 | <Button x:Name="GamePathChooseButton" Content="Choose" Width="55" Margin="0,5,0,7.2" RenderTransformOrigin="1.333,0.582" Height="22.4" Click="GamePathChooseButton_Click"/> |
57 | 57 | </StackPanel> |
58 | 58 | </GroupBox> |
|
61 | 61 | <RadioButton x:Name="InjectionModeManualRadio" Content="Manual" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" GroupName="InjectionModeRadio" Checked="InjectionModeManualRadio_Checked" /> |
62 | 62 | <StackPanel Height="41" Margin="0,0,0.4,0" Orientation="Horizontal"> |
63 | 63 | <RadioButton x:Name="InjectionModeAutoRadio" Content="Automatic" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" GroupName="InjectionModeRadio" Checked="InjectionModeAutoRadio_Checked" /> |
64 | | - <Slider x:Name="InjectionModeAutoSlider" HorizontalAlignment="Left" Height="34" Margin="5,5,0,0" VerticalAlignment="Top" Width="90" TickPlacement="BottomRight" Minimum="5" Maximum="45" TickFrequency="5" Value="{Binding Injection.AutoInjectTimer, Mode=TwoWay}" IsEnabled="{Binding Injection.IsAutomatic, Mode=OneWay}" /> |
65 | | - <Label x:Name="InjectionModeAutoLabel" Content="{Binding Injection.AutoInjectTimer}" IsEnabled="{Binding Injection.IsAutomatic, Mode=OneWay}" /> |
| 64 | + <Slider x:Name="InjectionModeAutoSlider" HorizontalAlignment="Left" Height="34" Margin="5,5,0,0" VerticalAlignment="Top" Width="90" TickPlacement="BottomRight" Minimum="5" Maximum="45" TickFrequency="5" Value="{Binding LauncherConfig.Injection.AutoInjectTimer, Mode=TwoWay}" IsEnabled="{Binding LauncherConfig.Injection.IsAutomatic, Mode=OneWay}" /> |
| 65 | + <Label x:Name="InjectionModeAutoLabel" Content="{Binding LauncherConfig.Injection.AutoInjectTimer}" IsEnabled="{Binding LauncherConfig.Injection.IsAutomatic, Mode=OneWay}" /> |
66 | 66 | </StackPanel> |
67 | 67 | </StackPanel> |
68 | 68 | </GroupBox> |
|
74 | 74 | <StackPanel> |
75 | 75 | <StackPanel Height="30" Orientation="Horizontal" Margin="0,0,-0.2,0"> |
76 | 76 | <Label Content="Release Channel:" Margin="0,0,0,0.4"/> |
77 | | - <ComboBox x:Name="DLLModeDropdown" Margin="5,3,5,5.4" SelectedIndex="0" ItemsSource="{Binding Source={StaticResource enumDLLMode}}" SelectedItem="{Binding DLL.Channel, Mode=TwoWay}" /> |
| 77 | + <ComboBox x:Name="DLLModeDropdown" Margin="5,3,5,5.4" SelectedIndex="0" ItemsSource="{Binding Source={StaticResource enumDLLMode}}" SelectedItem="{Binding LauncherConfig.DLL.Channel, Mode=TwoWay}" /> |
78 | 78 | </StackPanel> |
79 | 79 | <StackPanel Height="52" Orientation="Horizontal" Margin="0,0,-0.2,0"> |
80 | | - <TextBox x:Name="CustomDLLPathTextBox" Width="346" Margin="0,0,5,30" IsEnabled="{Binding DLL.IsCustom, Mode=OneWay}" MaxLines="1" Text="{Binding DLL.CustomDLLPath, Mode=TwoWay}" /> |
81 | | - <Button x:Name="CustomDLLPathChooseButton" Content="Choose" Width="55" Margin="0,0,0,30" RenderTransformOrigin="1.333,0.582" IsEnabled="{Binding DLL.IsCustom, Mode=OneWay}" Click="CustomDLLPathChooseButton_Click" /> |
| 80 | + <TextBox x:Name="CustomDLLPathTextBox" Width="346" Margin="0,0,5,30" IsEnabled="{Binding LauncherConfig.DLL.IsCustom, Mode=OneWay}" MaxLines="1" Text="{Binding LauncherConfig.DLL.CustomDLLPath, Mode=TwoWay}" /> |
| 81 | + <Button x:Name="CustomDLLPathChooseButton" Content="Choose" Width="55" Margin="0,0,0,30" RenderTransformOrigin="1.333,0.582" IsEnabled="{Binding LauncherConfig.DLL.IsCustom, Mode=OneWay}" Click="CustomDLLPathChooseButton_Click" /> |
82 | 82 | </StackPanel> |
83 | 83 | </StackPanel> |
84 | 84 | </GroupBox> |
|
93 | 93 | </StackPanel> |
94 | 94 | </GroupBox> |
95 | 95 | <GroupBox Header="Extra Command Line Arguments" Height="57" Margin="10,185,10,0" VerticalAlignment="Top"> |
96 | | - <TextBox HorizontalAlignment="Left" Margin="0,7,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="408" MaxLines="1" Text="{Binding CustomArguments, Mode=TwoWay}" Height="22.4"/> |
| 96 | + <TextBox HorizontalAlignment="Left" Margin="0,7,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="408" MaxLines="1" Text="{Binding LauncherConfig.CustomArguments, Mode=TwoWay}" Height="22.4"/> |
97 | 97 | </GroupBox> |
98 | 98 | </Grid> |
99 | 99 | </TabItem> |
| 100 | + <TabItem x:Name="PackagesTab" Header="Packages"> |
| 101 | + <Grid > |
| 102 | + <ListView x:Name="PackageListView" Height="217" Margin="10,26,135.8,0" VerticalAlignment="Top" ItemsSource="{Binding PackageState.LocalPackages}" SelectionChanged="PackageListView_SelectionChanged" SelectionMode="Single"> |
| 103 | + <ListView.View> |
| 104 | + <GridView AllowsColumnReorder="False"> |
| 105 | + <GridViewColumn Header="Package" Width="210"> |
| 106 | + <GridViewColumn.CellTemplate> |
| 107 | + <DataTemplate> |
| 108 | + <TextBlock Text="{Binding Remote.DisplayName}" Foreground="{Binding DisplayColor}"/> |
| 109 | + </DataTemplate> |
| 110 | + </GridViewColumn.CellTemplate> |
| 111 | + </GridViewColumn> |
| 112 | + <GridViewColumn Header="Version" Width="75" > |
| 113 | + <GridViewColumn.CellTemplate> |
| 114 | + <DataTemplate> |
| 115 | + <TextBlock Text="{Binding Remote.Version}" Foreground="{Binding DisplayColor}" /> |
| 116 | + </DataTemplate> |
| 117 | + </GridViewColumn.CellTemplate> |
| 118 | + </GridViewColumn> |
| 119 | + </GridView> |
| 120 | + </ListView.View> |
| 121 | + </ListView> |
| 122 | + <Label x:Name="PackageStatusLabel" Content="Additional Packages" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/> |
| 123 | + <Button x:Name="PackageInstallButton" Content="Install" Margin="0,0,10.8,10.8" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.5" Height="27" HorizontalAlignment="Right" Width="120" Click="PackageInstallButton_Click" IsEnabled="False"> |
| 124 | + </Button> |
| 125 | + <TextBox x:Name="PackageDescriptionTextBox" Margin="0,26,9.8,42.8" TextWrapping="Wrap" Text="{Binding SelectedPackage.Remote.Description}" IsReadOnly="True" HorizontalAlignment="Right" Width="121" /> |
| 126 | + </Grid> |
| 127 | + </TabItem> |
100 | 128 | <TabItem x:Name="InfoTab" Header="Info"> |
101 | 129 | <Grid Margin="0"> |
102 | | - <RichTextBox x:Name="InfoRichTextBox" Margin="0" IsReadOnly="True" > |
| 130 | + <Grid.ColumnDefinitions> |
| 131 | + <ColumnDefinition Width="46*"/> |
| 132 | + <ColumnDefinition Width="105*"/> |
| 133 | + </Grid.ColumnDefinitions> |
| 134 | + <RichTextBox x:Name="InfoRichTextBox" Margin="0,0,-0.2,-0.2" IsReadOnly="True" Grid.ColumnSpan="2" > |
103 | 135 | <RichTextBox.Resources> |
104 | 136 | <Style TargetType="Hyperlink"> |
105 | 137 | <Setter Property="Cursor" Value="Hand" /> |
|
113 | 145 | </TabControl> |
114 | 146 | <Button x:Name="LauncherButton" Content="Launch" Margin="346,0,10.4,9.6" Click="LauncherButton_Click" Height="27" VerticalAlignment="Bottom"/> |
115 | 147 | <ProgressBar x:Name="UpdateProgressBar" HorizontalAlignment="Left" Margin="10,0,0,9.6" Width="331" Height="27" VerticalAlignment="Bottom"/> |
| 148 | + <Label x:Name="UpdatePhaseLabel" Content="" HorizontalAlignment="Left" Margin="10,284,0,0" VerticalAlignment="Top" Height="34"/> |
116 | 149 |
|
117 | 150 | </Grid> |
118 | 151 | </Window> |
0 commit comments