Skip to content

Commit

Permalink
add tooltip for local file path to local footer text (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras authored Mar 17, 2024
1 parent 1a0ff31 commit e2c7394
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Source/Parser/LocalAssets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public LocalAssets(string filename, IFileSystemService fileSystemService)
/// </summary>
public string Title { get; set; }

public string Filename { get { return _filename; } }

/// <summary>
/// Gets the achievements read from the file.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions Source/ViewModels/GameViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ private class NavigationItem
internal string RACacheDirectory { get; private set; }
internal Dictionary<int, string> Notes { get; private set; }

public string LocalFilePath { get { return _localAssets.Filename; } }

public ScriptViewModel Script { get; protected set; }

public CommandBase<int> GoToSourceCommand { get; private set; }
Expand Down
1 change: 1 addition & 0 deletions Source/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ private void OpenFile(string filename)
logger.WriteVerbose("Found code notes in " + dataDirectory);
viewModel = new GameViewModel(gameId, gameTitle);
viewModel.AssociateRACacheDirectory(dataDirectory);
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Views/GameViewer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<TextBlock Text="{Binding UnofficialAchievementPoints, FallbackValue=0}" Margin="-3,0,-3,0" />
<Run Text="pts" />
</TextBlock>
<TextBlock Grid.Column="2" Margin="4,0,4,0">
<TextBlock Grid.Column="2" Margin="4,0,4,0" ToolTip="{Binding LocalFilePath}">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
Expand Down

0 comments on commit e2c7394

Please sign in to comment.