-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsView.xaml
More file actions
129 lines (118 loc) · 8.02 KB
/
SettingsView.xaml
File metadata and controls
129 lines (118 loc) · 8.02 KB
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
<UserControl x:Class="GameTaskPlugin.SettingsView"
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="480" d:DesignWidth="520">
<StackPanel Margin="20">
<TextBlock Text="GameTask Settings"
FontSize="16" FontWeight="Bold"
Margin="0,0,0,16"/>
<!-- Bring to Foreground -->
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
<CheckBox IsChecked="{Binding Settings.BringWindowToForeground}" VerticalAlignment="Center"/>
<TextBlock Text="Bring game window to foreground after launch" VerticalAlignment="Center" Margin="8,0,0,0"/>
<TextBlock Text="?" VerticalAlignment="Center" Margin="6,0,0,0" Foreground="Gray" FontWeight="Bold" Cursor="Help">
<TextBlock.ToolTip>
<ToolTip>
<TextBlock MaxWidth="320" TextWrapping="Wrap"
Text="When enabled, GameTask waits for the game process and automatically brings its window to the foreground. Recommended for Playnite fullscreen mode.

Run 'Repair All Tagged Games' after changing this setting." />
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<!-- Focus Guard Duration -->
<StackPanel Margin="0,12,0,4">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Focus guard duration:" VerticalAlignment="Center"/>
<TextBlock Text="{Binding Settings.GuardSeconds, StringFormat='{}{0} seconds'}"
VerticalAlignment="Center" Margin="8,0,0,0"
FontWeight="Bold" Foreground="#FF4A9EFF" MinWidth="70"/>
<TextBlock Text="?" VerticalAlignment="Center" Margin="4,0,0,0" Foreground="Gray" FontWeight="Bold" Cursor="Help">
<TextBlock.ToolTip>
<ToolTip>
<TextBlock MaxWidth="320" TextWrapping="Wrap"
Text="How long FocusGuard keeps the game window in the foreground after launch. Increase this if your game takes a long time to fully initialize.

Default: 20s. Range: 5s – 120s.

Run 'Repair All Tagged Games' after changing this setting." />
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<Slider Minimum="5" Maximum="120"
Value="{Binding Settings.GuardSeconds}"
TickFrequency="5" IsSnapToTickEnabled="True"
Margin="0,6,0,0" Width="340" HorizontalAlignment="Left"/>
<StackPanel Orientation="Horizontal" Margin="0,2,0,0" Width="340">
<TextBlock Text="5s" Foreground="Gray" FontSize="10"/>
<TextBlock Text="120s" Foreground="Gray" FontSize="10" HorizontalAlignment="Right" Width="320"/>
</StackPanel>
</StackPanel>
<!-- Cooldown Duration -->
<StackPanel Margin="0,12,0,4">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Create Pending Tasks cooldown:" VerticalAlignment="Center"/>
<TextBlock Text="{Binding Settings.CooldownSeconds, StringFormat='{}{0} seconds'}"
VerticalAlignment="Center" Margin="8,0,0,0"
FontWeight="Bold" Foreground="#FF4A9EFF" MinWidth="70"/>
<TextBlock Text="?" VerticalAlignment="Center" Margin="4,0,0,0" Foreground="Gray" FontWeight="Bold" Cursor="Help">
<TextBlock.ToolTip>
<ToolTip>
<TextBlock MaxWidth="320" TextWrapping="Wrap"
Text="Minimum time between two 'Create Pending Tasks' calls. Prevents accidental double-launch of the UAC prompt.

Default: 3s. Range: 1s – 30s." />
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<Slider Minimum="1" Maximum="30"
Value="{Binding Settings.CooldownSeconds}"
TickFrequency="1" IsSnapToTickEnabled="True"
Margin="0,6,0,0" Width="340" HorizontalAlignment="Left"/>
<StackPanel Orientation="Horizontal" Margin="0,2,0,0" Width="340">
<TextBlock Text="1s" Foreground="Gray" FontSize="10"/>
<TextBlock Text="30s" Foreground="Gray" FontSize="10" HorizontalAlignment="Right" Width="330"/>
</StackPanel>
</StackPanel>
<!-- Low Performance Mode -->
<StackPanel Orientation="Horizontal" Margin="0,12,0,4">
<CheckBox IsChecked="{Binding Settings.LowPerformanceMode}" VerticalAlignment="Center"/>
<TextBlock Text="Low Performance Mode" VerticalAlignment="Center" Margin="8,0,0,0"/>
<TextBlock Text="?" VerticalAlignment="Center" Margin="6,0,0,0" Foreground="Gray" FontWeight="Bold" Cursor="Help">
<TextBlock.ToolTip>
<ToolTip>
<TextBlock MaxWidth="320" TextWrapping="Wrap"
Text="Recommended for slower PCs or when many applications are open. Increases the time GameTask waits for the game process and window to appear, and adds more foreground push attempts.

Normal: process timeout 60s, window timeout 30s, 4 early pushes.
Low Performance: process timeout 120s, window timeout 60s, 8 early pushes.

Run 'Repair All Tagged Games' after changing this setting." />
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<!-- Detect Orphan Tasks -->
<StackPanel Orientation="Horizontal" Margin="0,12,0,4">
<CheckBox IsChecked="{Binding Settings.DetectOrphanTasks}" VerticalAlignment="Center"/>
<TextBlock Text="Detect orphan tasks on startup" VerticalAlignment="Center" Margin="8,0,0,0"/>
<TextBlock Text="?" VerticalAlignment="Center" Margin="6,0,0,0" Foreground="Gray" FontWeight="Bold" Cursor="Help">
<TextBlock.ToolTip>
<ToolTip>
<TextBlock MaxWidth="320" TextWrapping="Wrap"
Text="Checks the Windows Task Scheduler on every Playnite startup and notifies you if it finds tasks that no longer match any game in your library." />
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<!-- Detect Corrupted Tasks -->
<StackPanel Orientation="Horizontal" Margin="0,12,0,4">
<CheckBox IsChecked="{Binding Settings.DetectCorruptedTasks}" VerticalAlignment="Center"/>
<TextBlock Text="Detect corrupted tasks on startup" VerticalAlignment="Center" Margin="8,0,0,0"/>
<TextBlock Text="?" VerticalAlignment="Center" Margin="6,0,0,0" Foreground="Gray" FontWeight="Bold" Cursor="Help">
<TextBlock.ToolTip>
<ToolTip>
<TextBlock MaxWidth="320" TextWrapping="Wrap"
Text="Checks whether the executable registered for each scheduled task still exists on disk. If a game was moved or uninstalled without disabling GameTask first, a fix notification will appear." />
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<Separator Margin="0,16,0,12"/>
<TextBlock TextWrapping="Wrap" Foreground="Gray" FontSize="11"
Text="Changes are saved automatically when you click OK. Settings marked with 'Run Repair All' require running Extensions → GameTask → Repair All Tagged Games to take effect on existing games." />
</StackPanel>
</UserControl>