新的说话类型
@ -231,6 +231,18 @@ namespace VPet_Simulator.Core
|
||||
/// </summary>
|
||||
Say_Shining_C_End,
|
||||
/// <summary>
|
||||
/// 说话 (开始)
|
||||
/// </summary>
|
||||
Say_Self_A_Start,
|
||||
/// <summary>
|
||||
/// 说话 (循环)
|
||||
/// </summary>
|
||||
Say_Self_B_Loop,
|
||||
/// <summary>
|
||||
/// 说话 (结束)
|
||||
/// </summary>
|
||||
Say_Self_C_End,
|
||||
/// <summary>
|
||||
/// 待机 模式1 (开始)
|
||||
/// </summary>
|
||||
Idel_StateONE_A_Start,
|
||||
@ -526,10 +538,29 @@ namespace VPet_Simulator.Core
|
||||
}
|
||||
public enum SayType
|
||||
{
|
||||
/// <summary>
|
||||
/// 无:不执行动作
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
/// 默认说话
|
||||
/// </summary>
|
||||
Default,
|
||||
/// <summary>
|
||||
/// 严肃
|
||||
/// </summary>
|
||||
Serious,
|
||||
/// <summary>
|
||||
/// 闪亮
|
||||
/// </summary>
|
||||
Shining,
|
||||
/// <summary>
|
||||
/// 自己
|
||||
/// </summary>
|
||||
Self,
|
||||
/// <summary>
|
||||
/// 错误
|
||||
/// </summary>
|
||||
Error
|
||||
}
|
||||
public static GraphType Convert(SayType sayType, AnimatType type)
|
||||
|
@ -160,6 +160,14 @@ namespace VPet_Simulator.Windows.Interface
|
||||
return false;
|
||||
return line.Find(ModName.ToLower()) != null;
|
||||
}
|
||||
public bool IsMSGMOD(string ModName)
|
||||
{
|
||||
var line = FindorAddLine("msgmod");
|
||||
if (line.GetBool(ModName))
|
||||
return false;
|
||||
line.SetBool(ModName, true);
|
||||
return true;
|
||||
}
|
||||
public void BanMod(string ModName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(ModName))
|
||||
|
@ -182,9 +182,13 @@ namespace VPet_Simulator.Windows
|
||||
Dispatcher.Invoke(new Action(() => LoadingText.Content = $"尝试加载 MOD数据: {di.Name}"));
|
||||
CoreMODs.Add(new CoreMOD(di, this));
|
||||
}
|
||||
//foreach (CoreMOD cm in CoreMODs)
|
||||
// if (!cm.SuccessLoad)
|
||||
// MessageBox.Show($"由于 {cm.Name} 包含代码插件\n虚拟桌宠模拟器已自动停止加载该插件\n请手动前往设置允许启用该mod 代码插件", $"{cm.Name} 未加载代码插件");
|
||||
foreach (CoreMOD cm in CoreMODs)
|
||||
if (!cm.SuccessLoad)
|
||||
if (Set.IsPassMOD(cm.Name))
|
||||
MessageBox.Show($"模组 {cm.Name} 的代码插件损坏\n虚拟桌宠模拟器未能成功加载该插件\n请联系作者修复该问题", $"{cm.Name} 未加载代码插件");
|
||||
else if (Set.IsMSGMOD(cm.Name))
|
||||
MessageBox.Show($"由于 {cm.Name} 包含代码插件\n虚拟桌宠模拟器已自动停止加载该插件\n请手动前往设置允许启用该mod 代码插件", $"{cm.Name} 未加载代码插件");
|
||||
|
||||
Dispatcher.Invoke(new Action(() => LoadingText.Content = "尝试加载游戏存档"));
|
||||
|
||||
//加载游戏内容
|
||||
@ -210,7 +214,7 @@ namespace VPet_Simulator.Windows
|
||||
LoadingText.Content = "正在加载CGPT";
|
||||
|
||||
winSetting = new winGameSetting(this);
|
||||
Main = new Main(Core) { };
|
||||
Main = new Main(Core) { };
|
||||
if (!Set["CGPT"][(gbol)"enable"] && IsSteamUser)
|
||||
{
|
||||
TalkBox = new TalkBox(this);
|
||||
|
@ -266,9 +266,7 @@ namespace VPet_Simulator.Windows
|
||||
GameInfo.Text = mod.Intro;
|
||||
GameHave.Text = mod.Content.Trim('\n');
|
||||
|
||||
ButtonAllow.Visibility = mod.SuccessLoad ? Visibility.Collapsed : Visibility.Visible;
|
||||
ButtonSetting.Visibility = ButtonAllow.Visibility;
|
||||
|
||||
ButtonAllow.Visibility = mw.Set.IsPassMOD(mod.Name) ? Visibility.Collapsed : Visibility.Visible;
|
||||
|
||||
foreach (var mainplug in mw.Plugins)
|
||||
{
|
||||
|
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 205 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 241 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 241 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 247 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 241 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 247 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 205 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 226 KiB |