mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Add hidden config option to change default fov override
This commit is contained in:
1 parent
22998f069b
commit
14bf2e982b
3 files changed
+7
-1
No files matched your search
@@ -107,6 +107,8 @@ public class FlashbackConfig {
|
||||
|
||||
public String defaultExportPath = null;
|
||||
|
||||
public float defaultOverrideFov = 70.0f;
|
||||
|
||||
public ForceDefaultExportSettings forceDefaultExportSettings = new ForceDefaultExportSettings();
|
||||
|
||||
public boolean filterUnnecessaryPackets = true;
|
||||
|
||||
@@ -158,6 +158,10 @@ public class VisualsWindow {
|
||||
editorState.markDirty();
|
||||
}
|
||||
if (visuals.overrideFov) {
|
||||
if (visuals.overrideFovAmount < 0) {
|
||||
visuals.overrideFovAmount = Flashback.getConfig().defaultOverrideFov;
|
||||
}
|
||||
|
||||
ImGui.sameLine();
|
||||
if (ImGui.smallButton("+")) {
|
||||
addKeyframe(editorState, replayServer, new FOVKeyframe(visuals.overrideFovAmount));
|
||||
|
||||
@@ -30,7 +30,7 @@ public class ReplayVisuals {
|
||||
public float[] fogColour = new float[]{0f, 1f, 0f};
|
||||
|
||||
public boolean overrideFov = false;
|
||||
public float overrideFovAmount = 70f;
|
||||
public float overrideFovAmount = -1f;
|
||||
|
||||
public boolean overrideCameraShake = false;
|
||||
public boolean cameraShakeSplitParams = false;
|
||||
|
||||
Reference in new issue
Block a user