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

Commit

Permalink
Added tooltip to status text to show the exact env ariable for troubl…
Browse files Browse the repository at this point in the history
…eshooting
  • Loading branch information
Dyvinia committed May 27, 2021
1 parent 8d59127 commit 82e3168
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@
</ControlTemplate>
</Button.Template>
</Button>
<TextBlock x:Name="lbl_enabled" Margin="275,0,5,5" TextWrapping="Wrap" Text="Game Text" Width="502" TextAlignment="Right" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
<TextBlock x:Name="lbl_enabled" Margin="0,0,5,5" TextWrapping="Wrap" Text="Game Text" Width="300" TextAlignment="Right" VerticalAlignment="Bottom" HorizontalAlignment="Right">
<TextBlock.ToolTip>
<ToolTip x:Name="lbl_enabled_tooltip" Background="Black" Foreground="White"/>
</TextBlock.ToolTip>
</TextBlock>
<RadioButton x:Name="rbtn_bf2015" Content="Star Wars: Battlefront (2015)" Margin="50,40,492,0" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_bf2015_Checked" VerticalAlignment="Top"/>
<RadioButton x:Name="rbtn_bf2017" Content="Star Wars: Battlefront II (2017)" Margin="50,65,492,0" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_bf2017_Checked" VerticalAlignment="Top"/>
<RadioButton x:Name="rbtn_bf1" Content="Battlefield One" Margin="50,90,492,0" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_bf1_Checked" VerticalAlignment="Top"/>
Expand All @@ -182,7 +186,7 @@
</Grid.ColumnDefinitions>
</Grid>
<RadioButton GroupName="Platform" x:Name="rbtn_steam" Content="Steam" Margin="491,205,50,0" Foreground="#FFF1F1F1" FontSize="14" Height="20" VerticalContentAlignment="Center" Checked="rbtn_platform_Checked" VerticalAlignment="Top" HorizontalAlignment="Right" Width="172"/>
<TextBlock x:Name="lbl_profile" Margin="0,0,5,25" TextWrapping="Wrap" Text="Platform Text" Width="502" TextAlignment="Right" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
<TextBlock x:Name="lbl_profile" Margin="0,0,5,25" TextWrapping="Wrap" Text="Profile Text" Width="502" TextAlignment="Right" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
<TextBlock x:Name="lbl_platform" Margin="0,0,5,45" TextWrapping="Wrap" Text="Platform Text" Width="502" TextAlignment="Right" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
<Button x:Name="btn_refresh" Content="Refresh" Margin="0,275,10,0" Height="26" VerticalAlignment="Top" Click="btn_refresh_Click" HorizontalAlignment="Right" Width="55" Visibility="Hidden">
<Button.ToolTip>
Expand Down
4 changes: 4 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void checkStatus() {
string frostyprofile = new DirectoryInfo(isenabled).Name;
lbl_enabled.Foreground = Brushes.LightGreen;
lbl_profile.Foreground = Brushes.LightGreen;
lbl_enabled_tooltip.Visibility = Visibility.Visible;
lbl_enabled_tooltip.Content = isenabled;
lbl_profile.Text = "Frosty Profile: " + frostyprofile;
if (isenabled == "\\ModData" || !isenabled.Contains("ModData")) {
lbl_enabled.Text = "User Error when selecting path. Please click Disable Mods and try again";
Expand Down Expand Up @@ -113,6 +115,8 @@ public void checkStatus() {
else {
lbl_enabled.Text = "Mods are Currently NOT Enabled";
lbl_enabled.Foreground = Brushes.LightSalmon;
lbl_enabled_tooltip.Content = "";
lbl_enabled_tooltip.Visibility = Visibility.Hidden;
lbl_profile.Text = "";
}
}
Expand Down

0 comments on commit 82e3168

Please sign in to comment.