Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Config/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static class ConfigManager
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<KeyCode> Pause;
public static ConfigElement<KeyCode> Frameskip;
Expand Down Expand Up @@ -63,6 +64,7 @@ public static class ConfigManager

public static ConfigElement<FreeCamPanel.FreeCameraType> Default_Freecam;
public static ConfigElement<string> Custom_Components_To_Disable;
public static ConfigElement<string> Preferred_Target_Camera;

// internal configs
internal static InternalConfigHandler InternalHandler { get; private set; }
Expand Down Expand Up @@ -198,6 +200,10 @@ private static void CreateConfigElements()
"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",
"Enables certain advanced settings on the Freecam panel, in case the user can't get the freecam to work properly (requires game reset).",
false);

Pause = new("Pause",
"Toggle the pause of the game.",
KeyCode.PageUp);
Expand Down Expand Up @@ -311,6 +317,11 @@ private static void CreateConfigElements()
Custom_Components_To_Disable = new("Custom components to disable",
"List of custom components to disable when enabling the freecam (gets automatically updated when editing it from the freecam panel).",
"");

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.",
"\\");
}
}
}
5 changes: 5 additions & 0 deletions src/Loader/Standalone/Editor/ExplorerEditorBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public class ExplorerEditorBehaviour : MonoBehaviour
public bool Reset_Camera_Transform;
public FreeCamPanel.FreeCameraType Default_Freecam;
public string Custom_Components_To_Disable;
public string Preferred_Target_Camera;
public float Arrow_Size = 1f;
public bool Advanced_Freecam_Selection;

public KeyCode Pause;
public KeyCode Frameskip;
Expand Down Expand Up @@ -90,7 +92,10 @@ internal void LoadConfigs()
ConfigManager.Reset_Camera_Transform.Value = this.Reset_Camera_Transform;
ConfigManager.Default_Freecam.Value = this.Default_Freecam;
ConfigManager.Custom_Components_To_Disable.Value = this.Custom_Components_To_Disable;
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.Pause.Value = this.Pause;
ConfigManager.Frameskip.Value = this.Frameskip;
Expand Down
Loading