超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
@@ -45,13 +45,13 @@ public class readDeviceInfo : MonoBehaviour
|
||||
|
||||
private void read_deviceInfo()
|
||||
{
|
||||
System.Text.StringBuilder sb = new System.Text.StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
void AddEntry(string title, object value)
|
||||
{
|
||||
string str;
|
||||
if (value == null) str = "";
|
||||
else if (value is bool b) str = b ? "����" : "����";
|
||||
else if (value is bool b) str = b ? "是" : "否";
|
||||
else str = value.ToString();
|
||||
|
||||
sb.AppendLine($"<b>{title}</b>");
|
||||
@@ -59,47 +59,47 @@ public class readDeviceInfo : MonoBehaviour
|
||||
sb.AppendLine();
|
||||
}
|
||||
|
||||
AddEntry("ƽ̨", Application.platform.ToString());
|
||||
AddEntry("����Ŀ¼", Application.dataPath);
|
||||
AddEntry("persistent ����·��", Application.persistentDataPath);
|
||||
AddEntry("平台", Application.platform.ToString());
|
||||
AddEntry("数据目录", Application.dataPath);
|
||||
AddEntry("persistent 数据路径", Application.persistentDataPath);
|
||||
|
||||
AddEntry("����ϵͳ", SystemInfo.operatingSystem);
|
||||
AddEntry("�豸����", SystemInfo.deviceName);
|
||||
AddEntry("�豸�ͺ�", SystemInfo.deviceModel);
|
||||
AddEntry("�豸ΨһID", SystemInfo.deviceUniqueIdentifier);
|
||||
AddEntry("操作系统", SystemInfo.operatingSystem);
|
||||
AddEntry("设备名称", SystemInfo.deviceName);
|
||||
AddEntry("设备型号", SystemInfo.deviceModel);
|
||||
AddEntry("设备唯一ID", SystemInfo.deviceUniqueIdentifier);
|
||||
|
||||
AddEntry("CPU", SystemInfo.processorType);
|
||||
AddEntry("CPU������", SystemInfo.processorCount);
|
||||
AddEntry("ϵͳ�ڴ� (MB)", SystemInfo.systemMemorySize);
|
||||
AddEntry("CPU核心数", SystemInfo.processorCount);
|
||||
AddEntry("系统内存 (MB)", SystemInfo.systemMemorySize);
|
||||
|
||||
AddEntry("ͼ���豸����", SystemInfo.graphicsDeviceName);
|
||||
AddEntry("ͼ���豸��Ӧ��", SystemInfo.graphicsDeviceVendor);
|
||||
AddEntry("图形设备名称", SystemInfo.graphicsDeviceName);
|
||||
AddEntry("图形设备供应商", SystemInfo.graphicsDeviceVendor);
|
||||
AddEntry("DirectX", SystemInfo.graphicsDeviceType.ToString());
|
||||
AddEntry("�Դ� (MB)", SystemInfo.graphicsMemorySize);
|
||||
AddEntry("显存 (MB)", SystemInfo.graphicsMemorySize);
|
||||
|
||||
AddEntry("��Ļ�ֱ���", $"{Screen.currentResolution.width} x {Screen.currentResolution.height} @ {Screen.currentResolution.refreshRateRatio.value:0.##}Hz");
|
||||
AddEntry("��ĻDPI", Screen.dpi);
|
||||
AddEntry("��ʾģʽ", Screen.fullScreenMode.ToString());
|
||||
AddEntry("屏幕分辨率", $"{Screen.currentResolution.width} x {Screen.currentResolution.height} @ {Screen.currentResolution.refreshRateRatio.value:0.##}Hz");
|
||||
AddEntry("屏幕DPI", Screen.dpi);
|
||||
AddEntry("显示模式", Screen.fullScreenMode.ToString());
|
||||
|
||||
try
|
||||
{
|
||||
AddEntry("��ص���", $"{SystemInfo.batteryLevel * 100:F0}%");
|
||||
AddEntry("Battery Level", $"{SystemInfo.batteryLevel * 100:F0}%");
|
||||
}
|
||||
catch
|
||||
{
|
||||
AddEntry("���״̬", "��֧��");
|
||||
AddEntry("Battery Status", "Not Supported");
|
||||
}
|
||||
|
||||
AddEntry("�����������������༭��", "v1.1h02e");
|
||||
AddEntry("����������С��Ϸ����", "v1.301");
|
||||
AddEntry("����Ϸ�汾��", "code::testingVersion1062");
|
||||
AddEntry("��¼����", "Steam Client");
|
||||
AddEntry("主程序版本", "v1.1h02e");
|
||||
AddEntry("内置小游戏版本", "v1.301");
|
||||
AddEntry("游戏代码版本", "code::testingVersion1062");
|
||||
AddEntry("登录渠道", "Steam Client");
|
||||
|
||||
AddEntry(".NET Framework", "8.0 +");
|
||||
AddEntry("��������ߴ�", SystemInfo.maxTextureSize);
|
||||
AddEntry("Max Texture Size", SystemInfo.maxTextureSize);
|
||||
|
||||
AddEntry("���ú�̨����", Application.runInBackground);
|
||||
AddEntry("���߳���Ⱦ", SystemInfo.graphicsMultiThreaded);
|
||||
AddEntry("启用后台运行", Application.runInBackground);
|
||||
AddEntry("启用多线程渲染", SystemInfo.graphicsMultiThreaded);
|
||||
|
||||
string output = sb.ToString();
|
||||
|
||||
@@ -138,7 +138,7 @@ public class readDeviceInfo : MonoBehaviour
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
string desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
||||
string path = UnityEditor.EditorUtility.SaveFilePanel("�����豸��Ϣ", desktop, "device_info", "txt");
|
||||
string path = UnityEditor.EditorUtility.SaveFilePanel("保存设备信息", desktop, "device_info", "txt");
|
||||
return string.IsNullOrEmpty(path) ? null : path;
|
||||
#elif UNITY_STANDALONE_WIN
|
||||
try
|
||||
@@ -152,7 +152,7 @@ public class readDeviceInfo : MonoBehaviour
|
||||
ofn.fileTitle = new string('\0', 260);
|
||||
ofn.maxFileTitle = ofn.fileTitle.Length;
|
||||
ofn.initialDir = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
||||
ofn.title = "�����豸��Ϣ";
|
||||
ofn.title = "保存设备信息";
|
||||
ofn.defExt = "txt";
|
||||
ofn.flags = OpenFileNameFlags.OFN_OVERWRITEPROMPT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user