Skip to content

Commit

Permalink
Fixed variable names and updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thespbgamer committed Jan 27, 2022
1 parent 0c59966 commit 0217b04
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## [1.9.0] - 2022-01-27

### Added

- Max and Min UI or Zoom.

### Changed

- Config variable names

### Improvements

- Updated API for the optional Generic Mod Config Menu → [Here](https://www.nexusmods.com/stardewvalley/mods/5098).
- README file

### Fixed

- Some text typos

## [1.8.0] - 2022-01-25

### Improvements
Expand Down Expand Up @@ -89,7 +108,8 @@

- Initial release

[unreleased]: https://github.com/thespbgamer/ZoomLevel/compare/v1.8.0...HEAD
[unreleased]: https://github.com/thespbgamer/ZoomLevel/compare/v1.9.0...HEAD
[1.9.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.8.0
[1.8.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.8.0
[1.7.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.7.0
[1.6.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.6.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Here's what you can change:
`KeybindListDecreaseZoomOrUI` | `OemComma` aka `,` or `LeftStick` | Key to Decrease Zoom or UI Level.
`KeybindListHoldToChangeUI` | `LeftShift` or `RightShift` or `LeftTrigger and RightTrigger"` | Key you need to hold to change the UI.
`KeybindListResetZoomOrUI` | `null` aka **nothing** | Key to Reset the Zoom or UI Level.
`KeybindListMaxZoom` | `null` aka **nothing** | Key to Max the Zoom out or Maximize the UI.
`KeybindListMinZoom` | `null` aka **nothing** | Key to Max the Zoom in or Minimize the UI.
`KeybindListMaxZoomOrUI` | `null` aka **nothing** | Key to Max the Zoom out or Maximize the UI.
`KeybindListMinZoomOrUI` | `null` aka **nothing** | Key to Max the Zoom in or Minimize the UI.

* Zoom and UI values:

Expand Down
4 changes: 2 additions & 2 deletions ZoomLevel/ModConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ internal class ModConfig
public KeybindList KeybindListIncreaseZoomOrUI { get; set; } = KeybindList.Parse("OemPeriod, RightStick");
public KeybindList KeybindListDecreaseZoomOrUI { get; set; } = KeybindList.Parse("OemComma, LeftStick");
public KeybindList KeybindListResetZoomOrUI { get; set; } = KeybindList.Parse("");
public KeybindList KeybindListMaxZoom { get; set; } = KeybindList.Parse("");
public KeybindList KeybindListMinZoom { get; set; } = KeybindList.Parse("");
public KeybindList KeybindListMaxZoomOrUI { get; set; } = KeybindList.Parse("");
public KeybindList KeybindListMinZoomOrUI { get; set; } = KeybindList.Parse("");

public float ZoomLevelIncreaseValue { get; set; } = 0.05f;
public float ZoomLevelDecreaseValue { get; set; } = -0.05f;
Expand Down
12 changes: 6 additions & 6 deletions ZoomLevel/ModEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ private void onLaunched(object sender, GameLaunchedEventArgs e)
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListIncreaseZoomOrUI, (KeybindList val) => modConfigs.KeybindListIncreaseZoomOrUI = val, "Zoom or UI Levels Increase".ToString, "Keybinds to Increase Zoom or UI Level.".ToString);
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListDecreaseZoomOrUI, (KeybindList val) => modConfigs.KeybindListDecreaseZoomOrUI = val, "Zoom or UI Levels Decrease".ToString, "Keybinds to Decrease Zoom or UI Level.".ToString);
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListResetZoomOrUI, (KeybindList val) => modConfigs.KeybindListResetZoomOrUI = val, "Zoom or UI Levels Reset".ToString, "Keybinds that you use to Reset the Zoom or UI Level.".ToString);
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMaxZoom, (KeybindList val) => modConfigs.KeybindListMaxZoom = val, "Zoom or UI Max Levels".ToString, "Keybinds to Max the Zoom out or Maximize the UI.".ToString);
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMinZoom, (KeybindList val) => modConfigs.KeybindListMinZoom = val, "Zoom or UI Min Levels".ToString, "Keybinds to Max the Zoom in or Minimize the UI.".ToString);
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMaxZoomOrUI, (KeybindList val) => modConfigs.KeybindListMaxZoomOrUI = val, "Zoom or UI Max Levels".ToString, "Keybinds to Max the Zoom out or Maximize the UI.".ToString);
genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMinZoomOrUI, (KeybindList val) => modConfigs.KeybindListMinZoomOrUI = val, "Zoom or UI Min Levels".ToString, "Keybinds to Max the Zoom in or Minimize the UI.".ToString);

genericModConfigMenuAPI.AddSectionTitle(ModManifest, "Values:".ToString, "All the values that changes the Zoom Level and UI Level.".ToString);
genericModConfigMenuAPI.AddNumberOption(ModManifest, () => modConfigs.ZoomLevelIncreaseValue, (float val) => modConfigs.ZoomLevelIncreaseValue = val, "Zoom or UI Levels Increase".ToString, "The amount of Zoom or UI Level increase.".ToString, 0.01f, 0.50f,0.01f);
Expand Down Expand Up @@ -75,12 +75,12 @@ private void Events_Input_ButtonPressed(object sender, ButtonPressedEventArgs e)
ResetUI();
wasThePreviousButtonPressSucessfull = true;
}
else if (modConfigs.KeybindListMaxZoom.JustPressed())
else if (modConfigs.KeybindListMaxZoomOrUI.JustPressed())
{
CapUILevel(modConfigs.MaxZoomOutLevelAndUIValue);
wasThePreviousButtonPressSucessfull = true;
}
else if (modConfigs.KeybindListMinZoom.JustPressed())
else if (modConfigs.KeybindListMinZoomOrUI.JustPressed())
{
CapUILevel(modConfigs.MaxZoomInLevelAndUIValue);
wasThePreviousButtonPressSucessfull = true;
Expand All @@ -101,12 +101,12 @@ private void Events_Input_ButtonPressed(object sender, ButtonPressedEventArgs e)
ResetZoom();
wasThePreviousButtonPressSucessfull = true;
}
else if (modConfigs.KeybindListMaxZoom.JustPressed())
else if (modConfigs.KeybindListMaxZoomOrUI.JustPressed())
{
CapZoomLevel(modConfigs.MaxZoomOutLevelAndUIValue);
wasThePreviousButtonPressSucessfull = true;
}
else if (modConfigs.KeybindListMinZoom.JustPressed())
else if (modConfigs.KeybindListMinZoomOrUI.JustPressed())
{
CapZoomLevel(modConfigs.MaxZoomInLevelAndUIValue);
wasThePreviousButtonPressSucessfull = true;
Expand Down

0 comments on commit 0217b04

Please sign in to comment.