Skip to content

Commit

Permalink
Initital filter display for additional stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jamckee authored and Rottenbeer committed Aug 4, 2019
1 parent a5bf021 commit e33e2a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 7 additions & 7 deletions LarkatorGUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,13 @@
</DataGridTemplateColumn>
<DataGridTextColumn Header="Lvl" Width="1.2*" Binding="{Binding Dino.BaseLevel}"/>
<DataGridTextColumn Header="Pos" Width="2.2*" Binding="{Binding Path=Dino.Location, Converter={StaticResource PositionToStringConverter}}"/>
<DataGridTextColumn Header="Hp" Width="1*" Binding="{Binding Path=Dino.WildLevels.Health}"/>
<DataGridTextColumn Header="St" Width="1*" Binding="{Binding Path=Dino.WildLevels.Stamina}"/>
<DataGridTextColumn Header="We" Width="1*" Binding="{Binding Path=Dino.WildLevels.Weight}"/>
<DataGridTextColumn Header="Me" Width="1*" Binding="{Binding Path=Dino.WildLevels.Melee}"/>
<DataGridTextColumn Header="Sp" Width="1*" Binding="{Binding Path=Dino.WildLevels.Speed}"/>
<DataGridTextColumn Header="Fd" Width="1*" Binding="{Binding Path=Dino.WildLevels.Food}"/>
<DataGridTextColumn Header="Ox" Width="1*" Binding="{Binding Path=Dino.WildLevels.Oxygen}"/>
<DataGridTextColumn x:Name="health" Header="Hp" Width="1*" Binding="{Binding Path=Dino.WildLevels.Health}"/>
<DataGridTextColumn x:Name="stamina" Header="St" Width="1*" Binding="{Binding Path=Dino.WildLevels.Stamina}"/>
<DataGridTextColumn x:Name="weight" Header="We" Width="1*" Binding="{Binding Path=Dino.WildLevels.Weight}"/>
<DataGridTextColumn x:Name="melee" Header="Me" Width="1*" Binding="{Binding Path=Dino.WildLevels.Melee}"/>
<DataGridTextColumn x:Name="speed" Header="Sp" Width="1*" Binding="{Binding Path=Dino.WildLevels.Speed}"/>
<DataGridTextColumn x:Name="food" Header="Fd" Width="1*" Binding="{Binding Path=Dino.WildLevels.Food}"/>
<DataGridTextColumn x:Name="oxygen" Header="Ox" Width="1*" Binding="{Binding Path=Dino.WildLevels.Oxygen}"/>
</DataGrid.Columns>
</DataGrid>

Expand Down
8 changes: 8 additions & 0 deletions LarkatorGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,14 @@ private void UpdateSearchResults(IList<SearchCriteria> searches)
ShowCounts = true;
ResultTotalCount = ShowTames ? sourceDinos.Sum(species => species.Value.Count()) : total;
ResultMatchingCount = ListResults.Count;

this.resultsList.Columns["health"].Visibility="{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}";
this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}";
this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}";
this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}";
this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}";
this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}";

}

((CollectionViewSource)Resources["OrderedResults"]).View.Refresh();
Expand Down

0 comments on commit e33e2a1

Please sign in to comment.