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>
|
/// </summary>
|
||||||
Drink,
|
Drink,
|
||||||
|
/// <summary>
|
||||||
|
/// 收到礼物
|
||||||
|
/// </summary>
|
||||||
|
Gift,
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 动作: 动画的动作 Start Loop End
|
/// 动作: 动画的动作 Start Loop End
|
||||||
|
@ -209,6 +209,7 @@
|
|||||||
<ListBoxItem Content="{ll:Str 饮料}" />
|
<ListBoxItem Content="{ll:Str 饮料}" />
|
||||||
<ListBoxItem Content="{ll:Str 功能性}" />
|
<ListBoxItem Content="{ll:Str 功能性}" />
|
||||||
<ListBoxItem Content="{ll:Str 药品}" />
|
<ListBoxItem Content="{ll:Str 药品}" />
|
||||||
|
<!--<ListBoxItem Content="{ll:Str 礼品}" />-->
|
||||||
</ListBox>
|
</ListBox>
|
||||||
<TextBlock Grid.Row="2" Text="{ll:Str 排序方式}" Margin="5" FontSize="18"
|
<TextBlock Grid.Row="2" Text="{ll:Str 排序方式}" Margin="5" FontSize="18"
|
||||||
Foreground="{DynamicResource DARKPrimary}" />
|
Foreground="{DynamicResource DARKPrimary}" />
|
||||||
|
@ -237,8 +237,20 @@ namespace VPet_Simulator.Windows
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
GraphType gt;
|
||||||
var name = mw.Core.Graph.FindName(item.Type == Food.FoodType.Drink ? GraphType.Drink : GraphType.Eat);
|
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);
|
var ig = mw.Core.Graph.FindGraph(name, AnimatType.Single, mw.Core.Save.Mode);
|
||||||
if (ig != null)
|
if (ig != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user