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