mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-10 04:53:15 +08:00
Reordered FreeCameraType, made ForcedMatrix the default one, and renamed Advanced_Freecam_Selection setting to Freecam_Camera_Target_Selection.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace UnityExplorer.Config
|
||||
public static ConfigElement<bool> Auto_Scale_UI;
|
||||
public static ConfigElement<bool> Reset_Camera_Transform;
|
||||
public static ConfigElement<float> Arrow_Size;
|
||||
public static ConfigElement<bool> Advanced_Freecam_Selection;
|
||||
public static ConfigElement<bool> Freecam_Camera_Target_Selection;
|
||||
|
||||
public static ConfigElement<KeyCode> Pause;
|
||||
public static ConfigElement<KeyCode> Frameskip;
|
||||
@@ -200,7 +200,7 @@ namespace UnityExplorer.Config
|
||||
"Cam Paths nodes and Lights Manager lights visualizers' arrow size (must be positive) (needs visualizer toggled to reflect changes).",
|
||||
1f);
|
||||
|
||||
Advanced_Freecam_Selection = new("Advanced Freecam Selection",
|
||||
Freecam_Camera_Target_Selection = new("Freecam Camera Target Selection",
|
||||
"Enables certain advanced settings on the Freecam panel, in case the user can't get the freecam to work properly (requires game reset).",
|
||||
false);
|
||||
|
||||
@@ -320,7 +320,7 @@ namespace UnityExplorer.Config
|
||||
|
||||
Preferred_Target_Camera = new("Preferred Target Camera",
|
||||
"The camera that will be targeted by the freecam methods.\n" +
|
||||
"Only used when Advanced Freecam Selection is enabled.",
|
||||
"Only used when Freecam Camera Target Selection is enabled.",
|
||||
"\\");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace UnityExplorer.Loader.Standalone
|
||||
public string Custom_Components_To_Disable;
|
||||
public string Preferred_Target_Camera;
|
||||
public float Arrow_Size = 1f;
|
||||
public bool Advanced_Freecam_Selection;
|
||||
public bool Freecam_Camera_Target_Selection;
|
||||
|
||||
public KeyCode Pause;
|
||||
public KeyCode Frameskip;
|
||||
@@ -95,7 +95,7 @@ namespace UnityExplorer.Loader.Standalone
|
||||
ConfigManager.Preferred_Target_Camera.Value = this.Preferred_Target_Camera;
|
||||
|
||||
ConfigManager.Arrow_Size.Value = this.Arrow_Size;
|
||||
ConfigManager.Advanced_Freecam_Selection.Value = this.Advanced_Freecam_Selection;
|
||||
ConfigManager.Freecam_Camera_Target_Selection.Value = this.Freecam_Camera_Target_Selection;
|
||||
|
||||
ConfigManager.Pause.Value = this.Pause;
|
||||
ConfigManager.Frameskip.Value = this.Frameskip;
|
||||
|
||||
@@ -19,10 +19,10 @@ namespace UnityExplorer.UI.Panels
|
||||
public class FreeCamPanel : UEPanel
|
||||
{
|
||||
public enum FreeCameraType {
|
||||
New,
|
||||
Gameplay,
|
||||
Cloned,
|
||||
ForcedMatrix,
|
||||
Cloned,
|
||||
Gameplay,
|
||||
New,
|
||||
}
|
||||
|
||||
public FreeCamPanel(UIBase owner) : base(owner)
|
||||
@@ -138,7 +138,7 @@ namespace UnityExplorer.UI.Panels
|
||||
|
||||
private static Camera GetTargetCamera()
|
||||
{
|
||||
if (!ConfigManager.Advanced_Freecam_Selection.Value && !targetCameraDropdown)
|
||||
if (!ConfigManager.Freecam_Camera_Target_Selection.Value && !targetCameraDropdown)
|
||||
{
|
||||
return Camera.main;
|
||||
}
|
||||
@@ -559,7 +559,7 @@ namespace UnityExplorer.UI.Panels
|
||||
UIFactory.SetLayoutElement(cameraTypeDropdownObj, minHeight: 25, minWidth: 150);
|
||||
cameraTypeDropdown.value = (int)ConfigManager.Default_Freecam.Value;
|
||||
|
||||
if (ConfigManager.Advanced_Freecam_Selection.Value)
|
||||
if (ConfigManager.Freecam_Camera_Target_Selection.Value)
|
||||
{
|
||||
Text TargetCamLabel = UIFactory.CreateLabel(CameraModeRow, "Target_cam_label", " Target cam:");
|
||||
UIFactory.SetLayoutElement(TargetCamLabel.gameObject, minWidth: 75, minHeight: 25);
|
||||
|
||||
Reference in New Issue
Block a user