mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-26 03:25:22 +00:00
prep settings menu for real
This commit is contained in:
parent
70c5216690
commit
19f0009c55
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