1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2026-10-10 21:13:15 +08:00

Added misc panel with HUD toggle and screenshot support. Added more hotkeys and changed the order of panels in the navbar.

This commit is contained in:
originalnicodr
2024-01-27 17:10:15 -03:00
parent 78c8a41e22
commit 252521061b
5 changed files with 257 additions and 10 deletions
+21
View File
@@ -102,6 +102,7 @@ namespace UnityExplorer
// Continous checks and actions
stopFrameSkip();
maybeForcePause();
UIManager.GetPanel<UnityExplorer.UI.Panels.Misc>(UIManager.Panels.Misc).MaybeTakeScreenshot();
if (InputManager.GetKeyDown(KeyCode.Pause))
{
@@ -116,6 +117,26 @@ namespace UnityExplorer
frameSkip = true;
}
}
if (InputManager.GetKeyDown(KeyCode.F12))
{
UIManager.GetPanel<UnityExplorer.UI.Panels.Misc>(UIManager.Panels.Misc).screenshotStatus = UnityExplorer.UI.Panels.Misc.ScreenshotState.TurnOffUI;
}
if (InputManager.GetKeyDown(KeyCode.Delete))
{
UIManager.GetPanel<UnityExplorer.UI.Panels.Misc>(UIManager.Panels.Misc).ToggleHUDElements();
}
if (InputManager.GetKeyDown(KeyCode.Insert))
{
FreeCamPanel.StartStopButton_OnClick();
}
if (InputManager.GetKeyDown(KeyCode.Home))
{
FreeCamPanel.blockFreecamMovementToggle.isOn = !FreeCamPanel.blockFreecamMovementToggle.isOn;
}
}
void stopFrameSkip(){