This commit is contained in:
2025-10-09 11:54:18 +08:00
parent 2aeeaf7659
commit 34f977047d
33 changed files with 181 additions and 152 deletions

View File

@@ -79,7 +79,7 @@ public class GraphicsSetting
public float renderScale = 1.0f;
public bool isCustom = false;
public int resolutionIndex = 0;
public int resolutionIndex = Screen.resolutions.Length - 1;
public bool fullscreen = true;
public bool borderless = false;
public int displayIndex = 0;

View File

@@ -37,8 +37,12 @@ public class SettingsWindow : UIBaseWindow
}
SwitchPanel(generalPanel);
base.OnShow();
GameSystem.Inst.UpdateCursorState(false);
}
protected override void OnHide()
{
GameSystem.Inst.UpdateCursorState(true);
}
private void SwitchPanel(UIBasePanel newPanel)
{
if (currentPanel != null)