Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Fix tooltips + Hid NFS Heat as it wasn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyvinia committed Mar 31, 2021
1 parent 72b7087 commit a144e46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion AfterPatchWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@
<Button x:Name="btn_restartOrigin" Height="60" IsEnabled="True" Margin="85,0,85,75" VerticalAlignment="Bottom" Click="btn_restartOrigin_Click" FontSize="16">
<Button.ToolTip>
<ToolTip Background="Black" Foreground="White">
Closes Origin/EA Desktop and starts Origin. You must manually restart FrostyFix once before clicking this button
<TextBlock>
Closes Origin/EA Desktop and starts Origin.
<LineBreak />
You must manually restart FrostyFix once before clicking this button.
</TextBlock>
</ToolTip>
</Button.ToolTip>
<Button.Style>
Expand Down
5 changes: 3 additions & 2 deletions AfterPatchWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.Win32;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
Expand Down Expand Up @@ -46,8 +47,8 @@ private async void btn_restartEA_Click(object sender, RoutedEventArgs e) {
Process p = new Process();
p.StartInfo.UseShellExecute = true;
p.StartInfo.Verb = "runas";
p.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(eaddir);
p.StartInfo.FileName = System.IO.Path.GetDirectoryName(eaddir) + "\\EALauncher.exe";
p.StartInfo.WorkingDirectory = Path.GetDirectoryName(eaddir);
p.StartInfo.FileName = Path.GetDirectoryName(eaddir) + "\\EALauncher.exe";
p.Start();
this.Close();
}
Expand Down
2 changes: 1 addition & 1 deletion MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
<RadioButton x:Name="rbtn_mea" Content="Mass Effect Andromeda" Margin="0,25,50,304" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_mea_Checked" HorizontalAlignment="Right" Width="172"/>
<RadioButton x:Name="rbtn_nfs" Content="Need for Speed" Margin="316,25,281,304" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_nfs_Checked" HorizontalAlignment="Center" Width="185"/>
<RadioButton x:Name="rbtn_nfspayback" Content="Need for Speed: Payback" Margin="316,50,281,279" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_nfspayback_Checked" HorizontalAlignment="Center" Width="185"/>
<RadioButton x:Name="rbtn_nfsheat" Content="Need for Speed: Heat" Margin="316,75,281,254" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_nfsheat_Checked" HorizontalAlignment="Center" Width="185"/>
<RadioButton x:Name="rbtn_nfsheat" Content="Need for Speed: Heat" Margin="316,75,281,254" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_nfsheat_Checked" HorizontalAlignment="Center" Width="185" Visibility="Hidden"/>
<RadioButton x:Name="rbtn_gw2" Content="PvZ: Garden Warfare 2" Margin="0,50,50,279" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_gw2_Checked" HorizontalAlignment="Right" Width="172"/>
<RadioButton x:Name="rbtn_dai" Content="Dragon Age: Inquisition" Margin="0,75,50,254" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_dai_Checked" HorizontalAlignment="Right" Width="172"/>
</Grid>
Expand Down

0 comments on commit a144e46

Please sign in to comment.