Skip to content

Commit

Permalink
rolled back also minor adjustment (v1.2.3)
Browse files Browse the repository at this point in the history
This changed nothing on my end
  • Loading branch information
Tribow committed Aug 23, 2022
1 parent e61060b commit 4a35fd2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions Distance.CameraAdditions/ConfigLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,61 +82,61 @@ public bool EnableRotation
public string IncreaseFOVHotkey
{
get { return Get<string>("IncreaseFOVHotkey"); }
set { Set("IncreaseFOVHotkey", value, false); }
set { Set("IncreaseFOVHotkey", value); }
}

public string DecreaseFOVHotkey
{
get { return Get<string>("DecreaseFOVHotkey"); }
set { Set("DecreaseFOVHotkey", value, false); }
set { Set("DecreaseFOVHotkey", value); }
}

public string ZoomOutHotkey
{
get { return Get<string>("ZoomOutHotkey"); }
set { Set("ZoomOutHotkey", value, false); }
set { Set("ZoomOutHotkey", value); }
}

public string ZoomInHotkey
{
get { return Get<string>("ZoomInHotkey"); }
set { Set("ZoomInHotkey", value, false); }
set { Set("ZoomInHotkey", value); }
}

public string DefaultsHotkey
{
get { return Get<string>("DefaultsHotkey"); }
set { Set("DefaultsHotkey", value, false); }
set { Set("DefaultsHotkey", value); }
}

public string IncreaseXOffsetHotkey
{
get { return Get<string>("IncreaseXOffsetHotkey"); }
set { Set("IncreaseXOffsetHotkey", value, false); }
set { Set("IncreaseXOffsetHotkey", value); }
}

public string DecreaseXOffsetHotkey
{
get { return Get<string>("DecreaseXOffsetHotkey"); }
set { Set("DecreaseXOffsetHotkey", value, false); }
set { Set("DecreaseXOffsetHotkey", value); }
}

public string IncreaseYOffsetHotkey
{
get { return Get<string>("IncreaseYOffsetHotkey"); }
set { Set("IncreaseYOffsetHotkey", value, false); }
set { Set("IncreaseYOffsetHotkey", value); }
}

public string DecreaseYOffsetHotkey
{
get { return Get<string>("DecreaseYOffsetHotkey"); }
set { Set("DecreaseYOffsetHotkey", value, false); }
set { Set("DecreaseYOffsetHotkey", value); }
}

public string EnableRotationHotkey
{
get { return Get<string>("EnableRotationHotkey"); }
set { Set("EnableRotationHotkey", value, false); }
set { Set("EnableRotationHotkey", value); }
}
#endregion

Expand Down
42 changes: 21 additions & 21 deletions Distance.CameraAdditions/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,85 +226,85 @@ private void CreateSettingsMenu()

public void OnConfigChanged(ConfigLogic config)
{
BindAction(ref _keybindIncreaseFOVOffset, config.IncreaseFOVHotkey, () => ++Config.FOVOffset);
BindAction(ref _keybindIncreaseFOVOffset, config.IncreaseFOVHotkey, () => ++config.FOVOffset);

BindAction(ref _keybindDecreaseFOVOffset, config.DecreaseFOVHotkey, () => --Config.FOVOffset);
BindAction(ref _keybindDecreaseFOVOffset, config.DecreaseFOVHotkey, () => --config.FOVOffset);

BindAction(ref _keybindZoomIn, config.ZoomInHotkey, () =>
{
if (!Config.EnableRotation) //Check if false to make someone very angry
if (!config.EnableRotation) //Check if false to make someone very angry
{
Config.ZoomOffset += 0.5f;
config.ZoomOffset += 0.5f;
}
else
{
Config.ZRotationOffset += 1f;
config.ZRotationOffset += 1f;
}
});

BindAction(ref _keybindZoomOut, config.ZoomOutHotkey, () =>
{
if (!Config.EnableRotation)
if (!config.EnableRotation)
{
Config.ZoomOffset -= 0.5f;
config.ZoomOffset -= 0.5f;
}
else
{
Config.ZRotationOffset -= 1f;
config.ZRotationOffset -= 1f;
}
});

BindAction(ref _keybindDefaults, config.DefaultsHotkey, () => SetDefaults());

BindAction(ref _keybindIncreaseXOffset, config.IncreaseXOffsetHotkey, () =>
{
if (!Config.EnableRotation)
if (!config.EnableRotation)
{
Config.XOffset += 0.5f;
config.XOffset += 0.5f;
}
else
{
Config.XRotationOffset += 1f;
config.XRotationOffset += 1f;
}
});

BindAction(ref _keybindDecreaseXOffset, config.DecreaseXOffsetHotkey, () =>
{
if (!Config.EnableRotation)
if (!config.EnableRotation)
{
Config.XOffset -= 0.5f;
config.XOffset -= 0.5f;
}
else
{
Config.XRotationOffset -= 1f;
config.XRotationOffset -= 1f;
}
});

BindAction(ref _keybindIncreaseYOffset, config.IncreaseYOffsetHotkey, () =>
{
if (!Config.EnableRotation)
if (!config.EnableRotation)
{
Config.YOffset += 0.5f;
config.YOffset += 0.5f;
}
else
{
Config.YRotationOffset += 1f;
config.YRotationOffset += 1f;
}
});

BindAction(ref _keybindDecreaseYOffset, config.DecreaseYOffsetHotkey, () =>
{
if (!Config.EnableRotation)
if (!config.EnableRotation)
{
Config.YOffset -= 0.5f;
config.YOffset -= 0.5f;
}
else
{
Config.YRotationOffset -= 1f;
config.YRotationOffset -= 1f;
}
});

BindAction(ref _keybindEnableRotation, config.EnableRotationHotkey, () => Config.EnableRotation = !Config.EnableRotation);
BindAction(ref _keybindEnableRotation, config.EnableRotationHotkey, () => config.EnableRotation = !config.EnableRotation);
}

public void BindAction(ref Hotkey unbind, string rebind, Action callback)
Expand Down

0 comments on commit 4a35fd2

Please sign in to comment.