超大量的更新 修复很多问题,gameplay特效初步

This commit is contained in:
2026-02-14 23:46:20 +08:00
parent ef8eb67259
commit 3a7a0b4669
360 changed files with 85670 additions and 4144 deletions
+9 -9
View File
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
using System;
@@ -66,7 +66,7 @@ public class graphicSettings : MonoBehaviour
{
if (resolution_Dropdown == null) return;
if (tempFreeResOptionIndex >= 0) return;
var opt = new Dropdown.OptionData("ɷֱ");
var opt = new Dropdown.OptionData("自定义分辨率");
resolution_Dropdown.options.Add(opt);
tempFreeResOptionIndex = resolution_Dropdown.options.Count - 1;
}
@@ -84,7 +84,7 @@ public class graphicSettings : MonoBehaviour
{
if (screenMode_Dropdown == null) return;
var options = new List<string>() { "(ɴ)", (Ӧ)", "ޱ߿򴰿" };
var options = new List<string>() { "窗口化(可调整大小)", "全屏(独占模式)", "无边框窗口" };
screenMode_Dropdown.ClearOptions();
screenMode_Dropdown.AddOptions(options);
@@ -271,7 +271,7 @@ public class graphicSettings : MonoBehaviour
foreach (var r in availableResolutions)
{
options.Add($"{r.x} {r.y}");
options.Add($"{r.x} x {r.y}");
}
resolution_Dropdown.ClearOptions();
@@ -303,7 +303,7 @@ public class graphicSettings : MonoBehaviour
{
Screen.SetResolution(cw, ch, Screen.fullScreenMode, Screen.currentResolution.refreshRateRatio);
EnsureTempFreeOptionExists();
resolution_Dropdown.options[tempFreeResOptionIndex].text = $"{cw} {ch}";
resolution_Dropdown.options[tempFreeResOptionIndex].text = $"{cw} x {ch}";
resolution_Dropdown.SetValueWithoutNotify(tempFreeResOptionIndex);
}
else
@@ -336,7 +336,7 @@ public class graphicSettings : MonoBehaviour
else
{
EnsureTempFreeOptionExists();
resolution_Dropdown.options[tempFreeResOptionIndex].text = $"{Screen.width} {Screen.height}";
resolution_Dropdown.options[tempFreeResOptionIndex].text = $"{Screen.width} x {Screen.height}";
resolution_Dropdown.SetValueWithoutNotify(tempFreeResOptionIndex);
}
}
@@ -372,7 +372,7 @@ public class graphicSettings : MonoBehaviour
{
if (frameRate_Dropdown == null) return;
var fpsOptions = new List<string>() { "24", "30", "60", "90", "120", "144", "165", "210", "240", "300", "", "ֱͬ" };
var fpsOptions = new List<string>() { "24", "30", "60", "90", "120", "144", "165", "210", "240", "300", "无限制", "垂直同步" };
frameRate_Dropdown.ClearOptions();
frameRate_Dropdown.AddOptions(fpsOptions);
@@ -432,13 +432,13 @@ public class graphicSettings : MonoBehaviour
}
else if (index == fpsValues.Length)
{
//
// Documentation text normalized.
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = -1; // unlimited / platform default
}
else if (index == fpsValues.Length + 1)
{
// ֱͬ
// Documentation text normalized.
QualitySettings.vSyncCount = 1; // enable vsync
Application.targetFrameRate = -1;
}