mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
不超模玩家专属标志
This commit is contained in:
parent
3ba3d36715
commit
d6b3d87fce
@ -18,8 +18,8 @@
|
||||
<Border x:Name="BdrPanel" Margin="0,0,0,55" VerticalAlignment="Bottom" x:FieldModifier="public"
|
||||
Background="{DynamicResource DARKPrimaryText}" BorderBrush="{DynamicResource DARKPrimaryDarker}"
|
||||
BorderThickness="1" CornerRadius="5" MouseLeave="MenuPanel_MouseLeave" TextBlock.FontSize="24"
|
||||
TextElement.FontSize="24" Visibility="Collapsed">
|
||||
<Grid Margin="15">
|
||||
TextElement.FontSize="24" >
|
||||
<Grid Margin="15" x:Name="gdPanel" x:FieldModifier="public">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="5" />
|
||||
|
@ -125,8 +125,11 @@ namespace VPet_Simulator.Windows.Interface
|
||||
/// 关闭指示器,默认为true
|
||||
/// </summary>
|
||||
bool CloseConfirm { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 关闭该玩家的HashCheck检查
|
||||
/// 如果你的mod属于作弊mod/有作弊内容,请在作弊前调用这个方法
|
||||
/// </summary>
|
||||
void HashCheckOff();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -15,6 +15,8 @@ using System.Threading.Tasks;
|
||||
using System.Timers;
|
||||
using System.Web;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media.Imaging;
|
||||
using VPet_Simulator.Core;
|
||||
using VPet_Simulator.Windows.Interface;
|
||||
using static VPet_Simulator.Core.GraphHelper;
|
||||
@ -46,7 +48,7 @@ namespace VPet_Simulator.Windows
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
public int version { get; } = 101;
|
||||
public int version { get; } = 102;
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
@ -98,10 +100,47 @@ namespace VPet_Simulator.Windows
|
||||
return null;
|
||||
return list[Function.Rnd.Next(list.Count)];
|
||||
}
|
||||
private Image hashcheckimg;
|
||||
public void HashCheckOff()
|
||||
{
|
||||
HashCheck = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 存档 Hash检查 是否通过
|
||||
/// </summary>
|
||||
public bool HashCheck { get; set; } = true;
|
||||
public bool HashCheck
|
||||
{
|
||||
get => hashCheck;
|
||||
set
|
||||
{
|
||||
hashCheck = value;
|
||||
Main?.Dispatcher.Invoke(() =>
|
||||
{
|
||||
if (hashCheck)
|
||||
{
|
||||
if (hashcheckimg == null)
|
||||
{
|
||||
hashcheckimg = new Image();
|
||||
hashcheckimg.Source = new BitmapImage(new Uri("pack://application:,,,/Res/hash.png"));
|
||||
hashcheckimg.HorizontalAlignment = HorizontalAlignment.Right;
|
||||
hashcheckimg.ToolTip = "是没有修改过存档/使用超模MOD的玩家专属标志".Translate();
|
||||
Grid.SetColumn(hashcheckimg, 4);
|
||||
Grid.SetRowSpan(hashcheckimg, 2);
|
||||
Main.ToolBar.gdPanel.Children.Add(hashcheckimg);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hashcheckimg != null)
|
||||
{
|
||||
Main.ToolBar.gdPanel.Children.Remove(hashcheckimg);
|
||||
hashcheckimg = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
public void SetZoomLevel(double zl)
|
||||
{
|
||||
Set.ZoomLevel = zl;
|
||||
@ -703,6 +742,8 @@ namespace VPet_Simulator.Windows
|
||||
public bool? CurrMusicType { get; private set; }
|
||||
|
||||
int LastDiagnosisTime = 0;
|
||||
private bool hashCheck = true;
|
||||
|
||||
/// <summary>
|
||||
/// 上传遥测文件
|
||||
/// </summary>
|
||||
|
@ -636,6 +636,8 @@ namespace VPet_Simulator.Windows
|
||||
Main.Event_TouchHead += Main_Event_TouchHead;
|
||||
Main.Event_TouchBody += Main_Event_TouchBody;
|
||||
|
||||
HashCheck = hashCheck;
|
||||
|
||||
if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\Tutorial.html") && Set["SingleTips"].GetDateTime("tutorial") <= new DateTime(2023, 6, 20))
|
||||
{
|
||||
Set["SingleTips"].SetDateTime("tutorial", DateTime.Now);
|
||||
|
BIN
VPet-Simulator.Windows/Res/hash.png
Normal file
BIN
VPet-Simulator.Windows/Res/hash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 801 B |
@ -323,5 +323,8 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Res\hash.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
@ -147,9 +147,9 @@ namespace VPet_Simulator.Windows
|
||||
SliderResolution.Value = mw.Set.Resolution;
|
||||
|
||||
#if X64
|
||||
GameVerison.Content = "游戏版本".Translate() + $"v{mw.version} x64";
|
||||
GameVerison.Content = "游戏版本".Translate() + $"v{mw.Version} x64";
|
||||
#else
|
||||
GameVerison.Content = "游戏版本".Translate() + $"v{mw.version} x86";
|
||||
GameVerison.Content = "游戏版本".Translate() + $"v{mw.Version} x86";
|
||||
#endif
|
||||
//关于ui
|
||||
if (mw.IsSteamUser)
|
||||
@ -182,7 +182,7 @@ namespace VPet_Simulator.Windows
|
||||
BtnCGPTReSet.Content = "聊天框已关闭".Translate();
|
||||
break;
|
||||
}
|
||||
runabVer.Text = $"v{mw.version} ({mw.version})";
|
||||
runabVer.Text = $"v{mw.Version} ({mw.version})";
|
||||
|
||||
//mod列表
|
||||
ShowModList();
|
||||
|
@ -27,4 +27,5 @@
|
||||
当前食物/物品属性超模,是否继续使用?\n使用超模食物可能会导致游戏发生不可预料的错误\n使用超模食物不影响大部分成就解锁\n本物品推荐价格为{0:f0}#The current food/item attribute supermodel, whether to continue to use?\nUsing supermodel food may cause the game to have unexpected errors\nUsing supermodel food does not affect most of the achievements to unlock\nThe recommended price for this item is {0:f0}:|
|
||||
超模食物/物品使用提醒#Supermodel food/item use reminder:|
|
||||
当前工作数据属性超模,是否继续工作?\n超模工作可能会导致游戏发生不可预料的错误\n超模工作不影响大部分成就解锁\n当前数据比率 {0:f2}\n推荐比率<1.5#The current work data attribute supermodel, whether to continue to work?\nSupermodel work may cause the game to have unexpected errors\nSupermodel work does not affect most of the achievements to unlock\nCurrent data ratio {0:f2}\nRecommended ratio <1.5:|
|
||||
超模工作提醒#Supermodel work reminder:|
|
||||
超模工作提醒#Supermodel work reminder:|
|
||||
是没有修改过存档/使用超模MOD的玩家专属标志#Is there no modified archive/supermodel MOD player exclusive logo:|
|
@ -27,4 +27,5 @@
|
||||
当前食物/物品属性超模,是否继续使用?\n使用超模食物可能会导致游戏发生不可预料的错误\n使用超模食物不影响大部分成就解锁\n本物品推荐价格为{0:f0}#当前食物/物品属性超模,是否继续使用?\n使用超模食物可能会导致游戏发生不可预料的错误\n使用超模食物不影响大部分成就解锁\n本物品推荐价格为{0:f0}:|
|
||||
超模食物/物品使用提醒#超模食物/物品使用提醒:|
|
||||
当前工作数据属性超模,是否继续工作?\n超模工作可能会导致游戏发生不可预料的错误\n超模工作不影响大部分成就解锁\n当前数据比率 {0:f2}\n推荐比率<1.5#当前工作数据属性超模,是否继续工作?\n超模工作可能会导致游戏发生不可预料的错误\n超模工作不影响大部分成就解锁\n当前数据比率 {0:f2}\n推荐比率<1.5:|
|
||||
超模工作提醒#超模工作提醒:|
|
||||
超模工作提醒#超模工作提醒:|
|
||||
是没有修改过存档/使用超模MOD的玩家专属标志#是没有修改过存档/使用超模MOD的玩家专属标志:|
|
@ -27,4 +27,5 @@
|
||||
当前食物/物品属性超模,是否继续使用?\n使用超模食物可能会导致游戏发生不可预料的错误\n使用超模食物不影响大部分成就解锁\n本物品推荐价格为{0:f0}#當前食物/物品屬性超模,是否繼續使用?\n使用超模食物可能會導致遊戲發生不可預料的錯誤\n使用超模食物不影響大部分成就解鎖\n本物品推薦價格為{0:f0}:|
|
||||
超模食物/物品使用提醒#超模食物/物品使用提醒:|
|
||||
当前工作数据属性超模,是否继续工作?\n超模工作可能会导致游戏发生不可预料的错误\n超模工作不影响大部分成就解锁\n当前数据比率 {0:f2}\n推荐比率<1.5#當前工作數據屬性超模,是否繼續工作?\n超模工作可能會導致遊戲發生不可預料的錯誤\n超模工作不影響大部分成就解鎖\n當前數據比率 {0:f2}\n推薦比率<1.5:|
|
||||
超模工作提醒#超模工作提醒:|
|
||||
超模工作提醒#超模工作提醒:|
|
||||
是没有修改过存档/使用超模MOD的玩家专属标志#是沒有修改過存檔/使用超模MOD的玩家專屬標誌:|
|
Loading…
Reference in New Issue
Block a user