桌宠听音乐跳舞
86
VPet-Simulator.Windows.Interface/Mod/ClickText.cs
Normal file
@ -0,0 +1,86 @@
|
||||
using LinePutScript.Converter;
|
||||
using LinePutScript.Localization.WPF;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VPet_Simulator.Windows.Interface
|
||||
{
|
||||
/// <summary>
|
||||
/// 点击桌宠时触发的乱说话
|
||||
/// </summary>
|
||||
public class ClickText
|
||||
{
|
||||
[Line(ignoreCase: true)]
|
||||
private int mode { get; set; }
|
||||
/// <summary>
|
||||
/// 需求状态模式, 为空为任意
|
||||
/// </summary>
|
||||
public ModeType Mode
|
||||
{
|
||||
get => (ModeType)mode;
|
||||
set => mode = (int)value;
|
||||
}
|
||||
/// <summary>
|
||||
/// 宠物状态模式
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum ModeType
|
||||
{
|
||||
/// <summary>
|
||||
/// 任意
|
||||
/// </summary>
|
||||
All = 0,
|
||||
/// <summary>
|
||||
/// 高兴
|
||||
/// </summary>
|
||||
Happy = 1,
|
||||
/// <summary>
|
||||
/// 普通
|
||||
/// </summary>
|
||||
Nomal = 2,
|
||||
/// <summary>
|
||||
/// 状态不佳
|
||||
/// </summary>
|
||||
PoorCondition = 4,
|
||||
/// <summary>
|
||||
/// 生病(躺床)
|
||||
/// </summary>
|
||||
Ill = 8
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 好感度要求:最小值
|
||||
/// </summary>
|
||||
[Line(IgnoreCase = true)]
|
||||
public int LikeMin = 0;
|
||||
/// <summary>
|
||||
/// 好感度要求:最大值
|
||||
/// </summary>
|
||||
[Line(IgnoreCase = true)]
|
||||
public int LikeMax = int.MaxValue;
|
||||
|
||||
/// <summary>
|
||||
/// 说话的内容
|
||||
/// </summary>
|
||||
[Line(IgnoreCase = true)] public string Text { get; set; }
|
||||
|
||||
private string transText = null;
|
||||
/// <summary>
|
||||
/// 说话的内容 (翻译)
|
||||
/// </summary>
|
||||
public string TranslateText
|
||||
{
|
||||
get
|
||||
{
|
||||
if (transText == null)
|
||||
{
|
||||
transText = LocalizeCore.Translate(Text);
|
||||
}
|
||||
return transText;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -116,6 +116,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="IMainWindow.cs" />
|
||||
<Compile Include="Mod\ClickText.cs" />
|
||||
<Compile Include="Mod\LowText.cs" />
|
||||
<Compile Include="Mod\Food.cs" />
|
||||
<Compile Include="MainPlugin.cs" />
|
||||
|
After Width: | Height: | Size: 233 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 208 KiB |
After Width: | Height: | Size: 201 KiB |
After Width: | Height: | Size: 208 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 208 KiB |
After Width: | Height: | Size: 201 KiB |
After Width: | Height: | Size: 208 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 233 KiB |
After Width: | Height: | Size: 231 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 231 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 221 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 221 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 222 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 207 KiB |
After Width: | Height: | Size: 200 KiB |
After Width: | Height: | Size: 207 KiB |
After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 207 KiB |
After Width: | Height: | Size: 200 KiB |
After Width: | Height: | Size: 207 KiB |
After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 230 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 230 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 224 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 224 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 221 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 227 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 224 KiB |
After Width: | Height: | Size: 226 KiB |