mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
prep settings menu for real
This commit is contained in:
parent
2409a20aab
commit
be5aff5aae
3 changed files with 1581 additions and 98 deletions
File diff suppressed because it is too large
Load diff
|
@ -97,6 +97,24 @@ namespace HeavenStudio
|
|||
fade.GetComponent<SpriteRenderer>().color = new Color(0, 0, 0, 0);
|
||||
fade.GetComponent<SpriteRenderer>().DOColor(Color.black, fadeDuration).OnComplete(() => { SceneManager.LoadScene(loadedScene); fade.GetComponent<SpriteRenderer>().DOColor(new Color(0, 0, 0, 0), fadeDuration).OnComplete(() => { Destroy(fade); }); });
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void WindowFullScreen()
|
||||
{
|
||||
Debug.Log("WindowFullScreen");
|
||||
// Toggle fullscreen
|
||||
Screen.fullScreen = !Screen.fullScreen;
|
||||
if (Screen.fullScreen)
|
||||
{
|
||||
// Set the resolution to the display's current resolution
|
||||
Screen.SetResolution(Screen.currentResolution.width, Screen.currentResolution.height, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
Screen.SetResolution(Screen.currentResolution.width, Screen.currentResolution.height, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -467,6 +467,11 @@ namespace HeavenStudio.Editor
|
|||
}
|
||||
}
|
||||
|
||||
public void WindowFullScreen()
|
||||
{
|
||||
GlobalGameManager.WindowFullScreen();
|
||||
}
|
||||
|
||||
private void UpdateEditorStatus(bool updateTime)
|
||||
{
|
||||
if (discordDuringTesting || !Application.isEditor)
|
||||
|
|
Loading…
Reference in a new issue