Skip to content

Commit 301c5e6

Browse files
committed
Restore Defaults Fix
Should restore all camera values to default now. Also, the booleans should be saved properly now. Offset sliders set to -10,10
1 parent 4660d93 commit 301c5e6

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Distance.CameraAdditions/ConfigLogic.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public void Awake()
132132
Set("XOffset", 0f); //XOffset will not remember previous settings
133133
Get("YOffset", 0f);
134134
Set("YOffset", 0f); //YOffset will not remember previous settings
135+
Get("LockFOV", false);
136+
Get("LockCameraPosition", false);
137+
Get("EnableFreeCam", false);
135138
Get("IncreaseFOVHotkey", "LeftControl+P");
136139
Get("DecreaseFOVHotkey", "LeftControl+O");
137140
Get("ZoomOutHotkey", "LeftControl+N");

Distance.CameraAdditions/Entry.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,21 @@ private void CreateSettingsMenu()
9292
.WithDescription("Lock the FOV of Chase Cam mode"),
9393

9494
new FloatSlider(MenuDisplayMode.Both, "setting:zoom_offset", "ZOOM OFFSET")
95-
.LimitedByRange(-3f, 20f)
95+
.LimitedByRange(-10f, 10f)
9696
.WithDefaultValue(0f)
9797
.WithGetter(() => Config.ZoomOffset)
9898
.WithSetter((x) => Config.ZoomOffset = x)
9999
.WithDescription("Adjust zoom offset of the Chase Cam mode (Acts as the Z offset for Cockpit and Mounted Camera)"),
100100

101101
new FloatSlider(MenuDisplayMode.Both, "setting:x_offset", "X OFFSET")
102-
.LimitedByRange(-20f, 20f)
102+
.LimitedByRange(-10f, 10f)
103103
.WithDefaultValue(0f)
104104
.WithGetter(() => Config.XOffset)
105105
.WithSetter((x) => Config.XOffset = x)
106106
.WithDescription("Adjust the X axis offset of all Car Camera Modes"),
107107

108108
new FloatSlider(MenuDisplayMode.Both, "setting:y_offset", "Y OFFSET")
109-
.LimitedByRange(-20f, 20f)
109+
.LimitedByRange(-10f, 10f)
110110
.WithDefaultValue(0f)
111111
.WithGetter(() => Config.YOffset)
112112
.WithSetter((x) => Config.YOffset = x)
@@ -176,7 +176,7 @@ private void CreateSettingsMenu()
176176
.WithTitle("DECREASE Y OFFSET HOTKEY")
177177
.WithDescription("Set the hotkey for decreasing the Y offset"),
178178
};
179-
179+
180180
Menus.AddNew(MenuDisplayMode.Both, settingsMenu, "CAMERA ADDITIONS", "Settings for the camera additions mod.");
181181
}
182182

@@ -251,6 +251,9 @@ private void SetDefaults()
251251
Config.ZoomOffset = 0f;
252252
Config.XOffset = 0f;
253253
Config.YOffset = 0f;
254+
Config.LockCameraPosition = false;
255+
Config.LockFOV = false;
256+
Config.FOV = 125;
254257
}
255258
}
256259
}

0 commit comments

Comments
 (0)