提交 cce8bf79 编写于 作者: Z ZouJin

礼物相关支持(未发布)

上级 b7920bcd
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册