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:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user