mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
礼物相关支持(未发布)
This commit is contained in:
parent
b7920bcde3
commit
cce8bf7997
@ -227,6 +227,10 @@ namespace VPet_Simulator.Core
|
||||
/// 喝东西
|
||||
/// </summary>
|
||||
Drink,
|
||||
/// <summary>
|
||||
/// 收到礼物
|
||||
/// </summary>
|
||||
Gift,
|
||||
}
|
||||
/// <summary>
|
||||
/// 动作: 动画的动作 Start Loop End
|
||||
|
@ -209,6 +209,7 @@
|
||||
<ListBoxItem Content="{ll:Str 饮料}" />
|
||||
<ListBoxItem Content="{ll:Str 功能性}" />
|
||||
<ListBoxItem Content="{ll:Str 药品}" />
|
||||
<!--<ListBoxItem Content="{ll:Str 礼品}" />-->
|
||||
</ListBox>
|
||||
<TextBlock Grid.Row="2" Text="{ll:Str 排序方式}" Margin="5" FontSize="18"
|
||||
Foreground="{DynamicResource DARKPrimary}" />
|
||||
|
@ -237,8 +237,20 @@ namespace VPet_Simulator.Windows
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var name = mw.Core.Graph.FindName(item.Type == Food.FoodType.Drink ? GraphType.Drink : GraphType.Eat);
|
||||
GraphType gt;
|
||||
switch (item.Type)
|
||||
{
|
||||
default:
|
||||
gt = GraphType.Eat;
|
||||
break;
|
||||
case Food.FoodType.Drink:
|
||||
gt = GraphType.Drink;
|
||||
break;
|
||||
case Food.FoodType.Gift:
|
||||
gt = GraphType.Gift;
|
||||
break;
|
||||
}
|
||||
var name = mw.Core.Graph.FindName(gt);
|
||||
var ig = mw.Core.Graph.FindGraph(name, AnimatType.Single, mw.Core.Save.Mode);
|
||||
if (ig != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user