-
Notifications
You must be signed in to change notification settings - Fork 0
/
RiotGamesLibrarySettingsView.xaml
156 lines (156 loc) · 11.8 KB
/
RiotGamesLibrarySettingsView.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<UserControl x:Class="RiotGamesLibrary.RiotGamesLibrarySettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="400" d:DesignWidth="600">
<UserControl.Resources>
<FontFamily x:Key="FontIcoFont">/Fonts/icofont.ttf#icofont</FontFamily>
</UserControl.Resources>
<TabControl ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
<TabItem Header="General Settings">
<StackPanel Margin="20">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0" Margin="5,0,0,5" VerticalAlignment="Center" HorizontalAlignment="Left">
<Run Text="Riot Client Install Path:"/>
<Run Text="{Binding Settings.RiotClientPath, Mode=OneWay}"/>
</TextBlock>
<CheckBox Content="Close Riot Client When Game Is Closed" IsChecked="{Binding Settings.CloseRiotClient}" Grid.Row="1" Grid.Column="0" Margin="5,0,0,5" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<TextBlock Grid.Column="0" Grid.Row="2" Margin="5,0,0,5" VerticalAlignment="Center" HorizontalAlignment="Left">
<Run Text="Legends of Runeterra Install Path:"/>
<Run Text="{Binding Settings.LORPath, Mode=OneWay}"/>
</TextBlock>
</Grid>
</StackPanel>
</TabItem>
<TabItem Header="League Settings">
<StackPanel Margin="20">
<TextBlock Margin="5,0,0,5" VerticalAlignment="Center">
<Run Text="League of Legends Install Path:"/>
<Run Text="{Binding Settings.LeaguePath, Mode=OneWay}"/>
</TextBlock>
<DockPanel Margin="10">
<TextBlock DockPanel.Dock="Top" Text="Specify companion applications for League of Legends" TextWrapping="Wrap" Margin="0,0,0,5"/>
<DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
<Button Content="Add" Margin="0,10,0,0" DockPanel.Dock="Left" Command="{Binding AddCompCommand}" CommandParameter="rg-leagueoflegends" />
<Button Content="Remove" Margin="10,10,0,0" DockPanel.Dock="Left" Command="{Binding RemoveLeagueCompCommand}" CommandParameter="{Binding SelectedItem, ElementName=GridLeagueCompanions}"/>
</DockPanel>
<DataGrid Name="GridLeagueCompanions" ItemsSource="{Binding Settings.LeagueCompanions}" DockPanel.Dock="Top"
CanUserAddRows="False" CanUserResizeRows="False" AutoGenerateColumns="False" GridLinesVisibility="None" SelectionMode="Single">
<DataGrid.Columns>
<DataGridTemplateColumn Header="Auto-Launch" Width="Auto">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding CompanionEnabled, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" ToolTip="If checked, the companion app will launch when League is launched from Playnite"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Auto-Close" Width="Auto">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding CloseWithGame, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" ToolTip="If checked, the companion app will close when League is closed" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Make Game Action" Width="Auto">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding GenerateAction, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" ToolTip="If checked, a game action will be available to directly launch the companion app" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Companion App Executable" MinWidth="150" MaxWidth="250">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding ExePath, UpdateSourceTrigger=PropertyChanged}" TextWrapping="WrapWithOverflow" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Launch Arguments" MinWidth="150" MaxWidth="250">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding LaunchArgs, UpdateSourceTrigger=PropertyChanged}" TextWrapping="WrapWithOverflow" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
</DockPanel>
<TextBlock DockPanel.Dock="Top" Text="*If the app runs on Overwolf it will show up as the Overwolf executable with launch arguments" TextWrapping="Wrap" Margin="10,0,0,0"/>
<TextBlock DockPanel.Dock="Top" Text="*Hover over a checkbox to see a tooltip explaining what it does" TextWrapping="Wrap" Margin="10,0,0,0"/>
</StackPanel>
</TabItem>
<TabItem Header="Valorant Settings">
<StackPanel Margin="20">
<TextBlock Margin="5,0,0,5" VerticalAlignment="Center">
<Run Text="Valorant Install Path:"/>
<Run Text="{Binding Settings.ValorantPath, Mode=OneWay}"/>
</TextBlock>
<DockPanel Margin="10">
<TextBlock DockPanel.Dock="Top" Text="Specify companion applications for Valorant" TextWrapping="Wrap" Margin="0,0,0,5"/>
<DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
<Button Content="Add" Margin="0,10,0,0" DockPanel.Dock="Left" Command="{Binding AddCompCommand}" CommandParameter="rg-valorant" />
<Button Content="Remove" Margin="10,10,0,0" DockPanel.Dock="Left" Command="{Binding RemoveValorantCompCommand}" CommandParameter="{Binding SelectedItem, ElementName=GridValorantCompanions}"/>
</DockPanel>
<DataGrid Name="GridValorantCompanions" ItemsSource="{Binding Settings.ValorantCompanions}" DockPanel.Dock="Top"
CanUserAddRows="False" CanUserResizeRows="False" AutoGenerateColumns="False" GridLinesVisibility="None" SelectionMode="Single">
<DataGrid.Columns>
<DataGridTemplateColumn Header="Auto-Launch" Width="Auto" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding CompanionEnabled, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" ToolTip="If checked, the companion app will launch when Valorant is launched from Playnite"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Auto-Close" Width="Auto" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding CloseWithGame, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" ToolTip="If checked, the companion app will close when Valorant is closed" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Make Game Action" Width="Auto" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding GenerateAction, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" ToolTip="If checked, a game action will be available to directly launch the companion app" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Companion App Executable" MinWidth="150" MaxWidth="250">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding ExePath, UpdateSourceTrigger=PropertyChanged}" TextWrapping="WrapWithOverflow" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Launch Arguments" MinWidth="150" MaxWidth="250">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding LaunchArgs, UpdateSourceTrigger=PropertyChanged}" TextWrapping="WrapWithOverflow" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
</DockPanel>
<TextBlock DockPanel.Dock="Top" Text="*If the app runs on Overwolf it will show up as the Overwolf executable with launch arguments" TextWrapping="Wrap" Margin="10,0,0,0"/>
<TextBlock DockPanel.Dock="Top" Text="*Hover over a checkbox to see a tooltip explaining what it does" TextWrapping="Wrap" Margin="10,0,0,0"/>
</StackPanel>
</TabItem>
</TabControl>
</UserControl>