Skip to content

Commit

Permalink
Add a tool tip to display the name of each mission in the Mission Mon…
Browse files Browse the repository at this point in the history
…itor.
  • Loading branch information
Tkael committed Jun 20, 2021
1 parent 17e4986 commit 44c15a1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
15 changes: 13 additions & 2 deletions DataDefinitions/Mission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,20 @@ public class Mission : INotifyPropertyChanged
public string name { get; set; }

// The localised name of the mission
[Utilities.PublicAPI]
public string localisedname;
[JsonIgnore]
private string _localisedname;

[Utilities.PublicAPI]
public string localisedname
{
get => _localisedname;
set
{
_localisedname = value;
OnPropertyChanged();
}
}

// The type of mission
public string typeEDName
{
Expand Down
1 change: 1 addition & 0 deletions EDDI/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Full details of the variables available for each noted event, and VoiceAttack in
* Core
* Richer event variable documentation (for both EDDI and VoiceAttack).
* Mission Monitor
* Added a tool tip to display the name of each mission.
* Revised mission expiration timers to improve sorting with longer missions and to use a more universal format.
* Speech Responder
* Scripts
Expand Down
9 changes: 9 additions & 0 deletions MissionMonitor/ConfigurationWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@
<TextBlock Grid.Row="3" Grid.Column="1" TextWrapping="Wrap" Margin="2" Text="{x:Static resx:MissionMonitor.clear_route_button_desc}" />
</Grid>
<DataGrid Margin="0,10" AutoGenerateColumns="False" x:Name="missionsData" CanUserAddRows="false" CanUserDeleteRows="False" TargetUpdated="missionsUpdated">
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="ToolTip">
<Setter.Value>
<TextBlock Text="{Binding Path=localisedname}" />
</Setter.Value>
</Setter>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTextColumn Header="{x:Static resx:MissionMonitor.header_type}" Width="140" IsReadOnly="True" Binding="{Binding Path=localizedType}">
<DataGridTextColumn.HeaderStyle>
Expand Down

0 comments on commit 44c15a1

Please sign in to comment.