mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
按好感度排序
This commit is contained in:
parent
0580368cf8
commit
2d5439fbf6
@ -286,6 +286,7 @@
|
||||
<ListBoxItem Content="{ll:Str 按心情}" />
|
||||
<ListBoxItem Content="{ll:Str 按健康}" />
|
||||
<ListBoxItem Content="{ll:Str 按经验值}" />
|
||||
<ListBoxItem Content="{ll:Str 按好感度}" />
|
||||
</ListBox>
|
||||
<Rectangle Grid.Column="1" Margin="10,0,10,0" Width="1" Fill="{DynamicResource DARKPrimaryTrans4}" />
|
||||
<ListBox x:Name="LsbSortAsc" Grid.Column="2" Background="Transparent" BorderThickness="0"
|
||||
|
@ -158,6 +158,12 @@ namespace VPet_Simulator.Windows
|
||||
else
|
||||
ordered = foods.OrderByDescending(x => x.Exp);
|
||||
break;
|
||||
case 8:
|
||||
if (sortasc)
|
||||
ordered = foods.OrderBy(x => x.Likability);
|
||||
else
|
||||
ordered = foods.OrderByDescending(x => x.Likability);
|
||||
break;
|
||||
}
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user